weighted_mrt_advRel_d3q27_incomp Subroutine

public subroutine weighted_mrt_advRel_d3q27_incomp(fieldProp, inState, outState, auxField, neigh, nElems, nSolve, level, layout, params, varSys, derVarPos)

Semi-optimized explicit implementation

This subroutine interface must match the abstract interface definition kernel in scheme/mus_scheme_type_module.f90 in order to be callable via compute function pointer.

First load all local values into temp array

Arguments

TypeIntentOptionalAttributesName
type(mus_field_prop_type), intent(in) :: fieldProp(:)

Array of field properties (fluid or species)

real(kind=rk), intent(in) :: inState(nElems*varSys%nScalars)

input pdf vector

real(kind=rk), intent(out) :: outState(nElems*varSys%nScalars)

output pdf vector

real(kind=rk), intent(inout) :: auxField(nElems*varSys%nAuxScalars)

Auxiliary field computed from pre-collision state Is updated with correct velocity field for multicomponent models

integer, intent(in) :: neigh(nElems*layout%fStencil%QQ)

connectivity vector

integer, intent(in) :: nElems

number of elements in state Array

integer, intent(in) :: nSolve

number of elements solved in kernel

integer, intent(in) :: level

current level

type(mus_scheme_layout_type), intent(in) :: layout

current layout

type(mus_param_type), intent(in) :: params

global parameters

type(tem_varSys_type), intent(in) :: varSys

variable system definition

type(mus_derVarPos_type), intent(in) :: derVarPos(:)

position of derived quantities in varsys for all fields


Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
integer, private :: iDir
integer, private :: nScalars
real(kind=rk), private :: f(QQ)
real(kind=rk), private :: rho
real(kind=rk), private :: u_x
real(kind=rk), private :: u_y
real(kind=rk), private :: u_z
real(kind=rk), private :: sum_19_22
real(kind=rk), private :: sum_23_26
real(kind=rk), private :: sum_19_26
real(kind=rk), private :: sum_21_22_23_24
real(kind=rk), private :: sum_20_21_24_25
real(kind=rk), private :: sum_20_22_23_25
real(kind=rk), private :: sum_7_10
real(kind=rk), private :: sum_11_14
real(kind=rk), private :: sum_15_18
real(kind=rk), private :: sum_11_18
real(kind=rk), private :: sum_19_20_23_24
real(kind=rk), private :: sum_19_21_23_25
real(kind=rk), private :: s_mrt(QQ)
real(kind=rk), private :: meq(QQ)
real(kind=rk), private :: mneq(QQ)
real(kind=rk), private :: mom(QQ)
integer, private :: dens_pos
integer, private :: vel_pos(3)
integer, private :: elemOff
real(kind=rk), private :: omegaBulk