1#ifndef CS_CDO_TURBULENCE_H
2#define CS_CDO_TURBULENCE_H
47#define CS_NAVSTO_TOTAL_VISCOSITY "total_viscosity"
48#define CS_NAVSTO_LAM_VISCOSITY "laminar_viscosity"
49#define CS_NAVSTO_TURB_VISCOSITY "turbulent_viscosity"
Field descriptor.
Definition: cs_field.h:275
time step descriptor
Definition: cs_time_step.h:60
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:631
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:749
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:511
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:899
void *() cs_turb_free_context_t(void *turb_context)
Free the context structure related to a given turbulence modelling.
Definition: cs_cdo_turbulence.h:138
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:801
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:1196
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, const double uft, cs_real_t *ht, cs_real_t *f_w)
Function used to define the exchange coefficients for tangential and normal components.
Definition: cs_cdo_turbulence.cpp:1139
void cs_turbulence_free(cs_turbulence_t **p_turb_struct)
Free the structure managing the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:483
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:155
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:998
cs_turbulence_t * cs_turbulence_create(cs_turbulence_param_t *tbp)
Allocate the structure managing the turbulence modelling.
Definition: cs_cdo_turbulence.cpp:432
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:125
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:768
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:174
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:398
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:1048
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:925
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
@ k
Definition: cs_field_pointer.h:68
char * boundary_stress
Definition: function_defaults.h:186
Definition: cs_cdo_turbulence.h:186
void check_convergence(const cs_cdo_quantities_t *quant, const cs_time_step_t *ts, const cs_param_psteady_t &psp, cs_cdo_navsto_psteady_cvg_t &ps_cvg) const
Check the convergence of the pseudo-steady algorithm when the unsteady Navier-Stokes system with a CD...
Definition: cs_cdo_turbulence.cpp:1307
cs_property_t * mu_l
Definition: cs_cdo_turbulence.h:227
cs_turb_update_t * update
Definition: cs_cdo_turbulence.h:306
void * context
Definition: cs_cdo_turbulence.h:274
cs_turb_compute_t * compute_steady
Definition: cs_cdo_turbulence.h:299
cs_turbulence_param_t * param
Definition: cs_cdo_turbulence.h:198
cs_turb_free_context_t * free_context
Definition: cs_cdo_turbulence.h:286
cs_equation_t * mom_eq
Definition: cs_cdo_turbulence.h:203
cs_property_t * mu_t
Definition: cs_cdo_turbulence.h:233
cs_turb_init_context_t * init_context
Definition: cs_cdo_turbulence.h:280
cs_turb_compute_t * compute
Definition: cs_cdo_turbulence.h:292
cs_field_t * mu_t_field
Definition: cs_cdo_turbulence.h:250
cs_property_t * rho
Definition: cs_cdo_turbulence.h:215
cs_field_t * rij
Definition: cs_cdo_turbulence.h:256
cs_real_t * mu_tot_array
Definition: cs_cdo_turbulence.h:238
void add_boundary_stress(const cs_mesh_t *m, cs_field_t *boundary_stress) const
Compute and add the turbulent part of the boundray stress.
Definition: cs_cdo_turbulence.cpp:1223
cs_property_t * mu_tot
Definition: cs_cdo_turbulence.h:221
Definition: cs_cdo_connect.h:57
Definition: cs_param_types.h:660
Definition: cs_cdo_quantities.h:142
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources.
Definition: cs_equation_param.h:190
Main structure to handle the discretization and the resolution of an equation.
Set of parameters to check the convergence of the pseudo-steady algo.
Definition: cs_param_types.h:631
Structure associated to the definition of a property relying on the cs_xdef_t structure.
LES turbulence model descriptor.
Definition: cs_turbulence_model.h:287
Turbulence model general options descriptor.
Definition: cs_turbulence_model.h:126
RANS turbulence model descriptor.
Definition: cs_turbulence_model.h:210
Definition: cs_turbulence_model.h:199
Structure storing the parameters related to the resolution of the turbulence modelling....
Definition: cs_cdo_turbulence.h:62
cs_turb_les_model_t * les_param
Definition: cs_cdo_turbulence.h:85
cs_turb_ref_values_t * reference_values
Definition: cs_cdo_turbulence.h:91
cs_turb_model_t * model
Definition: cs_cdo_turbulence.h:69
cs_turb_rans_model_t * rans_param
Definition: cs_cdo_turbulence.h:77
bool shared_from_legacy
Definition: cs_cdo_turbulence.h:97
Structure storing the parameters related to the resolution of the turbulence modelling....