My Project
programmer's documentation
Loading...
Searching...
No Matches
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
62void
64
65/*----------------------------------------------------------------------------*/
69/*----------------------------------------------------------------------------*/
70
71void
73
74/*----------------------------------------------------------------------------*/
117/*----------------------------------------------------------------------------*/
118
119void
121 double dh,
122 double rho,
123 double mu,
124 double *ustar2,
125 double *k,
126 double *eps);
127
128/*----------------------------------------------------------------------------*/
146/*----------------------------------------------------------------------------*/
147
148void
150 double t_intensity,
151 double dh,
152 double *k,
153 double *eps);
154
155/*----------------------------------------------------------------------------*/
189/*----------------------------------------------------------------------------*/
190
191void
193 double uref2,
194 double dh,
195 double rho,
196 double mu,
197 double *rcodcl);
198
199/*----------------------------------------------------------------------------*/
212/*----------------------------------------------------------------------------*/
213
214void
216 double uref2,
217 double t_intensity,
218 double dh,
219 double *rcodcl);
220
221/*----------------------------------------------------------------------------*/
231/*----------------------------------------------------------------------------*/
232
233void
235 double k,
236 double eps,
237 double *rcodcl);
238
239/*----------------------------------------------------------------------------*/
249/*----------------------------------------------------------------------------*/
250
251void
253 double k,
254 double eps,
255 double *rcodcl);
256
257/*----------------------------------------------------------------------------*/
313/*----------------------------------------------------------------------------*/
314
315void
317 cs_real_t p_lg[3][3],
318 cs_real_t alpha[][6]);
319
320/*----------------------------------------------------------------------------*/
321
323
324#endif /* __CS_TURBULENCE_BC_H__ */
#define BEGIN_C_DECLS
Definition cs_defs.h:467
double cs_real_t
Floating-point value.
Definition cs_defs.h:302
#define END_C_DECLS
Definition cs_defs.h:468
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:298
@ k
Definition cs_field_pointer.h:70
@ mu
Definition cs_field_pointer.h:109
@ eps
Definition cs_field_pointer.h:71
@ rho
Definition cs_field_pointer.h:103
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
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.
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
void cs_turbulence_model_init_bc_ids(void)
Initialize turbulence model boundary condition ids.
Definition cs_turbulence_bc.c:653
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
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
void cs_turbulence_model_free_bc_ids(void)
Free memory allocations for turbulence boundary conditions ids.
Definition cs_turbulence_bc.c:759
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
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