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

Solving the $ k - \epsilon $ for incompressible flows or slightly compressible flows for one time step. More...

Functions/Subroutines

subroutine turbke (nvar, nscal, ncepdp, ncesmp, icepdc, icetsm, itypsm, dt, tslagr, ckupdc, smacel, prdv2f)
 

Detailed Description

Solving the $ k - \epsilon $ for incompressible flows or slightly compressible flows for one time step.

Please refer to the $k - \epsilon $ model section of the theory guide for more informations, as well as the turbke section.

Function/Subroutine Documentation

◆ turbke()

subroutine turbke ( 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(ncelet,*)  tslagr,
double precision, dimension(6,ncepdp)  ckupdc,
double precision, dimension(ncesmp,nvar smacel,
double precision, dimension(ncelet)  prdv2f 
)
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]icepdcindex of the ncepdp cells with head loss
[in]icetsmindex of cells with mass source term
[in]itypsmmass source type for the variables (cf. cs_user_mass_source_terms)
[in]dttime step (per cell)
[in]tslagrcoupling term of the lagangian module
[in]ckupdcwork array for the head loss
[in]smacelvalues of the variables associated to the mass source (for ivar=ipr, smacel is the mass flux)
[in]prdv2fproduction term stored for the v2f