![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_log.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_map.h"
#include "cs_parall.h"
#include "cs_mesh_location.h"
#include "cs_turbulence_model.h"
#include "cs_turbulence_bc.h"
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 ![]() ![]() ![]() ![]() ![]() | |
void | cs_turbulence_bc_ke_turb_intensity (double uref2, double t_intensity, double dh, double *k, double *eps) |
Calculation of ![]() ![]() ![]() ![]() ![]() | |
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 ![]() ![]() | |
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 ![]() ![]() ![]() | |
Base turbulence boundary conditions.
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.
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:
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:
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.