1#ifndef __CS_COMBUSTION_GAS_H__
2#define __CS_COMBUSTION_GAS_H__
51#define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES 25
54#define CS_COMBUSTION_GAS_MAX_ATOMIC_SPECIES 5
57#define CS_COMBUSTION_GAS_MAX_OXYDANTS 3
60#define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS 20
63#define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS 1
66#define CS_COMBUSTION_GAS_MAX_TABULATION_POINTS 50
69#define CS_COMBUSTION_GAS_MAX_DIRAC 5
319 double coeff_therm[7][2][5];
#define CS_COMBUSTION_GAS_MAX_OXYDANTS
Definition: cs_combustion_gas.h:57
cs_combustion_gas_model_t * cs_combustion_gas_set_model(cs_combustion_gas_model_type_t type)
Activate gas combustion model.
Definition: cs_combustion_gas.cpp:383
void cs_combustion_gas_add_variable_fields(void)
Add variable fields for gas combustion models.
Definition: cs_combustion_gas.cpp:815
void cs_combustion_gas_setup(void)
Specific setup operations for gas combustion models.
Definition: cs_combustion_gas.cpp:600
cs_combustion_gas_model_t * cs_glob_combustion_gas_model
Definition: cs_combustion_gas.cpp:178
void cs_combustion_gas_log_setup(void)
Print the gas combustion module options to setup.log.
Definition: cs_combustion_gas.cpp:701
#define CS_COMBUSTION_GAS_MAX_ATOMIC_SPECIES
Definition: cs_combustion_gas.h:54
#define CS_COMBUSTION_GAS_MAX_DIRAC
Definition: cs_combustion_gas.h:69
void cs_combustion_gas_yg2xye(const cs_real_t yg[], cs_real_t ye[], cs_real_t xe[])
Compute molar and mass fractions of elementary species Ye, Xe (fuel, O2, CO2, H2O,...
Definition: cs_combustion_gas.cpp:1212
void cs_combustion_gas_add_property_fields(void)
Add property fields for gas combustion models.
Definition: cs_combustion_gas.cpp:1056
void cs_combustion_gas_set_thermochemical_data_file(const char *file_name)
Set the thermochemical data file name.
Definition: cs_combustion_gas.cpp:577
cs_combustion_gas_model_type_t
Definition: cs_combustion_gas.h:78
@ CS_COMBUSTION_BSH_PERMEATIC
Definition: cs_combustion_gas.h:92
@ CS_COMBUSTION_3PT_ADIABATIC
Definition: cs_combustion_gas.h:83
@ CS_COMBUSTION_EBU_CONSTANT_PERMEATIC
Definition: cs_combustion_gas.h:112
@ CS_COMBUSTION_EBU_CONSTANT_ADIABATIC
Definition: cs_combustion_gas.h:108
@ CS_COMBUSTION_SLFM_STEADY_PERMEATIC
Definition: cs_combustion_gas.h:98
@ CS_COMBUSTION_LW_2PEAK_PERMEATIC
Definition: cs_combustion_gas.h:128
@ CS_COMBUSTION_SLFM_PROGRESS_PERMEATIC
Definition: cs_combustion_gas.h:104
@ CS_COMBUSTION_LW_4PEAK_PERMEATIC
Definition: cs_combustion_gas.h:144
@ CS_COMBUSTION_LW_3PEAK_PERMEATIC
Definition: cs_combustion_gas.h:136
@ CS_COMBUSTION_EBU_VARIABLE_PERMEATIC
Definition: cs_combustion_gas.h:120
@ CS_COMBUSTION_LW_2PEAK_ADIABATIC
Definition: cs_combustion_gas.h:124
@ CS_COMBUSTION_LW_4PEAK_ADIABATIC
Definition: cs_combustion_gas.h:140
@ CS_COMBUSTION_BSH_ADIABATIC
Definition: cs_combustion_gas.h:89
@ CS_COMBUSTION_3PT_PERMEATIC
Definition: cs_combustion_gas.h:86
@ CS_COMBUSTION_SLFM_STEADY_ADIABATIC
Definition: cs_combustion_gas.h:95
@ CS_COMBUSTION_LW_3PEAK_ADIABATIC
Definition: cs_combustion_gas.h:132
@ CS_COMBUSTION_GAS_NONE
Definition: cs_combustion_gas.h:80
@ CS_COMBUSTION_SLFM_PROGRESS_ADIABATIC
Definition: cs_combustion_gas.h:101
@ CS_COMBUSTION_EBU_VARIABLE_ADIABATIC
Definition: cs_combustion_gas.h:116
#define CS_COMBUSTION_GAS_MAX_TABULATION_POINTS
Definition: cs_combustion_gas.h:66
#define CS_COMBUSTION_GAS_MAX_ELEMENTARY_COMPONENTS
Definition: cs_combustion_gas.h:60
#define CS_COMBUSTION_GAS_MAX_GLOBAL_SPECIES
Definition: cs_combustion_gas.h:51
#define CS_COMBUSTION_GAS_MAX_GLOBAL_REACTIONS
Definition: cs_combustion_gas.h:63
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
#define END_C_DECLS
Definition: cs_defs.h:543
@ CS_COMBUSTION_LW
Definition: cs_physical_model.h:61
@ CS_COMBUSTION_3PT
Definition: cs_physical_model.h:58
@ CS_COMBUSTION_EBU
Definition: cs_physical_model.h:60
@ CS_COMBUSTION_SLFM
Definition: cs_physical_model.h:59
real(c_double), dimension(:), pointer, save wmolg
molar mass of a global species
Definition: ppthch.f90:86
real(c_double), dimension(:), pointer, save fs
Mixing rate at the stoichiometry.
Definition: ppthch.f90:92
real(c_double), dimension(:), pointer, save wmolat
molar mass of atoms
Definition: ppthch.f90:89
real(c_double), dimension(:), pointer, save ckabsg
Absorption coefficient of global species.
Definition: ppthch.f90:95
real(c_double), dimension(:), pointer, save wmole
molar mass of an elementary gas component
Definition: ppthch.f90:83
double precision, dimension(:,:), pointer, save compog
Definition: coincl.f90:58
double precision, dimension(:,:), pointer, save coefeg
Definition: coincl.f90:54
real(c_double), dimension(:), pointer, save oxyco2
Definition: ppcpfu.f90:41
real(c_double), dimension(:), pointer, save oxyn2
Definition: ppcpfu.f90:41
real(c_double), dimension(:), pointer, save oxyh2o
Definition: ppcpfu.f90:41
Definition: cs_combustion_gas.h:181
double hinfue
Definition: cs_combustion_gas.h:237
int iio2
Definition: cs_combustion_gas.h:232
cs_combustion_gas_model_type_t type
Definition: cs_combustion_gas.h:223
int n_gas_el_comp
Definition: cs_combustion_gas.h:188
bool use_janaf
Definition: cs_combustion_gas.h:227
cs_field_t * t2m
Definition: cs_combustion_gas.h:305
cs_field_t * yfm
Definition: cs_combustion_gas.h:286
cs_field_t * t3m
Definition: cs_combustion_gas.h:306
int iic
Definition: cs_combustion_gas.h:230
double tinfue
Definition: cs_combustion_gas.h:238
cs_field_t * recvr
Definition: cs_combustion_gas.h:297
double rosoot
Definition: cs_combustion_gas.h:243
int nki
Definition: cs_combustion_gas.h:329
int nxr
Definition: cs_combustion_gas.h:330
cs_field_t * fm
Definition: cs_combustion_gas.h:281
cs_field_t * npm
Definition: cs_combustion_gas.h:290
int nzm
Definition: cs_combustion_gas.h:331
double pcigas
Definition: cs_combustion_gas.h:197
int n_reactions
Definition: cs_combustion_gas.h:192
int nlibvar
Definition: cs_combustion_gas.h:333
char * data_file_name
Definition: cs_combustion_gas.h:225
cs_field_t * t4m
Definition: cs_combustion_gas.h:307
int ikimid
Definition: cs_combustion_gas.h:334
int n_tab_points
Definition: cs_combustion_gas.h:195
double frmel
Definition: cs_combustion_gas.h:246
double cebu
Definition: cs_combustion_gas.h:248
cs_field_t * coyfp
Definition: cs_combustion_gas.h:288
cs_field_t * ckabs
Definition: cs_combustion_gas.h:308
cs_field_t * ygfm
Definition: cs_combustion_gas.h:285
int nzvar
Definition: cs_combustion_gas.h:332
cs_field_t * hrr
Definition: cs_combustion_gas.h:294
cs_field_t * omgc
Definition: cs_combustion_gas.h:295
cs_field_t * fsqm
Definition: cs_combustion_gas.h:283
cs_field_t * yfp2m
Definition: cs_combustion_gas.h:287
cs_field_t * pvm
Definition: cs_combustion_gas.h:284
cs_real_t * flamelet_library_p
Definition: cs_combustion_gas.h:344
int isoot
Definition: cs_combustion_gas.h:233
int n_atomic_species
Definition: cs_combustion_gas.h:190
cs_field_t * totki
Definition: cs_combustion_gas.h:296
cs_field_t * xr
Definition: cs_combustion_gas.h:293
int n_gas_species
Definition: cs_combustion_gas.h:189
int iico2
Definition: cs_combustion_gas.h:231
double tgf
Definition: cs_combustion_gas.h:247
double hinoxy
Definition: cs_combustion_gas.h:240
double lsp_fuel
Definition: cs_combustion_gas.h:244
int mode_fp2m
Definition: cs_combustion_gas.h:339
cs_field_t * fp2m
Definition: cs_combustion_gas.h:282
cs_libby_williams_params_t lw
Definition: cs_combustion_gas.h:323
double xco2
Definition: cs_combustion_gas.h:199
double srrom
Definition: cs_combustion_gas.h:313
double xh2o
Definition: cs_combustion_gas.h:200
int ientgf
Definition: cs_combustion_gas.h:234
double tinoxy
Definition: cs_combustion_gas.h:239
double xsoot
Definition: cs_combustion_gas.h:242
int ientgb
Definition: cs_combustion_gas.h:235
int n_gas_fl
Definition: cs_combustion_gas.h:327
cs_field_t * fsm
Definition: cs_combustion_gas.h:291
Field descriptor.
Definition: cs_field.h:158
Definition: cs_combustion_gas.h:150
double lref
Definition: cs_combustion_gas.h:154
double coeff1
Definition: cs_combustion_gas.h:161
double vref
Definition: cs_combustion_gas.h:153
cs_field_t * mam
Definition: cs_combustion_gas.h:166
double coeff2
Definition: cs_combustion_gas.h:162
double fmax
Definition: cs_combustion_gas.h:158
cs_field_t * tsc
Definition: cs_combustion_gas.h:165
double coeff3
Definition: cs_combustion_gas.h:163
double tstar
Definition: cs_combustion_gas.h:156
double hmin
Definition: cs_combustion_gas.h:159
double ta
Definition: cs_combustion_gas.h:155
double hmax
Definition: cs_combustion_gas.h:160
int n_dirac
Definition: cs_combustion_gas.h:152
double fmin
Definition: cs_combustion_gas.h:157