My Project
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-2019 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 /*----------------------------------------------------------------------------*/
249 /*----------------------------------------------------------------------------*/
250 
251 void
253  double k,
254  double eps,
255  double *rcodcl);
256 
257 /*----------------------------------------------------------------------------*/
313 /*----------------------------------------------------------------------------*/
314 
315 void
317  cs_real_t p_lg[3][3],
318  cs_real_t alpha[][6]);
319 
320 /*----------------------------------------------------------------------------*/
321 
323 
324 #endif /* __CS_TURBULENCE_BC_H__ */
cs_defs.h
rho
Definition: cs_field_pointer.h:103
cs_turbulence_bc_inlet_turb_intensity
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 ,...
Definition: cs_turbulence_bc.c:920
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
cs_turbulence_bc_rij_transform
void cs_turbulence_bc_rij_transform(int is_sym, cs_real_t p_lg[3][3], cs_real_t alpha[][6])
Compute matrix used in the computation of the Reynolds stress tensor boundary conditions.
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
dh
void const int const int const int const int int int int int int int int int int int int int int int double double double double * dh
Definition: cs_gui_boundary_conditions.h:64
cs_turbulence_model_init_bc_ids
void cs_turbulence_model_init_bc_ids(void)
Initialize turbulence model boundary condition ids.
Definition: cs_turbulence_bc.c:653
eps
Definition: cs_field_pointer.h:71
cs_turbulence_model_free_bc_ids
void cs_turbulence_model_free_bc_ids(void)
Free memory allocations for turbulence boundary conditions ids.
Definition: cs_turbulence_bc.c:759
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_turbulence_bc_ke_turb_intensity
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:845
cs_turbulence_bc_inlet_k_eps
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:946
cs_turbulence_bc_set_uninit_inlet_k_eps
void cs_turbulence_bc_set_uninit_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 only...
Definition: cs_turbulence_bc.c:967
cpincl::alpha
double precision, dimension(ncharm), save alpha
Definition: cpincl.f90:99
mu
Definition: cs_field_pointer.h:109
cs_turbulence_bc_inlet_hyd_diam
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:890
rcodcl
void const int const int const int const int int int int int int int int int int int int int int int double double double double double double double double double double int double * rcodcl
Definition: cs_gui_boundary_conditions.h:64
cs_turbulence_bc_ke_hyd_diam
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:813
k
Definition: cs_field_pointer.h:70