This module contains routine to retrieve auxiliary field variables for getElement, getPoint, setupIndices and getValOfIndex. Auxilary field variables are: * density and velocity for fluid * species desity and velocity for multispecies * potential for poisson
This routine assign function pointer to compute auxField var
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_scheme_header_type), | intent(in) | :: | schemeHeader | scheme defnition |
||
procedure(mus_proc_calcAuxField), | intent(out), | pointer | :: | calcAuxField | function pointer to assign |
Return the solver aux variable for a given set of elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun | Description of the method to obtain the variables, here some preset values might be stored, like the space time function to use or the required variables. |
||
type(tem_varSys_type), | intent(in) | :: | varSys | The variable system to obtain the variable from. |
||
integer, | intent(in) | :: | elempos(:) | Position of the TreeID of the element to get the variable for in the global treeID list. |
||
type(tem_time_type), | intent(in) | :: | time | Point in time at which to evaluate the variable. |
||
type(treelmesh_type), | intent(in) | :: | tree | global treelm mesh info |
||
integer, | intent(in) | :: | nElems | Number of values to obtain for this variable (vectorized access). |
||
integer, | intent(in) | :: | nDofs | Number of degrees of freedom within an element. |
||
real(kind=rk), | intent(out) | :: | res(:) | Resulting values for the requested variable. Linearized array dimension: (n requested entries) x (nComponents of this variable) x (nDegrees of freedom) Access: (iElem-1)fun%nComponentsnDofs + (iDof-1)*fun%nComponents + iComp |
Auxilary field variable for a given set of points using linear interpolation. Unlike mus_deriveVar_forPoint which does not consider ghost and halo elements, this routine considers them because auxField vars on ghost elements are interpolated and halo elements are exchanged. The interface has to comply to the abstract interface tem_varSys_proc_point.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun | Description of the method to obtain the variables, here some preset values might be stored, like the space time function to use or the required variables. |
||
type(tem_varSys_type), | intent(in) | :: | varSys | The variable system to obtain the variable from. |
||
real(kind=rk), | intent(in) | :: | point(:,:) | Three-dimensional coordinates at which the variable should be evaluated. Only useful for variables provided as space-time functions. |
||
type(tem_time_type), | intent(in) | :: | time | Point in time at which to evaluate the variable. |
||
type(treelmesh_type), | intent(in) | :: | tree | global treelm mesh info |
||
integer, | intent(in) | :: | nPnts | Number of values to obtain for this variable (vectorized access). |
||
real(kind=rk), | intent(out) | :: | res(:) | Resulting values for the requested variable. Dimension: n requested entries x nComponents of this variable Access: (iElem-1)*fun%nComponents + iComp |
Routine to get the actual value for a given array of indices. The indices belong to the grwarray of points storing levelwise in Pointdata%pntLvl(iLevel). Hence this routines takes the indeices as input, can refer to the pointData and evaluate the variable and returns the values
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tem_varSys_op_type), | intent(in) | :: | fun | Description of the method to obtain the variables, |
||
type(tem_varSys_type), | intent(in) | :: | varSys | The variable system to obtain the variable from. |
||
type(tem_time_type), | intent(in) | :: | time | Point in time at which to evaluate the variable. |
||
integer, | intent(in) | :: | iLevel | Level on which values are requested |
||
integer, | intent(in) | :: | idx(:) | Index of points in the growing array and variable val array to return. Size: n |
||
integer, | intent(in), | optional | :: | idxLen(:) | With idx as start index in contiguous memory, idxLength defines length of each contiguous memory Size: dependes on number of first index for contiguous array, but the sum of all idxLen is equal to nVals |
|
integer, | intent(in) | :: | nVals | Number of values to obtain for this variable (vectorized access). |
||
real(kind=rk), | intent(out) | :: | res(:) | Resulting values for the requested variable. Dimension: n requested entries x nComponents of this variable Access: (iElem-1)*fun%nComponents + iComp |
This routine add body force to velocity in auxField for weakly-compressible model.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add force to velocity in auxField for incompressible model
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add body force to momentum in auxField for multispecies liquid model Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add electric force to momentum in auxField for multispecies liquid model Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add body force to momentum in auxField for multispecies liquid model with thermodynamic factor Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add electric force to momentum in auxField for multispecies liquid model with thermodynamic factor Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add source term with charge density in the Poisson equation to the potential. Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add sponge density and velocity field to density and velocity in auxField for weakly-compressible model. Reference: Jacob, J.; Sagaut, P. (2019): Solid wall and open boundary conditions in hybrid recursive regularized lattice Boltzmann method for compressible flows. In Physics of Fluids 31 (12), p. 126103.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add sponge density and velocity field to density and velocity in auxField. Density and velocity in far field are computed by time average.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add sponge density and velocity field to density and velocity in auxField. Density and velocity in far field are computed by time average.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add sponge density and velocity field to density and velocity in auxField. Density and velocity in far field are computed by time average.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add sponge density and velocity field to density and velocity in auxField. Density and velocity in far field are computed by time average.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine add dynamic force to velocity in auxField for weakly-compressible model for turbulent channel test case. Force definition: Force = rhou_tau^2/H + rho(u_bulk_ref-uX_bulk_avg)*u_bulk_ref/H Reference: 1) https://www.wias-berlin.de/people/john/ELECTRONIC_PAPERS/JR07.IJNMF.pdf 2) Haussmann, Marc; BARRETO, Alejandro CLARO; KOUYI, Gislain LIPEME; Rivière, Nicolas; Nirschl, Hermann; Krause, Mathias J. (2019): Large-eddy simulation coupled with wall models for turbulent channel flows at high Reynolds numbers with a lattice Boltzmann method — Application to Coriolis mass flowmeter. In Computers & Mathematics with Applications 78 (10), pp. 3285–3302. DOI: 10.1016/j.camwa.2019.04.033.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mus_source_op_type), | intent(inout) | :: | fun | Description of method to update source |
||
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_time_type), | intent(in) | :: | time | current timing information |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac | Physics conversion factor for current level |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for compressible model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for compressible d2q9 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for compressible d3q19 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for compressible d3q27 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for incompressible model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for incompressible d2q9 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for incompressible d3q19 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxFields density and velocity for incompressible d3q27 model for fluid and nGhostFromCoarser elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute zeroth moment from state and store in auxField. use this routine only for models which requires only zeroth-order moment as auxField
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute zeroth moment (mole density) from state for each species and store in auxField.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
This routine compute auxField density and momentum for each species for multicomponent models. The momentum computed here is only momentum of transformed PDF. The momentum of original PDF is computed by solving linear equation system in compute kernel and the momentum in auxField is updated there.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |
Dummy routine for calcAuxField
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(inout) | :: | auxField(:) | output auxField array |
||
real(kind=rk), | intent(in) | :: | state(:) | input state array |
||
integer, | intent(in) | :: | neigh(:) | connectivity array |
||
integer, | intent(in) | :: | nSize | number of elements in the state array |
||
integer, | intent(in) | :: | nSolve | number of elements excluding halos |
||
integer, | intent(in) | :: | iLevel | current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | stencil header |
||
type(tem_varSys_type), | intent(in) | :: | varSys | variable system definition |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) | position of derived quantities in varsys |