getDensity_forElemFromState Function

private pure function getDensity_forElemFromState(state, elem, stencil, varPos, nScalars) result(res)

Calculate the density of a given element number with the given state vector (sum up all values)

Arguments

TypeIntentOptionalAttributesName
real(kind=rk), intent(in) :: state(:)
integer, intent(in) :: elem
type(tem_stencilHeader_type), intent(in) :: stencil
integer, intent(in) :: varPos(:)
integer, intent(in) :: nScalars

Return Value real(kind=rk)


Called by

proc~~getdensity_forelemfromstate~~CalledByGraph proc~getdensity_forelemfromstate getDensity_forElemFromState interface~getdensity getDensity interface~getdensity->proc~getdensity_forelemfromstate proc~getequilibrium_forelemfromstate getEquilibrium_forElemfromState proc~getequilibrium_forelemfromstate->interface~getdensity proc~mus_applyforce_x mus_applyForce_X proc~mus_applyforce_x->interface~getdensity proc~mus_inamuro_ibm mus_inamuro_IBM proc~mus_inamuro_ibm->proc~mus_applyforce_x interface~getequilibrium getEquilibrium interface~getequilibrium->proc~getequilibrium_forelemfromstate proc~set_pdfacoustic set_pdfAcoustic proc~set_pdfacoustic->interface~getequilibrium proc~getshearstresstensor_forelemfromstate getShearStressTensor_forElemFromState proc~getshearstresstensor_forelemfromstate->interface~getequilibrium proc~getshearratetensor_acoustic_lbm getShearRateTensor_acoustic_lbm proc~getshearratetensor_acoustic_lbm->interface~getequilibrium proc~mus_turbvisc_smagorinsky_fromprecolpdf mus_turbVisc_Smagorinsky_fromPreColPDF proc~mus_turbvisc_smagorinsky_fromprecolpdf->interface~getequilibrium proc~getshearstresstensor_forpdfsubset getShearStressTensor_forPdfSubset proc~getshearstresstensor_forpdfsubset->interface~getequilibrium proc~do_fast_singlelevel do_fast_singleLevel proc~do_fast_singlelevel->proc~mus_inamuro_ibm

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iDir
integer, private :: nElems