programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cs_physical_constants.h
Go to the documentation of this file.
1 #ifndef __CS_PHYSICAL_CONSTANTS_H__
2 #define __CS_PHYSICAL_CONSTANTS_H__
3 
4 /*============================================================================
5  * Base physical constants data.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2014 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 /* physical constants descriptor */
49 /*-------------------------------*/
50 
51 typedef struct {
52 
53  double gx, gy, gz; /* gravity components */
54  int icorio; /* Coriolis source terms indicator */
55  double omegax, omegay, omegaz; /* rotation vector components */
56 
58 
59 /* fluid properties descriptor */
60 /*-----------------------------*/
61 
62 typedef struct {
63 
64  int ixyzp0; /* indicator for filling of reference point for
65  total pressure */
66  double ro0; /* reference density */
67  double viscl0; /* reference molecular dynamic viscosity */
68  double p0; /* reference pressure for the total pressure */
69  double pred0; /* reference value for the reduced pressure */
70  double xyzp0[3]; /* reference point coordinates for the total
71  pressure */
72  double t0; /* reference temperature */
73  double cp0; /* reference specific heat */
74  double xmasmr; /* molar mass of the perfect gas in kg/mol
75  (if ieos=1) */
76  double pther; /* uniform thermodynamic pressure for the low-Mach
77  algorithm */
78  double pthera; /* thermodynamic pressure for the previous time
79  step */
80  double pthermax; /* thermodynamic maximum pressure for user
81  clipping, used to model a venting effect */
82 
84 
85 /*============================================================================
86  * Static global variables
87  *============================================================================*/
88 
89 /* Pointer to main physical constants structure */
90 
92 
93 /* Pointer to main fluid properties structure */
94 
96 
97 /*=============================================================================
98  * Public function prototypes
99  *============================================================================*/
100 
101 /*----------------------------------------------------------------------------*/
102 
104 
105 #endif /* __CS_PHYSICAL_CONSTANTS_H__ */
Fluid properties descriptor.
Definition: cs_physical_constants.h:62
int ixyzp0
Definition: cs_physical_constants.h:64
double cp0
Definition: cs_physical_constants.h:73
#define BEGIN_C_DECLS
Definition: cs_defs.h:405
double xmasmr
Definition: cs_physical_constants.h:74
const cs_physical_constants_t * cs_glob_physical_constants
double t0
Definition: cs_physical_constants.h:72
double pthermax
Definition: cs_physical_constants.h:80
const cs_fluid_properties_t * cs_glob_fluid_properties
int icorio
Definition: cs_physical_constants.h:54
double pther
Definition: cs_physical_constants.h:76
double viscl0
Definition: cs_physical_constants.h:67
#define END_C_DECLS
Definition: cs_defs.h:406
double pthera
Definition: cs_physical_constants.h:78
double p0
Definition: cs_physical_constants.h:68
Physical constants descriptor.
Definition: cs_physical_constants.h:51
double omegaz
Definition: cs_physical_constants.h:55
double gz
Definition: cs_physical_constants.h:53
double pred0
Definition: cs_physical_constants.h:69
double ro0
Definition: cs_physical_constants.h:66