Module containing subroutines for initialize Musubi source variables and update source terms
This routine does set_params and setupIndices for all sources terms by gathering points to apply souce term before.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_field_type), | intent(inout) | :: | field(:) |
contains sources of all fields |
||
integer, | intent(in) | :: | nFields |
Number of fields |
||
type(mus_source_type), | intent(inout) | :: | globSrc |
global source |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh |
||
type(tem_BC_prop_type), | intent(in) | :: | bc_prop |
bc property which is used to identify elements belong to certain BCs |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil |
stencil header |
||
integer, | intent(in) | :: | nElems_solve(tree%global%minLevel:) |
Number of elements to solve in all levels nFluids + nGhostFromCoarser |
||
type(tem_levelDesc_type), | intent(in) | :: | levelDesc(tree%global%minLevel:) |
Level descriptors |
Apply all source terms i.e field specific source and global source on all fields.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_field_type), | intent(in) | :: | field(nFields) |
contains sources of all fields |
||
integer, | intent(in) | :: | nFields |
Number of fields |
||
type(mus_source_type), | intent(in) | :: | globSrc |
global source |
||
type(pdf_data_type), | intent(inout) | :: |
pdf datatype |
|||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
integer, | intent(in) | :: | iLevel |
current level |
||
type(tem_time_type), | intent(in) | :: | time |
current timing information |
||
type(mus_convertFac_type), | intent(in) | :: | phyConvFac |
Physics conversion factor for current level |
||
real(kind=rk), | intent(inout) | :: | state(:,:) |
state type containing the state vector to update |
||
real(kind=rk), | intent(in) | :: | auxField(:) |
auxField array |
||
type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) |
position of derived quantities in varsys |
Updated all source variables i.e field specific source and global source on all fields.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nFields |
Number of fields |
||
type(mus_field_type), | intent(inout) | :: | field(nFields) |
contains sources of all fields |
||
type(mus_source_type), | intent(inout) | :: | globSrc |
global source |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
integer, | intent(in) | :: | iLevel |
current level |
||
real(kind=rk), | intent(in) | :: | auxField(:) |
auxField array |
||
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 routines does setup indices for given source within a field or global. Index are stored for points which source term is active
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_source_type), | intent(inout) | :: | source |
Source term to fill in |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
integer, | intent(in) | :: | nSolve |
Number of elements to apply source term on this level |
||
real(kind=rk), | intent(in) | :: | bary(:,:) |
Space coordinates to apply source terms |
||
integer, | intent(in) | :: | iLevel |
Current level |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh |
||
type(tem_BC_prop_type), | intent(in) | :: | bc_prop |
bc property which is used to identify elements belong to certain BCs |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil |
stencil used to find bcID on certain links |
This routines does setup indices for given source within a field or global. Index are stored for points which source term is active
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_source_type), | intent(inout) | :: | source |
Source term to fill in |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
global variable system |
||
integer, | intent(in) | :: | nSolve |
Number of elements to apply source term on this level |
||
integer, | intent(in) | :: | iLevel |
Current level |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil |
layout descriptor |
Create subTree and store nElemsGlobal in all proc for turbulent channel force
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_turbChannelForce_type), | intent(inout) | :: | turbChanForce |
Contains info for turbulent channel force |
||
type(treelmesh_type), | intent(in) | :: | tree |
global treelm mesh |
||
type(tem_BC_prop_type), | intent(in) | :: | bc_prop |
bc property which is used to identify elements belong to certain BCs |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil |
stencil used to find bcID on certain links |
Initialize arrays to store time average density and velocity for dynamic hrrCorrection. \todo KM: 20210301 Allocate also for ghost cells!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_HRRCorrectionTerm_type), | intent(inout) | :: | HRR_Corr |
HRR correction term type |
||
integer, | intent(in) | :: | nElems |
Number of source elements |
||
integer, | intent(in) | :: | nDim |
number of dimensions |