mus_turbVisc_Smagorinsky_fromGradU2D Subroutine

public subroutine mus_turbVisc_Smagorinsky_fromGradU2D(turbVisc, turbConfig, gradData, auxField, velPos, nSolve, nAuxScalars, dxL, dtL)

Calculate eddy viscosity with smagorinsky model for compressible model using gradient of velocity for 2D layout

Arguments

TypeIntentOptionalAttributesName
real(kind=rk), intent(out) :: turbVisc(:)

output: turbulent viscosity

type(mus_turbulence_config_type), intent(in) :: turbConfig

Contains turbulenct coefficients

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

gradient data

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

Auxiliary field variable array

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

position of velocity components in auxField

integer, intent(in) :: nSolve

Number of element to solve in this level

integer, intent(in) :: nAuxScalars

number of scalars in auxField array

real(kind=rk), intent(in) :: dxL

current level lattice element size

real(kind=rk), intent(in) :: dtL

current level lattice time step size


Calls

proc~~mus_turbvisc_smagorinsky_fromgradu2d~~CallsGraph proc~mus_turbvisc_smagorinsky_fromgradu2d mus_turbVisc_Smagorinsky_fromGradU2D proc~getgradu getGradU proc~mus_turbvisc_smagorinsky_fromgradu2d->proc~getgradu

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
real(kind=rk), private :: SR(3)
real(kind=rk), private :: devSR(2)
real(kind=rk), private :: oneHalf_trSR
real(kind=rk), private :: devSR_SR
real(kind=rk), private :: tr_devSR
real(kind=rk), private :: sqrt_k_sgs
real(kind=rk), private :: visc_coeff
real(kind=rk), private :: a
real(kind=rk), private :: b
real(kind=rk), private :: c
real(kind=rk), private :: gradU(2,2,1)

gradient of velocity