| 
    My Project
    
   programmer's documentation 
   | 
 
#include "cs_defs.h"
Go to the source code of this file.
Data Structures | |
| struct | cs_turb_model_t | 
| Turbulence model general options descriptor.  More... | |
| struct | cs_turb_ref_values_t | 
| struct | cs_turb_rans_model_t | 
| RANS turbulence model descriptor.  More... | |
| struct | cs_turb_les_model_t | 
| LES turbulence model descriptor.  More... | |
Enumerations | |
| enum | {  CS_TURB_NONE = 0, CS_TURB_MIXING_LENGTH = 10, CS_TURB_K_EPSILON = 20, CS_TURB_K_EPSILON_LIN_PROD = 21, CS_TURB_K_EPSILON_LS = 22, CS_TURB_K_EPSILON_QUAD = 23, CS_TURB_RIJ_EPSILON_LRR = 30, CS_TURB_RIJ_EPSILON_SSG = 31, CS_TURB_RIJ_EPSILON_EBRSM = 32, CS_TURB_LES_SMAGO_CONST = 40, CS_TURB_LES_SMAGO_DYN = 41, CS_TURB_LES_WALE = 42, CS_TURB_V2F_PHI = 50, CS_TURB_V2F_BL_V2K = 51, CS_TURB_K_OMEGA = 60, CS_TURB_SPALART_ALLMARAS = 70 }  | 
Functions | |
| cs_turb_model_t * | cs_get_glob_turb_model (void) | 
| Provide access to global turbulence model structure cs_glob_turb_model.  More... | |
| void | cs_turb_compute_constants (void) | 
| Compute turbulence model constants, some of which may depend on the model choice.  More... | |
| cs_turb_ref_values_t * | cs_get_glob_turb_ref_values (void) | 
| Provide acces to cs_glob_turb_ref_values.  More... | |
| cs_turb_rans_model_t * | cs_get_glob_turb_rans_model (void) | 
| Provide acces to cs_glob_turb_rans_model.  More... | |
| cs_turb_les_model_t * | cs_get_glob_turb_les_model (void) | 
| Provide acces to cs_glob_turb_les_model.  More... | |
| void | cs_turb_model_log_setup (void) | 
| Print the turbulence model parameters to setup.log.  More... | |
| void | cs_turb_constants_log_setup (void) | 
| Print the turbulent constants to setup.log.  More... | |
| anonymous enum | 
| cs_turb_les_model_t* cs_get_glob_turb_les_model | ( | void | ) | 
Provide acces to cs_glob_turb_les_model.
needed to initialize structure with GUI
| cs_turb_model_t* cs_get_glob_turb_model | ( | void | ) | 
Provide access to global turbulence model structure cs_glob_turb_model.
It is needed to initialize structure with GUI.
| cs_turb_rans_model_t* cs_get_glob_turb_rans_model | ( | void | ) | 
Provide acces to cs_glob_turb_rans_model.
needed to initialize structure with GUI
| cs_turb_ref_values_t* cs_get_glob_turb_ref_values | ( | void | ) | 
Provide acces to cs_glob_turb_ref_values.
needed to initialize structure with GUI
| void cs_turb_compute_constants | ( | void | ) | 
Compute turbulence model constants, some of which may depend on the model choice.
| void cs_turb_constants_log_setup | ( | void | ) | 
Print the turbulent constants to setup.log.
| void cs_turb_model_log_setup | ( | void | ) | 
Print the turbulence model parameters to setup.log.
| const cs_turb_les_model_t* cs_glob_turb_les_model | 
| const cs_turb_model_t* cs_glob_turb_model | 
| const cs_turb_rans_model_t* cs_glob_turb_rans_model | 
| const cs_turb_ref_values_t* cs_glob_turb_ref_values | 
| const double cs_turb_ales | 
Constant used to define, for each cell 
, the width of the (implicit) filter:

Useful if and only if iturb = 40 or 41.
| const double cs_turb_apow | 
Werner and Wengle coefficient
| const double cs_turb_bles | 
Constant used to define, for each cell 
, the width of the (implicit) filter:

Useful if and only if iturb = 40 or 41.
| const double cs_turb_bpow | 
Werner and Wengle coefficient
| const double cs_turb_c1trit | 
Coefficient of turbulent DFM flow model.
| const double cs_turb_c2trit | 
Coefficient of turbulent DFM flow model.
| const double cs_turb_c3trit | 
Coefficient of turbulent DFM flow model.
| const double cs_turb_c4trit | 
Coefficient of turbulent DFM flow model.
| const double cs_turb_ccaza | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_ccazb | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_ccazc | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_ccazd | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_ccaze2 | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_ccazsc | 
Constants of the Cazalbou rotation/curvature correction.
| const double cs_turb_cdries | 
Van Driest constant appearing in the van Driest damping function applied to the Smagorinsky constant:
.Useful if and only if iturb = 40 or 41.
| const double cs_turb_ce1 | 
Constant 
 for all the RANS turbulence models except for the v2f and the 
 models. Useful if and only if iturb= 20, 21, 30 or 31 ( 
 or 
). 
| const double cs_turb_ce2 | 
Constant 
 for the 
 and 
 LRR models. Useful if and only if iturb = 20, 21 or 30 ( 
 or 
 LRR). 
| const double cs_turb_ce4 | 
Coefficient of interfacial coefficient in k-eps, used in Lagrange treatment.
Constant 
 for the interfacial term (Lagrangian module) in case of two-way coupling. Useful in case of Lagrangian modelling, in 
 and 
 with two-way coupling. 
| const double cs_turb_cebme2 | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_cebmmu | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_cebmr1 | 
| const double cs_turb_cebms1 | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_cebms2 | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_ckwa1 | 
Specific constant of k-omega SST. Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
| const double cs_turb_ckwbt1 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
| const double cs_turb_ckwbt2 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
| const double cs_turb_ckwc1 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). Specific constant of k-omega SST. 
| double cs_turb_ckwgm1 | 
. Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
 is calculated before the call to usipsu. Hence, if 
, 
, 
 or 
 is modified in usipsu, cs_turb_ckwgm1 must also be modified in accordance. | double cs_turb_ckwgm2 | 
. Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
 is calculated before the call to usipsu. Hence, if 
, 
, 
 or 
 is modified in usipsu, cs_turb_ckwgm2 must also be modified in accordance. | const double cs_turb_ckwsk1 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60. 
| const double cs_turb_ckwsk2 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60. 
| const double cs_turb_ckwsw1 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
| const double cs_turb_ckwsw2 | 
Constant 
 for the 
 SST model. Useful if and only if iturb=60 ( 
 SST). 
| double cs_turb_cmu | 
Constant 
 for all the RANS turbulence models except for the v2f model (see cs_turb_cv2fmu for the value of 
 in case of v2f modelling). Useful if and only if iturb = 20, 21, 30, 31 or 60 ( 
, 
 or 
). 
| double cs_turb_cmu025 | 
 
| const double cs_turb_cpalc1 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalc2 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalcl | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalct | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpale1 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpale2 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpale3 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpale4 | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalet | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalmu | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| const double cs_turb_cpalse | 
Specific constant of v2f "BL-v2k" (or phi-alpha).
| double cs_turb_crij1 | 
Constant 
 for the 
 LRR model. Useful if and only if iturb=30 ( 
 LRR). 
| double cs_turb_crij2 | 
| double cs_turb_crij3 | 
Constant 
 for the 
 models. Value is 0.55 for SSG and LRR, 0.6 for EBRSM. 
| const double cs_turb_crijp1 | 
Constant 
 for the 
 LRR model, corresponding to the wall echo terms. Useful if and only if iturb=30 and cs_turb_rans_model_t::irijec=1 ( 
 LRR). 
| const double cs_turb_crijp2 | 
Constant 
 for the 
 LRR model, corresponding to the wall echo terms. Useful if and only if iturb=30 and cs_turb_rans_model_t::irijec=1 ( 
 LRR). 
| const double cs_turb_csab1 | 
Specific constant of Spalart-Allmaras.
| const double cs_turb_csab2 | 
Specific constant of Spalart-Allmaras.
| const double cs_turb_csasig | 
Specific constant of Spalart-Allmaras.
| const double cs_turb_csav1 | 
Specific constant of Spalart-Allmaras.
| double cs_turb_csaw1 | 
Specific constant of Spalart-Allmaras.
| const double cs_turb_csaw2 | 
Specific constant of Spalart-Allmaras.
| const double cs_turb_csaw3 | 
Specific constant of Spalart-Allmaras.
| double cs_turb_csmago | 
Smagorinsky constant used in the Smagorinsky model for LES. The sub-grid scale viscosity is calculated by 
 where 
 is the width of the filter and 
 the filtered strain rate.
Useful if and only if iturb = 40.
| double cs_turb_csrij | 
Constant 
 for the 
 LRR model. Useful if and only if iturb=30 ( 
 LRR). 
| const double cs_turb_cssge2 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgr1 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgr2 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgr3 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgr4 | 
constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgr5 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgs1 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssgs2 | 
Constant 
 for the 
 SSG model. Useful if and only if iturb=31 ( 
 SSG). 
| const double cs_turb_cssr1 | 
Constant of the Spalart-Shur rotation/curvature correction.
| const double cs_turb_cssr2 | 
Constant of the Spalart-Shur rotation/curvature correction.
| const double cs_turb_cssr3 | 
Constant of the Spalart-Shur rotation/curvature correction.
| const double cs_turb_cstlog | 
Constant of logarithmic smooth law function: 
 ( 
).
Constant of the logarithmic wall function. Useful if and only if iturb >= 10 (mixing length, 
, 
, LES, v2f or 
). 
| double cs_turb_cstlog_alpha | 
Constant 
 for logarithmic law function switching from rough to smooth: 
 ( 
).
Useful if and only if iturb >= 10 (mixing length, 
, 
, LES, v2f or 
). 
| const double cs_turb_cstlog_rough | 
Constant of logarithmic rough law function: 
 ( 
).
Constant of the logarithmic wall function. Useful if and only if iturb >= 10 (mixing length, 
, 
, LES, v2f or 
). 
| const double cs_turb_cthafm | 
Constant of GGDH and AFM on the thermal scalar.
| const double cs_turb_cthdfm | 
Constant of GGDH and AFM on the thermal scalar.
| const double cs_turb_cv2fa1 | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fc1 | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fc2 | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fcl | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fct | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fe2 | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fet | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| const double cs_turb_cv2fmu | 
Constant 
 for the v2f 
-model. Useful if and only if iturb=50 (v2f 
-model). 
| double cs_turb_cwale | 
Constant of the WALE LES method.
| double cs_turb_dpow | 
Werner and Wengle coefficient
| const double cs_turb_etaafm | 
Coefficient of turbulent AFM flow model.
| double cs_turb_sigmae | 
Prandtl number for 
. Useful if and only if iturb= 20, 21, 30, 31 or 50 ( 
, 
 or v2f). 
| const double cs_turb_sigmak | 
Prandtl number for 
 with 
 and v2f models. Useful if and only if iturb=20, 21 or 50 ( 
 or v2f). 
| double cs_turb_smagmn | 
Minimum allowed value for the variable 
 appearing in the LES dynamic model. Any smaller value yielded by the calculation procedure of the dynamic model will be clipped to 
.
Useful if and only if iturb = 41.
| double cs_turb_smagmx | 
Maximum allowed value for the variable 
 appearing in the LES dynamic model. Any larger value yielded by the calculation procedure of the dynamic model will be clipped to 
.
Useful if and only if iturb = 41.
| const double cs_turb_vdriest | 
Van Driest constant. (= 25.6)
Useful if and only if cs_glob_wall_functions::iwallf = 5. (Two scales log law at the wall using Van Driest mixing length expression).
| const double cs_turb_xa1 | 
Constant in the expression of Ce1' for the Rij-epsilon EBRSM.
| const double cs_turb_xceta | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_xcl | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_xct | 
Constant of the Rij-epsilon EBRSM.
| const double cs_turb_xiafm | 
Coefficient of turbulent AFM flow model.
| const double cs_turb_xkappa | 
Karman constant. (= 0.42)
Useful if and only if iturb >= 10. (mixing length, 
, 
, LES, v2f or 
). 
| const double cs_turb_xlesfd | 
Ratio between explicit and explicit filter width for a dynamic model. Constant used to define, for each cell 
, the width of the explicit filter used in the framework of the LES dynamic model: 
.
Useful if and only if iturb = 41.
| const double cs_turb_xlesfl | 
Constant used in the definition of LES filtering diameter: 
 cs_turb_xlesfl is a constant used to define, for each cell 
, the width of the (implicit) filter: 
Useful if and only if iturb = 40 or 41 
 1.8.16