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