1#ifndef __CS_CDO_TURBULENCE_H__
2#define __CS_CDO_TURBULENCE_H__
49#define CS_NAVSTO_TOTAL_VISCOSITY "total_viscosity"
50#define CS_NAVSTO_LAM_VISCOSITY "laminar_viscosity"
51#define CS_NAVSTO_TURB_VISCOSITY "turbulent_viscosity"
void cs_turbulence_finalize_setup(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, cs_turbulence_t *tbs)
Finalize the setup of the turbulence modelling and especially the equations/properties and other rela...
Definition: cs_cdo_turbulence.cpp:518
void cs_turbulence_set_shared_from_fv(cs_turbulence_t *tbs, bool is_shared)
Indicate whether use Legacy solved turbulent viscosity.
Definition: cs_cdo_turbulence.cpp:636
void cs_turbulence_init_setup(cs_turbulence_t *tbs, cs_equation_t *mom_eq)
Initialize the structure managing the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:398
void * cs_turb_free_k_eps_context(void *tbc)
Free the context structure related to the k-epsilon turbulence model.
Definition: cs_cdo_turbulence.cpp:786
void *() cs_turb_free_context_t(void *turb_context)
Free the context structure related to a given turbulence modelling.
Definition: cs_cdo_turbulence.h:140
void * cs_turb_init_k_eps_context(const cs_turb_model_t *tbm)
Allocate and initialize the context structure related to the k-epsilon turbulence model.
Definition: cs_cdo_turbulence.cpp:688
bool cs_turb_wall_functions_is_activated(const cs_turbulence_param_t *turbulence)
Return true if a wall function is used for turbulence.
Definition: cs_cdo_turbulence.cpp:1060
void cs_turb_compute_wall_bc_coeffs(const cs_equation_param_t *eqp, const double nu, const double k, const double hfc, const double uct, cs_real_t *res)
Function used to define the exchange coefficients for tangential and normal components.
Definition: cs_cdo_turbulence.cpp:1026
void cs_turbulence_free(cs_turbulence_t **p_turb_struct)
Free the structure managing the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:370
void() cs_turb_compute_t(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, cs_turbulence_t *tbs)
Compute for the current time step the new state for the turbulence model. This means that all related...
Definition: cs_cdo_turbulence.h:157
void cs_turb_update_shared_legacy(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, const cs_turbulence_t *tbs)
Update for the current time step the new state for the turbulence model. directly update the turbulen...
Definition: cs_cdo_turbulence.cpp:886
cs_turbulence_t * cs_turbulence_create(cs_turbulence_param_t *tbp)
Allocate the structure managing the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:319
void *() cs_turb_init_context_t(const cs_turb_model_t *tbm)
Allocate and initialize the context structure related to a given turbulence modelling.
Definition: cs_cdo_turbulence.h:127
void cs_turbulence_init_values(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, cs_turbulence_t *tbs)
Initialize the values of quantities related to a turbulence model.
Definition: cs_cdo_turbulence.cpp:655
void() cs_turb_update_t(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, const cs_turbulence_t *tbs)
Update properties, arrays related to the turbulent variables.
Definition: cs_cdo_turbulence.h:176
cs_turbulence_param_t * cs_turbulence_param_create(void)
Allocate the structure storing the set of parameters for the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:285
void cs_turb_compute_k_eps(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, cs_turbulence_t *tbs)
Compute for the current time step the new state for the turbulence model. This means that all related...
Definition: cs_cdo_turbulence.cpp:936
void cs_turb_update_k_eps(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, const cs_turbulence_t *tbs)
Update for the current time step the new state for the turbulence model. This is used to update the t...
Definition: cs_cdo_turbulence.cpp:812
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
double cs_real_t
Floating-point value.
Definition: cs_defs.h:357
#define END_C_DECLS
Definition: cs_defs.h:555
@ k
Definition: cs_field_pointer.h:72
Definition: cs_cdo_turbulence.h:188
cs_property_t * mu_l
Definition: cs_cdo_turbulence.h:228
cs_turb_update_t * update
Definition: cs_cdo_turbulence.h:307
void * context
Definition: cs_cdo_turbulence.h:275
cs_turb_compute_t * compute_steady
Definition: cs_cdo_turbulence.h:300
cs_turbulence_param_t * param
Definition: cs_cdo_turbulence.h:200
cs_turb_free_context_t * free_context
Definition: cs_cdo_turbulence.h:287
cs_equation_t * mom_eq
Definition: cs_cdo_turbulence.h:205
cs_property_t * mu_t
Definition: cs_cdo_turbulence.h:234
cs_turb_init_context_t * init_context
Definition: cs_cdo_turbulence.h:281
cs_turb_compute_t * compute
Definition: cs_cdo_turbulence.h:293
cs_field_t * mu_t_field
Definition: cs_cdo_turbulence.h:251
cs_property_t * rho
Definition: cs_cdo_turbulence.h:216
cs_field_t * rij
Definition: cs_cdo_turbulence.h:257
cs_real_t * mu_tot_array
Definition: cs_cdo_turbulence.h:239
cs_property_t * mu_tot
Definition: cs_cdo_turbulence.h:222
Definition: cs_cdo_connect.h:61
Definition: cs_cdo_quantities.h:145
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources.
Definition: cs_equation_param.h:194
Main structure to handle the discretization and the resolution of an equation.
Field descriptor.
Definition: cs_field.h:156
Structure associated to the definition of a property relying on the cs_xdef_t structure.
time step descriptor
Definition: cs_time_step.h:64
LES turbulence model descriptor.
Definition: cs_turbulence_model.h:275
Turbulence model general options descriptor.
Definition: cs_turbulence_model.h:130
RANS turbulence model descriptor.
Definition: cs_turbulence_model.h:198
Definition: cs_turbulence_model.h:187
Structure storing the parameters related to the resolution of the turbulence modelling....
Definition: cs_cdo_turbulence.h:64
cs_turb_les_model_t * les_param
Definition: cs_cdo_turbulence.h:87
cs_turb_ref_values_t * reference_values
Definition: cs_cdo_turbulence.h:93
cs_turb_model_t * model
Definition: cs_cdo_turbulence.h:71
cs_turb_rans_model_t * rans_param
Definition: cs_cdo_turbulence.h:79
bool shared_from_legacy
Definition: cs_cdo_turbulence.h:99
Structure storing the parameters related to the resolution of the turbulence modelling....