9.2
general documentation
cs_turbulence_rij.h
Go to the documentation of this file.
1#ifndef CS_TURBULENCE_RIJ_H
2#define CS_TURBULENCE_RIJ_H
3
4/*============================================================================
5 * Rij-epsilon turbulence model.
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2026 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------*/
29
30/*----------------------------------------------------------------------------
31 * Local headers
32 *----------------------------------------------------------------------------*/
33
34#include "base/cs_defs.h"
35
36/*=============================================================================
37 * Public function prototypes
38 *============================================================================*/
39
40/*----------------------------------------------------------------------------*/
51/*-----------------------------------------------------------------------------*/
52
53extern "C" void
54cs_turbulence_rij(int phase_id);
55
56/*----------------------------------------------------------------------------*/
65/*----------------------------------------------------------------------------*/
66
67extern "C" void
69 int phase_id,
70 cs_real_t c_durbin_l);
71
72/*----------------------------------------------------------------------------*/
82/*----------------------------------------------------------------------------*/
83
84extern "C" void
86 cs_real_t almax);
87
88/*----------------------------------------------------------------------------*/
96/*----------------------------------------------------------------------------*/
97
98extern "C" void
99cs_turbulence_rij_clip(int phase_id,
100 cs_lnum_t n_cells);
101
102/*----------------------------------------------------------------------------*/
108/*----------------------------------------------------------------------------*/
109
110extern "C" void
111cs_turbulence_rij_mu_t(int phase_id);
112
113/*----------------------------------------------------------------------------*/
124/*----------------------------------------------------------------------------*/
125
126extern "C" void
128(
129 const cs_mesh_quantities_t *mq,
130 cs_lnum_t n_cells,
131 int phase_id,
132 bool idfm,
133 bool iggafm,
134 bool iebdfm
135);
136
137/*----------------------------------------------------------------------------*/
140/*----------------------------------------------------------------------------*/
141
142extern "C" void
144
145/*----------------------------------------------------------------------------*/
146
147#endif /* CS_TURBULENCE_RIJ_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
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).
Definition: cs_turbulence_rij.cpp:3850
void cs_turbulence_rij_anisotropic_mu_t(const cs_mesh_quantities_t *mq, cs_lnum_t n_cells, int phase_id, bool idfm, bool iggafm, bool iebdfm)
Compute anisotropic turbulent viscosity for RSM models.
Definition: cs_turbulence_rij.cpp:4238
void cs_turbulence_rij_mu_t(int phase_id)
Compute the turbulent viscosity for the Reynolds Stress model.
Definition: cs_turbulence_rij.cpp:4126
void cs_turbulence_rij_init_by_ref_quantities(cs_real_t uref, cs_real_t almax)
Initialize Rij-epsilon variables based on reference quantities.
Definition: cs_turbulence_rij.cpp:3782
void cs_turbulence_rij_compute_rusanov(void)
Compute Rusanov equivalent diffusivity of the model.
Definition: cs_turbulence_rij.cpp:4392
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.
Definition: cs_turbulence_rij.cpp:3529
void cs_turbulence_rij(int phase_id)
Solve the for incompressible flows or slightly compressible flows for one time step.
Definition: cs_turbulence_rij.cpp:2922
Definition: cs_mesh_quantities.h:88