My Project
programmer's documentation
Macros | Variables
Transported scalars parameters
Collaboration diagram for Transported scalars parameters:

Macros

#define CS_ISOTROPIC_DIFFUSION   (1 << 0)
 
#define CS_ORTHOTROPIC_DIFFUSION   (1 << 1)
 
#define CS_ANISOTROPIC_LEFT_DIFFUSION   (1 << 2)
 
#define CS_ANISOTROPIC_RIGHT_DIFFUSION   (1 << 3)
 
#define CS_ANISOTROPIC_DIFFUSION   ((1 << 2) + (1 << 3))
 

Variables

integer, dimension(nscamx), save iscacp
 
integer, dimension(nscamx), save iclvfl
 iclvfl : 0 : clip variances to zero 1 : clip variances to zero and to f(1-f) 2 : clip variances to max(zero,scamin) and scamax for every scalar iscal representing the average of the square of the fluctuations of another scalar ii= iscavr (iscal) (noted $f$), indicator of the clipping method: More...
 
integer, dimension(nscamx), save iscasp
 iscasp(ii) : index of the ii^th species (0 if not a species) More...
 
double precision, dimension(nscamx), save visls0
 reference molecular diffusivity related to the scalar J ( $kg.m^{-1}.s^{-1}$).
More...
 
double precision, dimension(nscamx), save rvarfl
 When iscavr(iscal)>0, rvarfl is the coefficient $R_f$ in the dissipation term $\-\frac{\rho}{R_f}\frac{\varepsilon}{k}$ of the equation concerning the scalar, which represents the root mean square of the fluctuations of the scalar.
Useful if and only if there is 1 $\leqslant$ iscal $\leqslant$ nscal such as iscavr(iscal)>0. More...
 
double precision, dimension(nscamx), save ctheta
 ctheta : coefficient des modeles de flux turbulents GGDH et AFM More...
 
integer drift_scalar_add_drift_flux
 flag for computing the drift mass flux: (for coal classes for instance, only the first scalar of a class compute the drift flux of the class and the other scalars use it without recomputing it) More...
 
integer drift_scalar_thermophoresis
 flag for activating thermophoresis for drift scalars More...
 
integer drift_scalar_turbophoresis
 flag for activating turbophoresis for drift scalars More...
 
integer drift_scalar_electrophoresis
 
integer drift_scalar_centrifugalforce
 flag for activating the centrifugal force for drift scalars More...
 
integer drift_scalar_imposed_mass_flux
 flag for activating imposed mass flux More...
 
integer drift_scalar_zero_bndy_flux
 flag for activating imposed mass flux More...
 
integer isotropic_diffusion
 flag for isotropic diffusion More...
 
integer orthotropic_diffusion
 flag for orthotropic diffusion More...
 
integer anisotropic_left_diffusion
 flag for diffusion by a left-multiplied symmetric 3x3 tensor More...
 
integer anisotropic_right_diffusion
 
integer anisotropic_diffusion
 flag for diffusion by a symmetric 3x3 tensor More...
 

Detailed Description

Macro Definition Documentation

◆ CS_ANISOTROPIC_DIFFUSION

#define CS_ANISOTROPIC_DIFFUSION   ((1 << 2) + (1 << 3))

diffusion by a symmetric 3x3 tensor

◆ CS_ANISOTROPIC_LEFT_DIFFUSION

#define CS_ANISOTROPIC_LEFT_DIFFUSION   (1 << 2)

diffusion by a left-multiplied symmetric 3x3 tensor

◆ CS_ANISOTROPIC_RIGHT_DIFFUSION

#define CS_ANISOTROPIC_RIGHT_DIFFUSION   (1 << 3)

diffusion by a right-multiplied symmetric 3x3 tensor

◆ CS_ISOTROPIC_DIFFUSION

#define CS_ISOTROPIC_DIFFUSION   (1 << 0)

isotropic diffusion

◆ CS_ORTHOTROPIC_DIFFUSION

#define CS_ORTHOTROPIC_DIFFUSION   (1 << 1)

orthotropic diffusion

Variable Documentation

◆ anisotropic_diffusion

integer anisotropic_diffusion

flag for diffusion by a symmetric 3x3 tensor

◆ anisotropic_left_diffusion

integer anisotropic_left_diffusion

flag for diffusion by a left-multiplied symmetric 3x3 tensor

◆ anisotropic_right_diffusion

integer anisotropic_right_diffusion

◆ ctheta

double precision, dimension(nscamx), save ctheta

ctheta : coefficient des modeles de flux turbulents GGDH et AFM

◆ drift_scalar_add_drift_flux

integer drift_scalar_add_drift_flux

flag for computing the drift mass flux: (for coal classes for instance, only the first scalar of a class compute the drift flux of the class and the other scalars use it without recomputing it)

◆ drift_scalar_centrifugalforce

integer drift_scalar_centrifugalforce

flag for activating the centrifugal force for drift scalars

◆ drift_scalar_electrophoresis

integer drift_scalar_electrophoresis

◆ drift_scalar_imposed_mass_flux

integer drift_scalar_imposed_mass_flux

flag for activating imposed mass flux

◆ drift_scalar_thermophoresis

integer drift_scalar_thermophoresis

flag for activating thermophoresis for drift scalars

◆ drift_scalar_turbophoresis

integer drift_scalar_turbophoresis

flag for activating turbophoresis for drift scalars

◆ drift_scalar_zero_bndy_flux

integer drift_scalar_zero_bndy_flux

flag for activating imposed mass flux

◆ iclvfl

integer, dimension(nscamx), save iclvfl

iclvfl : 0 : clip variances to zero 1 : clip variances to zero and to f(1-f) 2 : clip variances to max(zero,scamin) and scamax for every scalar iscal representing the average of the square of the fluctuations of another scalar ii= iscavr (iscal) (noted $f$), indicator of the clipping method:

  • -1: no clipping because the scalar does not represent the average of the square of the fluctuations of another scalar
  • 0: clipping to 0 for the lower range of values
  • 1: clipping to 0 for the lower range of values and to $(f-f_{min})(f_{max}-f)$ for higher values, where $f$ is the associated scalar, $f_{min}$ and $f_{max}$ its minimum and maximum values specified by the user (i.e. scamin (ii) and scamax (ii))
  • 2: clipping to max(0,scamin(iscal)) for lower values and to scamax(iscal) for higher values.scamin and scamax are limits specified by the user.
    Useful for the scalars iscal for which iscavr (iscal) .

◆ iscacp

integer, dimension(nscamx), save iscacp

iscacp : 0 : scalar does not behave like a temperature 1 : scalar behaves like a temperature (use Cp for wall law) > 1 : not yet allowed, could be used for multiple Cp definitions

◆ iscasp

integer, dimension(nscamx), save iscasp

iscasp(ii) : index of the ii^th species (0 if not a species)

◆ isotropic_diffusion

integer isotropic_diffusion

flag for isotropic diffusion

◆ orthotropic_diffusion

integer orthotropic_diffusion

flag for orthotropic diffusion

◆ rvarfl

double precision, dimension(nscamx), save rvarfl

When iscavr(iscal)>0, rvarfl is the coefficient $R_f$ in the dissipation term $\-\frac{\rho}{R_f}\frac{\varepsilon}{k}$ of the equation concerning the scalar, which represents the root mean square of the fluctuations of the scalar.
Useful if and only if there is 1 $\leqslant$ iscal $\leqslant$ nscal such as iscavr(iscal)>0.

◆ visls0

double precision, dimension(nscamx), save visls0

reference molecular diffusivity related to the scalar J ( $kg.m^{-1}.s^{-1}$).

Negative value: not initialised
Useful if 1 $\leqslant$J $\leqslant$ nscal, unless the user specifies the molecular diffusivity in the appropriate user subroutine (cs_user_physical_properties for the standard physics) (field_get_key_id (ivarfl(isca(iscal)),kivisl,...) $>$ -1)
Warning: visls0 corresponds to the diffusivity. For the temperature, it is therefore defined as $\lambda/C_p$ where $\lambda$ and $C_p$ are the conductivity and specific heat. When using the Graphical Interface, $\lambda$ and $C_p$ are specified separately, and visls0 is calculated automatically.
With the compressible module, visls0 (given in uscfx2) is directly the thermal conductivity $W.m^{-1}.K^{-1}$.
With gas or coal combustion, the molecular diffusivity of the enthalpy ( $kg.m^{-1}.s^{-1}$) must be specified by the user in the variable diftl0(cs_user_combustion).
With the electric module, for the Joule effect, the diffusivity is specified by the user in cs_user_physical_properties.c (even if it is constant). For the electric arcs, it is calculated from the thermochemical data file.