My Project
programmer's documentation
cs_combustion_model.h
Go to the documentation of this file.
1 #ifndef __CS_COMBUSTION_MODEL_H__
2 #define __CS_COMBUSTION_MODEL_H__
3 
4 /*============================================================================
5  * Combustion model parameters.
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  * Standard C library headers
32  *----------------------------------------------------------------------------*/
33 
34 #include <stdarg.h>
35 
36 /*----------------------------------------------------------------------------
37  * Local headers
38  *----------------------------------------------------------------------------*/
39 
40 #include "cs_defs.h"
41 #include "cs_field.h"
42 
43 /*----------------------------------------------------------------------------*/
44 
46 
47 /*=============================================================================
48  * Macro definitions
49  *============================================================================*/
50 
52 #define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES 25
53 
55 #define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS 20
56 
58 #define CS_COMBUSTION_MAX_COALS 5
59 
61 #define CS_COMBUSTION_MAX_CLASSES_PER_COAL 20
62 
64 #define CS_COMBUSTION_MAX_COAL_CLASSES CS_COMBUSTION_MAX_COALS \
65  * CS_COMBUSTION_MAX_CLASSES_PER_COAL
66 
67 /*============================================================================
68  * Type definitions
69  *============================================================================*/
70 
72 /*--------------------------------------------*/
73 
74 typedef struct {
75 
76  int iic;
78  double xsoot;
79  double rosoot;
83 
88 
93 
95 
97 /*---------------------------------------------*/
98 
99 typedef struct {
100 
101  int nclacp; /*< number of coal classes */
102 
105 
108 
111 
114 
117 
120 
123 
126 
128 
130 /*---------------------------------------------*/
131 
132 typedef struct {
133 
134  int nclafu; /*< number of fuel classes */
135 
137 
139 /*----------------------------------------*/
140 
141 typedef struct {
142 
147  int isoot;
149  int ico2;
150  int ih2o;
152  double ckabs0;
154  double xco2;
155  double xh2o;
159 
161 
162 /*============================================================================
163  * Global variables
164  *============================================================================*/
165 
169 
170 /*=============================================================================
171  * Public function prototypes
172  *============================================================================*/
173 
174 /*----------------------------------------------------------------------------*/
175 
177 
178 #endif /* __CS_COMBUSTION_MODEL_H__ */
cs_defs.h
cs_combustion_model_t
Definition: cs_combustion_model.h:141
coincl::compog
double precision, dimension(:,:), pointer, save compog
Definition: coincl.f90:55
diam20
void const int const int int int int const int int double * diam20
Definition: cs_gui_specific_physics.h:100
cs_combustion_model_t::ckabs0
double ckabs0
Definition: cs_combustion_model.h:152
cs_combustion_fuel_model_t::nclafu
int nclafu
Definition: cs_combustion_model.h:134
cpincl::rho2mn
real(c_double), dimension(:), pointer, save rho2mn
Definition: cpincl.f90:196
cs_combustion_model_t::isoot
int isoot
Definition: cs_combustion_model.h:147
cs_combustion_gas_model_t::xsoot
double xsoot
Definition: cs_combustion_model.h:78
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cpincl::rho20
real(c_double), dimension(:), pointer, save rho20
Definition: cpincl.f90:196
cs_combustion_coal_model_t::nclacp
int nclacp
Definition: cs_combustion_model.h:101
CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS
#define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS
Definition: cs_combustion_model.h:55
xashch
void const int const int int int int const int int double double double double double double int double double double double double double double double double double * xashch
Definition: cs_gui_specific_physics.h:100
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES
#define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES
Definition: cs_combustion_model.h:52
cs_combustion_model_t::fuel
cs_combustion_fuel_model_t fuel
Definition: cs_combustion_model.h:145
ppthch::wmole
real(c_double), dimension(:), pointer, save wmole
molar mass of an elementary gas component
Definition: ppthch.f90:133
cs_combustion_model_t::gas
cs_combustion_gas_model_t gas
Definition: cs_combustion_model.h:143
cs_combustion_gas_model_t::rosoot
double rosoot
Definition: cs_combustion_model.h:79
cs_combustion_gas_model_t::iic
int iic
Definition: cs_combustion_model.h:76
cs_combustion_model_t::xco2
double xco2
Definition: cs_combustion_model.h:154
cpincl::xmp0
real(c_double), dimension(:), pointer, save xmp0
Definition: cpincl.f90:196
cs_glob_combustion_model
cs_combustion_model_t * cs_glob_combustion_model
Definition: cs_combustion_model.c:104
cs_field.h
cs_combustion_model_t::ih2o
int ih2o
Definition: cs_combustion_model.h:150
cs_combustion_model_t::ico2
int ico2
Definition: cs_combustion_model.h:149
cs_combustion_model_t::coal
cs_combustion_coal_model_t coal
Definition: cs_combustion_model.h:144
cs_combustion_coal_model_t
Definition: cs_combustion_model.h:99
CS_COMBUSTION_MAX_COAL_CLASSES
#define CS_COMBUSTION_MAX_COAL_CLASSES
Definition: cs_combustion_model.h:64
cpincl::dia2mn
real(c_double), dimension(:), pointer, save dia2mn
Definition: cpincl.f90:196
ppthch::wmolg
real(c_double), dimension(:), pointer, save wmolg
molar mass of a global species
Definition: ppthch.f90:136
ichcor
void const int const int int int int const int int * ichcor
Definition: cs_gui_specific_physics.h:100
cs_combustion_gas_model_t
Definition: cs_combustion_model.h:74
cs_combustion_model_t::xh2o
double xh2o
Definition: cs_combustion_model.h:155
cs_combustion_fuel_model_t
Definition: cs_combustion_model.h:132
CS_COMBUSTION_MAX_COALS
#define CS_COMBUSTION_MAX_COALS
Definition: cs_combustion_model.h:58
coincl::coefeg
double precision, dimension(:,:), pointer, save coefeg
Definition: coincl.f90:51