7.1
general documentation
cs_turbulence_bc.h
Go to the documentation of this file.
1 #ifndef __CS_TURBULENCE_BC_H__
2 #define __CS_TURBULENCE_BC_H__
3 
4 /*============================================================================
5  * Base turbulence boundary conditions.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2021 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 "cs_defs.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*=============================================================================
41  * Macro definitions
42  *============================================================================*/
43 
44 /*============================================================================
45  * Type definitions
46  *============================================================================*/
47 
48 /*============================================================================
49  * Global variables
50  *============================================================================*/
51 
52 /*=============================================================================
53  * Public function prototypes
54  *============================================================================*/
55 
56 /*----------------------------------------------------------------------------*/
60 /*----------------------------------------------------------------------------*/
61 
62 void
64 
65 /*----------------------------------------------------------------------------*/
69 /*----------------------------------------------------------------------------*/
70 
71 void
73 
74 /*----------------------------------------------------------------------------*/
117 /*----------------------------------------------------------------------------*/
118 
119 void
120 cs_turbulence_bc_ke_hyd_diam(double uref2,
121  double dh,
122  double rho,
123  double mu,
124  double *ustar2,
125  double *k,
126  double *eps);
127 
128 /*----------------------------------------------------------------------------*/
146 /*----------------------------------------------------------------------------*/
147 
148 void
150  double t_intensity,
151  double dh,
152  double *k,
153  double *eps);
154 
155 /*----------------------------------------------------------------------------*/
189 /*----------------------------------------------------------------------------*/
190 
191 void
193  double uref2,
194  double dh,
195  double rho,
196  double mu,
197  double *rcodcl);
198 
199 /*----------------------------------------------------------------------------*/
212 /*----------------------------------------------------------------------------*/
213 
214 void
216  double uref2,
217  double t_intensity,
218  double dh,
219  double *rcodcl);
220 
221 /*----------------------------------------------------------------------------*/
231 /*----------------------------------------------------------------------------*/
232 
233 void
235  double k,
236  double eps,
237  double *rcodcl);
238 
239 /*----------------------------------------------------------------------------*/
251 /*----------------------------------------------------------------------------*/
252 
253 void
255  double k,
256  double eps,
257  double vel_dir[],
258  double shear_dir[],
259  double *rcodcl);
260 
261 /*----------------------------------------------------------------------------*/
317 /*----------------------------------------------------------------------------*/
318 
319 void
321  cs_real_t p_lg[3][3],
322  cs_real_t alpha[6][6]);
323 
324 /*----------------------------------------------------------------------------*/
325 
327 
328 #endif /* __CS_TURBULENCE_BC_H__ */
Definition: cs_field_pointer.h:70
void cs_turbulence_model_init_bc_ids(void)
Initialize turbulence model boundary condition ids.
Definition: cs_turbulence_bc.c:688
void cs_turbulence_bc_inlet_hyd_diam(cs_lnum_t face_id, double uref2, double dh, double rho, double mu, double *rcodcl)
Set inlet boundary condition values for turbulence variables based on a diameter and the reference v...
Definition: cs_turbulence_bc.c:913
double precision, dimension(ncharm), save alpha
Definition: cpincl.f90:99
void cs_turbulence_bc_rij_transform(int is_sym, cs_real_t p_lg[3][3], cs_real_t alpha[6][6])
Compute matrix used in the computation of the Reynolds stress tensor boundary conditions.
Definition: cs_turbulence_bc.c:1064
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
void cs_turbulence_bc_inlet_k_eps(cs_lnum_t face_id, double k, double eps, double *rcodcl)
Set inlet boundary condition values for turbulence variables based on given k and epsilon values...
Definition: cs_turbulence_bc.c:969
double precision, dimension(nozppm), save dh
hydraulic diameter
Definition: ppincl.f90:756
void cs_turbulence_bc_set_uninit_inlet_k_eps(cs_lnum_t face_id, double k, double eps, double vel_dir[], double shear_dir[], double *rcodcl)
Set inlet boundary condition values for turbulence variables based on given k and epsilon values only...
Definition: cs_turbulence_bc.c:993
void cs_turbulence_bc_inlet_turb_intensity(cs_lnum_t face_id, double uref2, double t_intensity, double dh, double *rcodcl)
Set inlet boundary condition values for turbulence variables based on a diameter , a turbulent intensity and the reference velocity for a circular duct flow with smooth wall.
Definition: cs_turbulence_bc.c:943
void cs_turbulence_bc_ke_turb_intensity(double uref2, double t_intensity, double dh, double *k, double *eps)
Calculation of and from a diameter , a turbulent intensity and the reference velocity for a circu...
Definition: cs_turbulence_bc.c:868
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
void cs_turbulence_model_free_bc_ids(void)
Free memory allocations for turbulence boundary conditions ids.
Definition: cs_turbulence_bc.c:782
#define END_C_DECLS
Definition: cs_defs.h:511
Definition: cs_field_pointer.h:97
Definition: cs_field_pointer.h:103
Definition: cs_field_pointer.h:71
void cs_turbulence_bc_ke_hyd_diam(double uref2, double dh, double rho, double mu, double *ustar2, double *k, double *eps)
Calculation of , and from a diameter and the reference velocity for a circular duct flow with smo...
Definition: cs_turbulence_bc.c:836