9.0
general documentation
Loading...
Searching...
No Matches
cs_turbulence_kw.cpp File Reference
#include "base/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 "base/cs_array.h"
#include "alge/cs_balance.h"
#include "alge/cs_blas.h"
#include "base/cs_halo.h"
#include "base/cs_base.h"
#include "base/cs_dispatch.h"
#include "cdo/cs_equation.h"
#include "base/cs_equation_iterative_solve.h"
#include "alge/cs_face_viscosity.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_pointer.h"
#include "base/cs_field_operator.h"
#include "alge/cs_gradient.h"
#include "lagr/cs_lagr.h"
#include "base/cs_log.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_physical_constants.h"
#include "base/cs_porous_model.h"
#include "base/cs_prototypes.h"
#include "base/cs_rotation.h"
#include "base/cs_thermal_model.h"
#include "base/cs_time_step.h"
#include "turb/cs_turbulence_model.h"
#include "turb/cs_turbulence_rotation.h"
#include "base/cs_volume_mass_injection.h"
#include "base/cs_velocity_pressure.h"
#include "base/cs_wall_functions.h"
#include "turb/cs_turbulence_kw.h"
Include dependency graph for cs_turbulence_kw.cpp:

Functions

void cs_turbulence_kw (int phase_id)
 Solve the k-omega equations.
void cs_turbulence_kw_mu_t (int phase_id)
 Calculation of turbulent viscosity for the $ k - \omega $ SST model.

Detailed Description

Solve the $ k - \omega $ SST for incompressible flows or slightly compressible flows for one time step.

Function Documentation

◆ cs_turbulence_kw()

void cs_turbulence_kw ( int phase_id)

Solve the k-omega equations.

Solve the $ k - \omega $ SST for incompressible flows or slightly compressible flows for one time step.

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

◆ cs_turbulence_kw_mu_t()

void cs_turbulence_kw_mu_t ( int phase_id)

Calculation of turbulent viscosity for the $ k - \omega $ SST model.

\[ \mu_T = \rho A1 \dfrac{k}{\max(A1 \omega; \; S f_2)} \]

with

\[ S = \sqrt{  2 S_{ij} S_{ij}} \]

\[ S_{ij} = \dfrac{\der{u_i}{x_j} + \der{u_j}{x_i}}{2}\]

and $ f_2 = \tanh(arg2^2) $

\[ arg2^2 = \max(2 \dfrac{\sqrt{k}}{C_\mu \omega y}; \;
                    500 \dfrac{\nu}{\omega y^2}) \]

where $ y $ is the distance to the wall.

$ \divs{\vect{u}} $ is calculated at the same time than $ S $ for use in cs_turbulence_kw.

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

!