My Project
programmer's documentation
Functions/Subroutines
visdyn.f90 File Reference

Calculation of turbulent viscosity for a dynamic Smagorinsky LES model. More...

Functions/Subroutines

subroutine visdyn (nvar, nscal, ncepdp, ncesmp, icepdc, icetsm, itypsm, dt, ckupdc, smacel)
 

Detailed Description

Calculation of turbulent viscosity for a dynamic Smagorinsky LES model.

\[ smago = \dfrac{L_{ij}M_{ij}}{M_{ij}M_{ij}} \]

\[ \mu_T = \rho smago L^2 \sqrt{2 S_{ij}S_{ij}} \]

\[ S_{ij} = \dfrac{\der{u_i}{x_j} + \der{u_j}{x_i}}{2}\]

We have at edge faces types at previous time step (except at first time step, when tables itypfb and itrifb have not been filled).

Please refer to the dynamic Smagorinsky model section of the theory guide for more informations.

Function/Subroutine Documentation

◆ visdyn()

subroutine visdyn ( integer  nvar,
integer  nscal,
integer  ncepdp,
integer  ncesmp,
integer, dimension(ncepdp)  icepdc,
integer, dimension(ncesmp)  icetsm,
integer, dimension(ncesmp,nvar itypsm,
double precision, dimension(ncelet)  dt,
double precision, dimension(6,ncepdp)  ckupdc,
double precision, dimension(ncesmp,nvar smacel 
)
Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]ncepdpnumber of cells with head loss
[in]ncesmpnumber of cells with mass source term
[in]icepdcnumber of ncepdp cells with losses
[in]icetsmnumber of cells with mass source
[in]itypsmtype of mass source for the variable (cf. cs_user_mass_source_terms)
[in]dttime step (per cell)
[in]ckupdcwork array for head losses
[in]smacelvalue of variables associated to the mass source for ivar = ipr, smacel = mass flux