7.3
general documentation
cs_turbulence_rij.h File Reference
#include "cs_defs.h"
+ Include dependency graph for cs_turbulence_rij.h:

Go to the source code of this file.

Functions

void cs_turbulence_rij (cs_lnum_t ncesmp, cs_lnum_t icetsm[], int itypsm[], cs_real_t smacel[])
 Solve the $ R_{ij} - \epsilon $ for incompressible flows or slightly compressible flows for one time step. More...
 
void cs_turbulence_rij_solve_alpha (int f_id, cs_real_t c_durbin_l)
 Solve the equation on alpha in the framework of the Rij-EBRSM model. More...
 
void cs_turbulence_rij_init_by_ref_quantities (cs_real_t uref, cs_real_t almax)
 Initialize Rij-epsilon variables based on reference quantities. More...
 
void cs_turbulence_rij_clip (cs_lnum_t n_cells)
 Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version). More...
 
void cs_turbulence_rij_clip_sg (cs_lnum_t n_cells, int iclip)
 Clip the turbulent Reynods stress tensor and the turbulent dissipation (segregated version) More...
 

Function Documentation

◆ cs_turbulence_rij()

void cs_turbulence_rij ( cs_lnum_t  ncesmp,
cs_lnum_t  icetsm[],
int  itypsm[],
cs_real_t  smacel[] 
)

Solve the $ R_{ij} - \epsilon $ for incompressible flows or slightly compressible flows for one time step.

Please refer to the $ R_{ij} - \epsilon $ model section of the theory guide for more informations, as well as the turrij section.

Parameters
[in]ncesmpnumber of cells with mass source term
[in]icetsmindex of cells with mass source term
[in]itypsmmass source type for the variables
[in]smacelvalues of the variables associated to the mass source (for ivar=ipr, smacel is the mass flux) !

◆ cs_turbulence_rij_clip()

void cs_turbulence_rij_clip ( cs_lnum_t  n_cells)

Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version).

Parameters
[in]n_cellsnumber of cells

◆ cs_turbulence_rij_clip_sg()

void cs_turbulence_rij_clip_sg ( cs_lnum_t  n_cells,
int  iclip 
)

Clip the turbulent Reynods stress tensor and the turbulent dissipation (segregated version)

Parameters
[in]n_cellsnumber of cells
[in]iclipif 0, viscl0 is used; otherwise viscl is used.

◆ cs_turbulence_rij_init_by_ref_quantities()

void cs_turbulence_rij_init_by_ref_quantities ( cs_real_t  uref,
cs_real_t  almax 
)

Initialize Rij-epsilon variables based on reference quantities.

If uref is not provided (0 or negative), values are set at a large negative value (-cs_math_big_r) to allow for later checks.

Parameters
[in]urefcharacteristic flow velocity
[in]almaxcharacteristic macroscopic length of the domain

◆ cs_turbulence_rij_solve_alpha()

void cs_turbulence_rij_solve_alpha ( int  f_id,
cs_real_t  c_durbin_l 
)

Solve the equation on alpha in the framework of the Rij-EBRSM model.

Also called for alpha of scalars for EB-DFM.

Parameters
[in]f_idfield id of alpha variable
[in]c_durbin_lconstant for the Durbin length !