programmer's 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-2015 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 /*----------------------------------------------------------------------------*/
108 /*----------------------------------------------------------------------------*/
109 
110 void
111 cs_turbulence_bc_ke_hyd_diam(double uref2,
112  double dh,
113  double rho,
114  double mu,
115  double *ustar2,
116  double *k,
117  double *eps);
118 
119 /*----------------------------------------------------------------------------*/
137 /*----------------------------------------------------------------------------*/
138 
139 void
141  double t_intensity,
142  double dh,
143  double *k,
144  double *eps);
145 
146 /*----------------------------------------------------------------------------*/
180 /*----------------------------------------------------------------------------*/
181 
182 void
184  double uref2,
185  double dh,
186  double rho,
187  double mu,
188  double *rcodcl);
189 
190 /*----------------------------------------------------------------------------*/
203 /*----------------------------------------------------------------------------*/
204 
205 void
207  double uref2,
208  double t_intensity,
209  double dh,
210  double *rcodcl);
211 
212 /*----------------------------------------------------------------------------*/
213 
215 
216 #endif /* __CS_TURBULENCE_BC_H__ */
Definition: cs_field_pointer.h:69
void cs_turbulence_model_init_bc_ids(void)
Initialize turbulence model boundary condition ids.
Definition: cs_turbulence_bc.c:437
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:599
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
double precision, dimension(nozppm), save dh
hydraulic diameter
Definition: ppincl.f90:820
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:629
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:554
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
#define END_C_DECLS
Definition: cs_defs.h:430
Definition: cs_field_pointer.h:97
Definition: cs_field_pointer.h:103
Definition: cs_field_pointer.h:70
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:522