9.0
general documentation
Loading...
Searching...
No Matches
cs_turbulence_rij.cpp File Reference
#include "base/cs_defs.h"
#include <chrono>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_array.h"
#include "base/cs_base.h"
#include "alge/cs_blas.h"
#include "base/cs_boundary_conditions.h"
#include "base/cs_dispatch.h"
#include "cdo/cs_domain.h"
#include "base/cs_equation_iterative_solve.h"
#include "cdo/cs_equation_param.h"
#include "alge/cs_face_viscosity.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_operator.h"
#include "base/cs_field_pointer.h"
#include "alge/cs_gradient.h"
#include "lagr/cs_lagr.h"
#include "base/cs_log_iteration.h"
#include "base/cs_mass_source_terms.h"
#include "base/cs_math.h"
#include "base/cs_mem.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parall.h"
#include "base/cs_physical_constants.h"
#include "pprt/cs_physical_model.h"
#include "base/cs_porous_model.h"
#include "base/cs_prototypes.h"
#include "base/cs_rotation.h"
#include "base/cs_solid_zone.h"
#include "base/cs_thermal_model.h"
#include "base/cs_time_step.h"
#include "base/cs_timer.h"
#include "base/cs_turbomachinery.h"
#include "turb/cs_turbulence_bc.h"
#include "turb/cs_turbulence_model.h"
#include "base/cs_volume_mass_injection.h"
#include "base/cs_velocity_pressure.h"
#include "base/cs_wall_functions.h"
#include "turb/cs_turbulence_rij.h"
Include dependency graph for cs_turbulence_rij.cpp:

Functions

void cs_turbulence_rij (int phase_id)
 Solve the $ R_{ij} - \epsilon $ for incompressible flows or slightly compressible flows for one time step.
void cs_turbulence_rij_solve_alpha (int f_id, int phase_id, cs_real_t c_durbin_l)
 Solve the equation on alpha in the framework of the Rij-EBRSM model.
void cs_turbulence_rij_init_by_ref_quantities (cs_real_t uref, cs_real_t almax)
 Initialize Rij-epsilon variables based on reference quantities.
void cs_turbulence_rij_clip (int phase_id, cs_lnum_t n_cells)
 Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version).
void cs_turbulence_rij_mu_t (int phase_id)
 Compute the turbulent viscosity for the Reynolds Stress model.
void cs_turbulence_rij_compute_rusanov (void)
 Compute Rusanov equivalent diffusivity of the model. !

Function Documentation

◆ cs_turbulence_rij()

void cs_turbulence_rij ( int phase_id)

Solve the $ R_{ij} - \epsilon $ for incompressible flows or slightly compressible flows for one time step.

Please refer to the $ R_{ij} - \epsilon $ model section of the theory guide for more informations, as well as the turrij section.

Parameters
[in]phase_idturbulent phase id (-1 for single phase flow) !

◆ cs_turbulence_rij_clip()

void cs_turbulence_rij_clip ( int phase_id,
cs_lnum_t n_cells )

Clip the turbulent Reynods stress tensor and the turbulent dissipation (coupled components version).

Parameters
[in]phase_idturbulent phase id (-1 for single phase flow)
[in]n_cellsnumber of cells

◆ cs_turbulence_rij_compute_rusanov()

void cs_turbulence_rij_compute_rusanov ( void )

Compute Rusanov equivalent diffusivity of the model. !

Compute Rusanov equivalent diffusivity of the model.

◆ cs_turbulence_rij_init_by_ref_quantities()

void cs_turbulence_rij_init_by_ref_quantities ( cs_real_t uref,
cs_real_t almax )

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.

Parameters
[in]urefcharacteristic flow velocity
[in]almaxcharacteristic macroscopic length of the domain

◆ cs_turbulence_rij_mu_t()

void cs_turbulence_rij_mu_t ( int phase_id)

Compute the turbulent viscosity for the Reynolds Stress model.

Parameters
[in]phase_idturbulent phase id (-1 for single phase flow)

◆ cs_turbulence_rij_solve_alpha()

void cs_turbulence_rij_solve_alpha ( int f_id,
int phase_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.

Parameters
[in]f_idfield id of alpha variable
[in]phase_idturbulent phase id (-1 for single phase flow)
[in]c_durbin_lconstant for the Durbin length !