8.0
general 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-2023 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 
68 #define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS 1
69 
71 #define CS_COMBUSTION_MAX_OXYDANTS 3
72 
73 /*============================================================================
74  * Type definitions
75  *============================================================================*/
76 
78 /*--------------------------------------------*/
79 
80 typedef struct {
81 
82  int iic;
84  double hinfue;
86  double xsoot;
87  double rosoot;
91 
96 
101 
104 
106 
108 /*---------------------------------------------*/
109 
110 typedef struct {
111 
112  int n_coals; /*< number of coal types */
113  int nclacp; /*< number of coal classes */
114 
116  int n_classes_per_coal[CS_COMBUSTION_MAX_COALS];
117 
120 
123 
126 
129 
132 
135 
138 
141 
143 
145 /*---------------------------------------------*/
146 
147 typedef struct {
148 
149  int nclafu;
150  double hinfue;
151  double h02fol;
152  double cp2fol;
155 
157 /*----------------------------------------*/
158 
159 typedef struct {
160 
172  int isoot;
174  int io2;
175  int in2;
176  int ico2;
177  int ih2o;
179  double ckabs0;
181  double xco2;
182  double xh2o;
183  double hinoxy;
187 
190 
193 
196 
199 
201 
202 /*============================================================================
203  * Global variables
204  *============================================================================*/
205 
209 
210 /*=============================================================================
211  * Public function prototypes
212  *============================================================================*/
213 
214 /*----------------------------------------------------------------------------*/
218 /*----------------------------------------------------------------------------*/
219 
220 void
222 
223 /*----------------------------------------------------------------------------*/
224 
226 
227 #endif /* __CS_COMBUSTION_MODEL_H__ */
void cs_combustion_log_setup(void)
Print the combustion module options to setup.log.
#define CS_COMBUSTION_MAX_OXYDANTS
Definition: cs_combustion_model.h:71
#define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS
Definition: cs_combustion_model.h:55
cs_combustion_model_t * cs_glob_combustion_model
Definition: cs_combustion_model.c:117
#define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES
Definition: cs_combustion_model.h:52
#define CS_COMBUSTION_MAX_COALS
Definition: cs_combustion_model.h:58
#define CS_COMBUSTION_MAX_COAL_CLASSES
Definition: cs_combustion_model.h:64
#define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS
Definition: cs_combustion_model.h:68
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
#define END_C_DECLS
Definition: cs_defs.h:510
real(c_double), dimension(:), pointer, save wmolg
molar mass of a global species
Definition: ppthch.f90:137
real(c_double), dimension(:), pointer, save fs
Mixing rate at the stoichiometry.
Definition: ppthch.f90:147
real(c_double), dimension(:), pointer, save wmole
molar mass of an elementary gas component
Definition: ppthch.f90:134
double precision, dimension(:,:), pointer, save compog
Definition: coincl.f90:56
double precision, dimension(:,:), pointer, save coefeg
Definition: coincl.f90:52
real(c_double), dimension(:), pointer, save xashch
Definition: cpincl.f90:115
real(c_double), dimension(:), pointer, save diam20
Definition: cpincl.f90:196
real(c_double), dimension(:), pointer, save rho20
Definition: cpincl.f90:196
real(c_double), dimension(:), pointer, save rho2mn
Definition: cpincl.f90:196
real(c_double), dimension(:), pointer, save dia2mn
Definition: cpincl.f90:196
real(c_double), dimension(:), pointer, save xmp0
Definition: cpincl.f90:196
integer(c_int), dimension(:), pointer, save ichcor
Definition: cpincl.f90:195
real(c_double), dimension(:), pointer, save oxyco2
Definition: ppcpfu.f90:180
real(c_double), dimension(:), pointer, save oxyn2
Definition: ppcpfu.f90:180
real(c_double), dimension(:), pointer, save oxyo2
Definition: ppcpfu.f90:180
real(c_double), dimension(:), pointer, save oxyh2o
Definition: ppcpfu.f90:180
Definition: cs_combustion_model.h:110
int nclacp
Definition: cs_combustion_model.h:113
int n_coals
Definition: cs_combustion_model.h:112
Definition: cs_combustion_model.h:147
double hinfue
Definition: cs_combustion_model.h:150
int nclafu
Definition: cs_combustion_model.h:149
double cp2fol
Definition: cs_combustion_model.h:152
double h02fol
Definition: cs_combustion_model.h:151
Definition: cs_combustion_model.h:80
double hinfue
Definition: cs_combustion_model.h:84
int iic
Definition: cs_combustion_model.h:82
double rosoot
Definition: cs_combustion_model.h:87
double xsoot
Definition: cs_combustion_model.h:86
Definition: cs_combustion_model.h:159
int n_gas_el_comp
Definition: cs_combustion_model.h:165
int ico2
Definition: cs_combustion_model.h:176
int in2
Definition: cs_combustion_model.h:175
int ih2o
Definition: cs_combustion_model.h:177
cs_combustion_coal_model_t coal
Definition: cs_combustion_model.h:162
int n_reactions
Definition: cs_combustion_model.h:169
cs_combustion_gas_model_t gas
Definition: cs_combustion_model.h:161
double ckabs0
Definition: cs_combustion_model.h:179
int isoot
Definition: cs_combustion_model.h:172
cs_combustion_fuel_model_t fuel
Definition: cs_combustion_model.h:163
int n_atomic_species
Definition: cs_combustion_model.h:167
int n_gas_species
Definition: cs_combustion_model.h:166
double hinoxy
Definition: cs_combustion_model.h:183
int io2
Definition: cs_combustion_model.h:174
double xco2
Definition: cs_combustion_model.h:181
double xh2o
Definition: cs_combustion_model.h:182