8.1
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 
42 #include "cs_coal.h"
43 
44 /*----------------------------------------------------------------------------*/
45 
47 
48 /*=============================================================================
49  * Macro definitions
50  *============================================================================*/
51 
53 #define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES 25
54 
56 #define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS 20
57 
59 #define CS_COMBUSTION_MAX_TABULATION_POINTS 500
60 
62 #define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS 1
63 
65 #define CS_COMBUSTION_MAX_OXYDANTS 3
66 
67 /*============================================================================
68  * Type definitions
69  *============================================================================*/
70 
72 /*--------------------------------------------*/
73 
74 typedef struct {
75 
76  int iic;
78  double hinfue;
80  double xsoot;
81  double rosoot;
85 
90 
95 
98 
100 
102 /*----------------------------------------*/
103 
104 typedef struct {
105 
116  int idrift;
118  int ieqco2;
124  int ieqnox;
126  int isoot;
128  int io2;
129  int in2;
130  int ico2;
131  int ih2o;
133  double ckabs0;
134  double diftl0;
138  double xco2;
139  double xh2o;
140  double hinoxy;
144 
147 
150 
153 
156 
158 
159 /*============================================================================
160  * Global variables
161  *============================================================================*/
162 
166 
167 /*=============================================================================
168  * Public function prototypes
169  *============================================================================*/
170 
171 /*----------------------------------------------------------------------------*/
175 /*----------------------------------------------------------------------------*/
176 
177 void
179 
180 /*----------------------------------------------------------------------------*/
184 /*----------------------------------------------------------------------------*/
185 
186 void
188 
189 /*----------------------------------------------------------------------------*/
193 /*----------------------------------------------------------------------------*/
194 
195 void
197 
198 /*----------------------------------------------------------------------------*/
199 
201 
202 #endif /* __CS_COMBUSTION_MODEL_H__ */
void cs_combustion_initialize(void)
Initialize combustion model based on active physical models.
void cs_combustion_log_setup(void)
Print the combustion module options to setup.log.
void cs_combustion_finalize(void)
Finalize combustion model based on active physical models.
#define CS_COMBUSTION_MAX_OXYDANTS
Definition: cs_combustion_model.h:65
#define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS
Definition: cs_combustion_model.h:56
cs_combustion_model_t * cs_glob_combustion_model
Definition: cs_combustion_model.c:120
#define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES
Definition: cs_combustion_model.h:53
#define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS
Definition: cs_combustion_model.h:62
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
#define END_C_DECLS
Definition: cs_defs.h:515
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 oxyco2
Definition: ppcpfu.f90:184
real(c_double), dimension(:), pointer, save oxyn2
Definition: ppcpfu.f90:184
real(c_double), dimension(:), pointer, save oxyo2
Definition: ppcpfu.f90:184
real(c_double), dimension(:), pointer, save oxyh2o
Definition: ppcpfu.f90:184
Definition: cs_coal.h:73
Definition: cs_combustion_model.h:74
double hinfue
Definition: cs_combustion_model.h:78
int iic
Definition: cs_combustion_model.h:76
double rosoot
Definition: cs_combustion_model.h:81
double xsoot
Definition: cs_combustion_model.h:80
Definition: cs_combustion_model.h:104
int n_gas_el_comp
Definition: cs_combustion_model.h:109
cs_coal_model_t * coal
Definition: cs_combustion_model.h:107
int ico2
Definition: cs_combustion_model.h:130
int in2
Definition: cs_combustion_model.h:129
int ih2o
Definition: cs_combustion_model.h:131
cs_combustion_gas_model_t * gas
Definition: cs_combustion_model.h:106
int n_reactions
Definition: cs_combustion_model.h:113
double ckabs0
Definition: cs_combustion_model.h:133
int ieqco2
Definition: cs_combustion_model.h:118
int ieqnox
Definition: cs_combustion_model.h:124
int isoot
Definition: cs_combustion_model.h:126
int n_atomic_species
Definition: cs_combustion_model.h:111
int idrift
Definition: cs_combustion_model.h:116
int n_gas_species
Definition: cs_combustion_model.h:110
double hinoxy
Definition: cs_combustion_model.h:140
int io2
Definition: cs_combustion_model.h:128
double xco2
Definition: cs_combustion_model.h:138
double diftl0
Definition: cs_combustion_model.h:134
double xh2o
Definition: cs_combustion_model.h:139