9.2
general documentation
cs_boundary_conditions_set_coeffs_turb.h
Go to the documentation of this file.
1#ifndef CS_BOUNDARY_CONDITIONS_SET_COEFFS_TURB__
2#define CS_BOUNDARY_CONDITIONS_SET_COEFFS_TURB__
3
4/*============================================================================
5 * Wall boundary condition management.
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 * Standard C library headers
32 *----------------------------------------------------------------------------*/
33
34/*----------------------------------------------------------------------------
35 * Local headers
36 *----------------------------------------------------------------------------*/
37
38#include "base/cs_defs.h"
39
40/*=============================================================================
41 * Public function prototypes
42 *============================================================================*/
43
44/*----------------------------------------------------------------------------*/
45/*
46 * \brief Boundary conditions for smooth walls (icodcl = 5).
47 *
48 * The wall functions may change the value of the diffusive flux.
49
50 * The values at a boundary face \f$ \fib \f$ stored in the face center
51 * \f$ \centf \f$ of the variable \f$ P \f$ and its diffusive flux \f$ Q \f$
52 * are written as:
53 * \f[
54 * P_{\face} = A_P^g + B_P^g P_{\centi}
55 * \f]
56 * and
57 * \f[
58 * Q_{\face} = A_P^f + B_P^f P_{\centi}
59 * \f]
60 * where \f$ P_\centi \f$ is the value of the variable \f$ P \f$ at the
61 * neighboring cell.
62
63 * Warning:
64
65 * - For a vector field such as the velocity \f$ \vect{u} \f$ the boundary
66 * conditions may read:
67 * \f[
68 * \vect{u}_{\face} = \vect{A}_u^g + \tens{B}_u^g \vect{u}_{\centi}
69 * \f]
70 * and
71 * \f[
72 * \vect{Q}_{\face} = \vect{A}_u^f + \tens{B}_u^f \vect{u}_{\centi}
73 * \f]
74 * where \f$ \tens{B}_u^g \f$ and \f$ \tens{B}_u^f \f$ are 3x3 tensor matrix
75 * which coupled velocity components next to a boundary.
76
77 * Please refer to the
78 * <a href="../../theory.pdf#wallboundary"><b>wall boundary conditions</b></a>
79 * section of the theory guide for more informations, as well as the
80 * <a href="../../theory.pdf#clptur"><b>clptur</b></a> section.
81
82 * \param[in] isvhb id of field whose exchange coeffient should be
83 * saved at the walls, or -1.
84 * \param[in] velipb value of the velocity at \f$ \centip \f$
85 * of boundary cells
86 * \param[in] rijipb value of \f$ R_{ij} \f$ at \f$ \centip \f$
87 * of boundary cells
88 * \param[out] visvdr dynamic viscosity after V. Driest damping in
89 * boundary cells
90 * \param[out] hbord exchange coefficient at boundary
91 * \param[in] theipb value of thermal scalar at \f$ \centip \f$
92 * of boundary cells
93 */
94/*----------------------------------------------------------------------------*/
95
96void
98 cs_real_t velipb[][3],
99 cs_real_t rijipb[][6],
100 cs_real_t visvdr[],
101 cs_real_t hbord[],
102 cs_real_t theipb[]);
103
104/*----------------------------------------------------------------------------*/
105
106#endif /* CS_BOUNDARY_CONDITIONS_SET_COEFFS_TURB__ */
void cs_boundary_conditions_set_coeffs_turb(int isvhb, cs_real_t velipb[][3], cs_real_t rijipb[][6], cs_real_t visvdr[], cs_real_t hbord[], cs_real_t theipb[])
Boundary conditions for smooth walls (icodcl = CS_BC_WALL_MODELLED).
Definition: cs_boundary_conditions_set_coeffs_turb.cpp:1310
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332