#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_array.h"
#include "cs_base.h"
#include "cs_blas.h"
#include "cs_domain.h"
#include "cs_equation_iterative_solve.h"
#include "cs_equation_param.h"
#include "cs_face_viscosity.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_field_operator.h"
#include "cs_field_pointer.h"
#include "cs_gradient.h"
#include "cs_lagr.h"
#include "cs_log_iteration.h"
#include "cs_mass_source_terms.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_parall.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_prototypes.h"
#include "cs_rotation.h"
#include "cs_thermal_model.h"
#include "cs_time_step.h"
#include "cs_turbomachinery.h"
#include "cs_turbulence_bc.h"
#include "cs_turbulence_model.h"
#include "cs_velocity_pressure.h"
#include "cs_turbulence_rij.h"
Functions | |
void | cs_turbulence_rij (cs_lnum_t ncesmp, cs_lnum_t icetsm[], int itypsm[], cs_real_t smacel[]) |
Solve the ![]() | |
void | cs_turbulence_rij_solve_alpha (int f_id, cs_real_t c_durbin_l) |
Solve the equation on alpha in the framework of the Rij-EBRSM model. More... | |
void | cs_turbulence_rij_init_by_ref_quantities (cs_real_t uref, cs_real_t almax) |
Initialize Rij-epsilon variables based on reference quantities. More... | |
void | cs_turbulence_rij_clip (cs_lnum_t n_cells) |
Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version). More... | |
Solve the for incompressible flows or slightly compressible flows for one time step.
Please refer to the model section of the theory guide for more informations, as well as the turrij section.
[in] | ncesmp | number of cells with mass source term |
[in] | icetsm | index of cells with mass source term |
[in] | itypsm | mass source type for the variables |
[in] | smacel | values of the variables associated to the mass source (for ivar=ipr, smacel is the mass flux) ! |
void cs_turbulence_rij_clip | ( | cs_lnum_t | n_cells | ) |
Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version).
[in] | n_cells | number of cells |
Initialize Rij-epsilon variables based on reference quantities.
If uref is not provided (0 or negative), values are set at a large negative value (-cs_math_big_r) to allow for later checks.
[in] | uref | characteristic flow velocity |
[in] | almax | characteristic macroscopic length of the domain |
void cs_turbulence_rij_solve_alpha | ( | int | f_id, |
cs_real_t | c_durbin_l | ||
) |
Solve the equation on alpha in the framework of the Rij-EBRSM model.
Also called for alpha of scalars for EB-DFM.
[in] | f_id | field id of alpha variable |
[in] | c_durbin_l | constant for the Durbin length ! |