getGradU Function

public pure function getGradU(auxField, gradData, velPos, nAuxScalars, nDims, nSolve, elemOffset) result(gradU)

This function computes gradient of velocity from gradient and veleocity data. Gradient is computed using central difference. if an element has an boundary then neighbor refers to current element then forward difference is used

Arguments

TypeIntentOptionalAttributesName
real(kind=rk), intent(in) :: auxField(:)

auxField

type(mus_gradData_type), intent(in) :: gradData

gradient data

integer, intent(in) :: velPos(3)

Position of velocity field in auxField

integer, intent(in) :: nAuxScalars

Number of scalars in auxField array

integer, intent(in) :: nDims

Dimensions

integer, intent(in) :: nSolve

Number of element to solve in this level

integer, intent(in) :: elemOffset

Offset for elements when computing chunkwise

Return Value real(kind=rk)(nDims,nDims,nSolve)

output: gradient of velocity


Called by

proc~~getgradu~~CalledByGraph proc~getgradu getGradU proc~mus_turbvisc_vreman_3d mus_turbVisc_Vreman_3D proc~mus_turbvisc_vreman_3d->proc~getgradu proc~mus_turbvisc_wale_2d mus_turbVisc_WALE_2D proc~mus_turbvisc_wale_2d->proc~getgradu proc~mus_turbvisc_smagorinsky_fromgradu2d mus_turbVisc_Smagorinsky_fromGradU2D proc~mus_turbvisc_smagorinsky_fromgradu2d->proc~getgradu proc~mus_opvar_gradu_forelement mus_opVar_gradU_forElement proc~mus_opvar_gradu_forelement->proc~getgradu proc~mus_turbvisc_smagorinsky_fromgradu3d mus_turbVisc_Smagorinsky_fromGradU3D proc~mus_turbvisc_smagorinsky_fromgradu3d->proc~getgradu proc~mus_turbvisc_wale_3d mus_turbVisc_WALE_3D proc~mus_turbvisc_wale_3d->proc~getgradu proc~mus_turbvisc_smagorinsky_fromgradu3d_incomp mus_turbVisc_Smagorinsky_fromGradU3D_incomp proc~mus_turbvisc_smagorinsky_fromgradu3d_incomp->proc~getgradu proc~mus_opvar_qcriterion_forelement mus_opVar_QCriterion_forElement proc~mus_opvar_qcriterion_forelement->proc~getgradu proc~mus_turbvisc_smagorinsky_fromgradu2d_incomp mus_turbVisc_Smagorinsky_fromGradU2D_incomp proc~mus_turbvisc_smagorinsky_fromgradu2d_incomp->proc~getgradu proc~mus_opvar_vorticity_forelement mus_opVar_vorticity_forElement proc~mus_opvar_vorticity_forelement->proc~getgradu proc~mus_turbvisc_vreman_2d mus_turbVisc_Vreman_2D proc~mus_turbvisc_vreman_2d->proc~getgradu

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
integer, private :: elempos
integer, private :: leftngh(nDims)
integer, private :: rightngh(nDims)
real(kind=rk), private :: leftvel(nDims,nDims)
real(kind=rk), private :: rightvel(nDims,nDims)