Code_Saturne
CFD tool
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, rtp, rtpa, propce, propfa, propfb, tslagr, coefa, coefb, ckupdc, smacel, prdv2f)
 

Detailed Description

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

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,*)  rtp,
double precision, dimension(ncelet,*)  rtpa,
double precision, dimension(ncelet,*)  propce,
double precision, dimension(nfac,*)  propfa,
double precision, dimension(ndimfb,*)  propfb,
double precision, dimension(ncelet,*)  tslagr,
double precision, dimension(ndimfb,*)  coefa,
double precision, dimension(ndimfb,*)  coefb,
double precision, dimension(ncepdp,6)  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. ustsma)
[in]dttime step (per cell)
[in,out]rtpcalculated variables at cell centers (at the current time step)
[in]rtpacalculated variables at cell centers (at the previous time step)
[in]propcephysical properties at cell centers
[in]propfaphysical properties at interior face centers
[in]propfbphysical properties at boundary face centers
[in]tslagrcoupling term of the lagangian module
[in]coefa,coefbboundary conditions
[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
Here is the call graph for this function: