getEquilibrium_forElemfromState Function

private pure function getEquilibrium_forElemfromState(state, elem, layout, varPos, nScalars, neigh) result(equil)

Calculate the equilibrium distribution function in all directions

The equilibrim distribution function is:\n \n where is the weight in each direction,\n is the macroscopic value of density,\n is the speed of sound,\n is the lattice unit velocity in each direction,\n is the macroscopic value of velocity.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: state(:)
integer, intent(in) :: elem
type(mus_scheme_layout_type), intent(in) :: layout
integer, intent(in) :: varPos(:)
integer, intent(in) :: nScalars
integer, intent(in) :: neigh(:)

Return Value real(kind=rk), (layout%fStencil%QQ)


Calls

proc~~getequilibrium_forelemfromstate~~CallsGraph proc~getequilibrium_forelemfromstate getEquilibrium_forElemfromState cxdirrk cxdirrk proc~getequilibrium_forelemfromstate->cxdirrk interface~getdensity getDensity proc~getequilibrium_forelemfromstate->interface~getdensity interface~getvelocity getVelocity proc~getequilibrium_forelemfromstate->interface~getvelocity proc~getdensity_forelemfromstate getDensity_forElemFromState interface~getdensity->proc~getdensity_forelemfromstate proc~getdensity_forpdfsubset getDensity_forPdfSubset interface~getdensity->proc~getdensity_forpdfsubset proc~getvelocity_forelemfromstate_noforce getVelocity_forElemFromState_noForce interface~getvelocity->proc~getvelocity_forelemfromstate_noforce proc~getvelocity_forpdfsubset getVelocity_forPdfSubset interface~getvelocity->proc~getvelocity_forpdfsubset

Called by

proc~~getequilibrium_forelemfromstate~~CalledByGraph proc~getequilibrium_forelemfromstate getEquilibrium_forElemfromState interface~getequilibrium getEquilibrium interface~getequilibrium->proc~getequilibrium_forelemfromstate proc~mus_turbvisc_smagorinsky_fromprecolpdf_2d mus_turbVisc_Smagorinsky_fromPreColPDF_2D proc~mus_turbvisc_smagorinsky_fromprecolpdf_2d->interface~getequilibrium proc~mus_turbvisc_smagorinsky_fromprecolpdf_3d mus_turbVisc_Smagorinsky_fromPreColPDF_3D proc~mus_turbvisc_smagorinsky_fromprecolpdf_3d->interface~getequilibrium