#include "cs_defs.h"#include <assert.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <math.h>#include <float.h>#include "bft_mem.h"#include "cs_array.h"#include "cs_balance.h"#include "cs_blas.h"#include "cs_halo.h"#include "cs_base.h"#include "cs_equation.h"#include "cs_equation_iterative_solve.h"#include "cs_face_viscosity.h"#include "cs_field.h"#include "cs_field_default.h"#include "cs_field_pointer.h"#include "cs_field_operator.h"#include "cs_gradient.h"#include "cs_lagr.h"#include "cs_log.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_physical_constants.h"#include "cs_porous_model.h"#include "cs_prototypes.h"#include "cs_rotation.h"#include "cs_thermal_model.h"#include "cs_time_step.h"#include "cs_turbulence_model.h"#include "cs_turbulence_rotation.h"#include "cs_velocity_pressure.h"#include "cs_wall_functions.h"#include "cs_turbulence_kw.h" Include dependency graph for cs_turbulence_kw.c:
 Include dependency graph for cs_turbulence_kw.c:| Functions | |
| void | cs_turbulence_kw (int phase_id, cs_lnum_t ncesmp, cs_lnum_t icetsm[], int itypsm[], const cs_real_t dt[], cs_real_t smacel[]) | 
| Solve the k-omega equations.  More... | |
| void | cs_turbulence_kw_mu_t (int phase_id) | 
| Calculation of turbulent viscosity for the  SST model.  More... | |
Solve the  SST for incompressible flows or slightly compressible flows for one time step.
 SST for incompressible flows or slightly compressible flows for one time step. 
| void cs_turbulence_kw | ( | int | phase_id, | 
| cs_lnum_t | ncesmp, | ||
| cs_lnum_t | icetsm[], | ||
| int | itypsm[], | ||
| const cs_real_t | dt[], | ||
| cs_real_t | smacel[] | ||
| ) | 
Solve the k-omega equations.
Solve the  SST for incompressible flows or slightly compressible flows for one time step.
 SST for incompressible flows or slightly compressible flows for one time step.
| [in] | phase_id | turbulent phase id (-1 for single phase flow) | 
| [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 size: [nvar][ncesmp] | 
| [in] | dt | time step (per cell) | 
| [in] | smacel | values of the variables associated to the mass source (for the pressure variable, smacel is the mass flux) size: [nvar][ncesmp] | 
| void cs_turbulence_kw_mu_t | ( | int | phase_id | ) | 
Calculation of turbulent viscosity for the  SST model.
 SST model. 
![\[ \mu_T = \rho A1 \dfrac{k}{\max(A1 \omega; \; S f_2)} \]](form_533.png) 
with
![\[ S = \sqrt{ 2 S_{ij} S_{ij}} \]](form_534.png) 
![\[ S_{ij} = \dfrac{\der{u_i}{x_j} + \der{u_j}{x_i}}{2}\]](form_511.png) 
and  
 
![\[ arg2^2 = \max(2 \dfrac{\sqrt{k}}{C_\mu \omega y}; \; 500 \dfrac{\nu}{\omega y^2}) \]](form_536.png) 
 where  is the distance to the wall.
 is the distance to the wall.
 is calculated at the same time than
 is calculated at the same time than  for use in cs_turbulence_kw.
 for use in cs_turbulence_kw.
| [in] | phase_id | turbulent phase id (-1 for single phase flow) | 
!