|
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_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_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_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 |
| void cs_turbulence_model_init_bc_ids | ( | void | ) |
Initialize turbulence model boundary condition ids.
Initialize turbulence model boundary condition ids.
1.8.7