| 
    My Project
    
   programmer's documentation 
   | 
 
#include "cs_defs.h"
Go to the source code of this file.
Functions | |
| void | cs_turbulence_model_init_bc_ids (void) | 
| Initialize turbulence model boundary condition ids.  More... | |
| void | cs_turbulence_model_free_bc_ids (void) | 
| Free memory allocations for turbulence boundary conditions ids.  More... | |
| void | cs_turbulence_bc_ke_hyd_diam (double uref2, double dh, double rho, double mu, double *ustar2, double *k, double *eps) | 
Calculation of  ,   and   from a diameter   and the reference velocity   for a circular duct flow with smooth wall (use for inlet boundary conditions).  More... | |
| void | cs_turbulence_bc_ke_turb_intensity (double uref2, double t_intensity, double dh, double *k, double *eps) | 
Calculation of   and   from a diameter  , a turbulent intensity   and the reference velocity   for a circular duct flow with smooth wall (for inlet boundary conditions).  More... | |
| void | cs_turbulence_bc_inlet_hyd_diam (cs_lnum_t face_id, double uref2, double dh, double rho, double mu, double *rcodcl) | 
Set inlet boundary condition values for turbulence variables based on a diameter   and the reference velocity   for a circular duct flow with smooth wall (use for inlet boundary conditions).  More... | |
| void | cs_turbulence_bc_inlet_turb_intensity (cs_lnum_t face_id, double uref2, double t_intensity, double dh, double *rcodcl) | 
Set inlet boundary condition values for turbulence variables based on a diameter  , a turbulent intensity   and the reference velocity   for a circular duct flow with smooth wall.  More... | |
| void | cs_turbulence_bc_inlet_k_eps (cs_lnum_t face_id, double k, double eps, double *rcodcl) | 
| Set inlet boundary condition values for turbulence variables based on given k and epsilon values.  More... | |
| void | cs_turbulence_bc_set_uninit_inlet_k_eps (cs_lnum_t face_id, double k, double eps, double *rcodcl) | 
| Set inlet boundary condition values for turbulence variables based on given k and epsilon values only if not already initialized.  More... | |
| void | cs_turbulence_bc_rij_transform (int is_sym, cs_real_t p_lg[3][3], cs_real_t alpha[][6]) | 
Compute matrix   used in the computation of the Reynolds stress tensor boundary conditions.  More... | |
| void cs_turbulence_bc_inlet_hyd_diam | ( | cs_lnum_t | face_id, | 
| double | uref2, | ||
| double | dh, | ||
| double | rho, | ||
| double | mu, | ||
| double * | rcodcl | ||
| ) | 
Set inlet boundary condition values for turbulence variables based on a diameter 
 and the reference velocity 
 for a circular duct flow with smooth wall (use for inlet boundary conditions). 
We use the laws from Idel'Cik, i.e. the head loss coefficient 
 is defined by: 
then the relation reads 
. 
 depends on the hydraulic Reynolds number 
 and is given by:
 
 
, we complete by a straight line 
From 
, we can estimate 
 and 
 from the well known formulae of developped turbulence
| [in] | face_id | boundary face id | 
| [in] | uref2 | square of the reference flow velocity | 
| [in] | dh | hydraulic diameter    | 
| [in] | rho | mass density    | 
| [in] | mu | dynamic viscosity    | 
| [out] | rcodcl | boundary condition values | 
Set inlet boundary condition values for turbulence variables based on a diameter 
 and the reference velocity 
 for a circular duct flow with smooth wall (use for inlet boundary conditions).
We use the laws from Idel'Cik, i.e. the head loss coefficient 
 is defined by: 
then the relation reads 
. 
 depends on the hydraulic Reynolds number 
 and is given by:
 
 
, we complete by a straight line 
From 
, we can estimate 
 and 
 from the well known formulae of developped turbulence
| [in] | face_id | boundary face id | 
| [in] | uref2 | square of the reference flow velocity | 
| [in] | dh | hydraulic diameter    | 
| [in] | rho | mass density    | 
| [in] | mu | dynamic viscosity    | 
| [out] | rcodcl | boundary condition values | 
| void cs_turbulence_bc_inlet_k_eps | ( | cs_lnum_t | face_id, | 
| double | k, | ||
| double | eps, | ||
| double * | rcodcl | ||
| ) | 
Set inlet boundary condition values for turbulence variables based on given k and epsilon values.
| [in] | face_id | boundary face id | 
| [in] | k | turbulent kinetic energy | 
| [in] | eps | turbulent dissipation | 
| [out] | rcodcl | boundary condition values | 
| void cs_turbulence_bc_inlet_turb_intensity | ( | cs_lnum_t | face_id, | 
| double | uref2, | ||
| double | t_intensity, | ||
| double | dh, | ||
| double * | rcodcl | ||
| ) | 
Set inlet boundary condition values for turbulence variables based on a diameter 
, a turbulent intensity 
 and the reference velocity 
 for a circular duct flow with smooth wall. 
| [in] | face_id | boundary face id | 
| [in] | uref2 | square of the reference flow velocity | 
| [in] | t_intensity | turbulent intensity    | 
| [in] | dh | hydraulic diameter    | 
| [out] | rcodcl | boundary condition values | 
| void cs_turbulence_bc_ke_hyd_diam | ( | double | uref2, | 
| double | dh, | ||
| double | rho, | ||
| double | mu, | ||
| double * | ustar2, | ||
| double * | k, | ||
| double * | eps | ||
| ) | 
Calculation of 
, 
 and 
 from a diameter 
 and the reference velocity 
 for a circular duct flow with smooth wall (use for inlet boundary conditions). 
Both 
 and 
 are returned, so that the user may compute other values of 
 and 
 with 
.
We use the laws from Idel'Cik, i.e. the head loss coefficient 
 is defined by: 
then the relation reads 
. 
 depends on the hydraulic Reynolds number 
 and is given by:
 
 
, we complete by a straight line 
From 
, we can estimate 
 and 
 from the well known formulae of developped turbulence
| [in] | uref2 | square of the reference flow velocity | 
| [in] | dh | hydraulic diameter    | 
| [in] | rho | mass density    | 
| [in] | mu | dynamic viscosity    | 
| [out] | ustar2 | square of friction speed | 
| [out] | k | calculated turbulent intensity    | 
| [out] | eps | calculated turbulent dissipation    | 
| void cs_turbulence_bc_ke_turb_intensity | ( | double | uref2, | 
| double | t_intensity, | ||
| double | dh, | ||
| double * | k, | ||
| double * | eps | ||
| ) | 
Calculation of 
 and 
 from a diameter 
, a turbulent intensity 
 and the reference velocity 
 for a circular duct flow with smooth wall (for inlet boundary conditions). 
| [in] | uref2 | square of the reference flow velocity | 
| [in] | t_intensity | turbulent intensity    | 
| [in] | dh | hydraulic diameter    | 
| [out] | k | calculated turbulent intensity    | 
| [out] | eps | calculated turbulent dissipation    | 
Compute matrix 
 used in the computation of the Reynolds stress tensor boundary conditions. 
We note 
 the Reynolds Stress tensor in the global reference frame (mesh reference frame) and 
 the Reynolds stress tensor in the local reference frame (reference frame associated to the boundary face).
 is the change of basis orthogonal matrix from local to global reference frame.
 is a 6 by 6 matrix such that: 
 where symetric tensors 
 have been unfolded as follows: 
.
 is defined so that 
 is computed as a function of 
 as follows: 
with
and 
.
Constant c is chosen depending on the type of the boundary face: 
 at a wall face, 
 at a symmetry face.
| [in] | is_sym | Constant c in description above (1 at a symmetry face, 0 at a wall face) | 
| [in] | p_lg | change of basis matrix (local to global) | 
| [out] | alpha | transformation matrix | 
| void cs_turbulence_bc_set_uninit_inlet_k_eps | ( | cs_lnum_t | face_id, | 
| double | k, | ||
| double | eps, | ||
| double * | rcodcl | ||
| ) | 
Set inlet boundary condition values for turbulence variables based on given k and epsilon values only if not already initialized.
| [in] | face_id | boundary face id | 
| [in] | k | turbulent kinetic energy | 
| [in] | eps | turbulent dissipation | 
| [out] | rcodcl | boundary condition values | 
| void cs_turbulence_model_free_bc_ids | ( | void | ) | 
Free memory allocations for turbulence boundary conditions ids.
| void cs_turbulence_model_init_bc_ids | ( | void | ) | 
Initialize turbulence model boundary condition ids.
Initialize turbulence model boundary condition ids.
 1.8.16