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