8.1
general documentation
cs_coal.h
Go to the documentation of this file.
1 #ifndef __CS_COAL_H__
2 #define __CS_COAL_H__
3 
4 /*============================================================================
5  * Coal combustion model.
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 /*----------------------------------------------------------------------------
35  * Local headers
36  *----------------------------------------------------------------------------*/
37 
38 #include "cs_defs.h"
39 
40 #include "cs_field.h"
41 
42 /*----------------------------------------------------------------------------*/
43 
45 
46 /*============================================================================
47  * Macro definitions
48  *============================================================================*/
49 
51 #define CS_COMBUSTION_MAX_COALS 5
52 
54 #define CS_COMBUSTION_MAX_CLASSES_PER_COAL 20
55 
57 #define CS_COMBUSTION_COAL_MAX_CLASSES CS_COMBUSTION_MAX_COALS \
58  * CS_COMBUSTION_MAX_CLASSES_PER_COAL
59 
61 #define CS_COMBUSTION_COAL_MAX_TABULATION_POINTS 500
62 
64 #define CS_COMBUSTION_COAL_MAX_SOLIDS CS_COMBUSTION_MAX_COALS * 4
65 
66 /*============================================================================
67  * Local type definitions
68  *============================================================================*/
69 
71 /*---------------------------------------------*/
72 
73 typedef struct {
74 
75  int n_coals;
76  int nclacp;
78  int nsolim;
82  int n_classes_per_coal[CS_COMBUSTION_MAX_COALS];
83 
84  /* Enthalpy of reactive coal, coke, and ash */
85 
88 
91 
94 
97 
101 
104 
107 
110 
113 
116 
119 
122 
125 
128 
131 
134 
137 
139 
140 /*=============================================================================
141  * Global variables
142  *============================================================================*/
143 
144 /*============================================================================
145  * Public function prototypes
146  *============================================================================*/
147 
148 /*----------------------------------------------------------------------------*/
154 /*----------------------------------------------------------------------------*/
155 
158 
159 /*----------------------------------------------------------------------------*/
165 /*----------------------------------------------------------------------------*/
166 
167 void
169 
170 /*----------------------------------------------------------------------------*/
179 /*----------------------------------------------------------------------------*/
180 
181 void
183  cs_real_t *smbrs,
184  cs_real_t *rovsdt);
185 
186 /*----------------------------------------------------------------------------*/
198 /*----------------------------------------------------------------------------*/
199 
200 double
201 cs_coal_thconvers1(const double xesp[],
202  const double f1mc[],
203  const double f2mc[],
204  cs_real_t tp);
205 
206 /*----------------------------------------------------------------------------*/
217 /*----------------------------------------------------------------------------*/
218 
219 double
220 cs_coal_thconvers2(int class_id,
221  const double xsolid[],
222  cs_real_t temper);
223 
224 /*----------------------------------------------------------------------------*/
225 
227 
228 #endif /* __CS_COAL__ */
#define CS_COMBUSTION_COAL_MAX_SOLIDS
Definition: cs_coal.h:64
double cs_coal_thconvers1(const double xesp[], const double f1mc[], const double f2mc[], cs_real_t tp)
Compute gas enthalpy Function with gas temperature and concentrations.
#define CS_COMBUSTION_COAL_MAX_CLASSES
Definition: cs_coal.h:57
#define CS_COMBUSTION_COAL_MAX_TABULATION_POINTS
Definition: cs_coal.h:61
double cs_coal_thconvers2(int class_id, const double xsolid[], cs_real_t temper)
Compute particles enthalpy Function with temperature and concentrations.
void cs_coal_rad_transfer_st(const cs_field_t *f, cs_real_t *smbrs, cs_real_t *rovsdt)
Take in account the radiative source terms in the particle equation of a given class for pulverized c...
Definition: cs_coal.c:216
#define CS_COMBUSTION_MAX_COALS
Definition: cs_coal.h:51
cs_coal_model_t * cs_coal_model_create(void)
Create coal model object.
Definition: cs_coal.c:136
void cs_coal_model_destroy(cs_coal_model_t **cm)
Destroy coal model object.
Definition: cs_coal.c:195
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:515
real(c_double), dimension(:), pointer, save xashch
Definition: cpincl.f90:117
real(c_double), dimension(:), pointer, save eh0sol
Definition: cpincl.f90:180
real(c_double), dimension(:), pointer, save wmols
Definition: cpincl.f90:180
real(c_double), dimension(:), pointer, save diam20
Definition: cpincl.f90:198
real(c_double), dimension(:), pointer, save rho20
Definition: cpincl.f90:198
real(c_double), dimension(:), pointer, save rho2mn
Definition: cpincl.f90:198
integer(c_int), dimension(:), pointer, save iash
Definition: cpincl.f90:179
real(c_double), dimension(:), pointer, save dia2mn
Definition: cpincl.f90:198
integer(c_int), dimension(:), pointer, save iwat
Definition: cpincl.f90:179
real(c_double), dimension(:), pointer, save xmp0
Definition: cpincl.f90:198
real(c_double), dimension(:), pointer, save cp2ch
Definition: cpincl.f90:117
real(c_double), dimension(:), pointer, save xwatch
Definition: cpincl.f90:117
integer(c_int), dimension(:), pointer, save ick
Definition: cpincl.f90:179
integer(c_int), dimension(:), pointer, save ichcor
Definition: cpincl.f90:197
real(c_double), dimension(:,:), pointer, save ehsoli
Definition: cpincl.f90:180
integer(c_int), dimension(:), pointer, save ich
Definition: cpincl.f90:179
Definition: cs_coal.h:73
int nsolim
Definition: cs_coal.h:78
int nclacp
Definition: cs_coal.h:76
int n_coals
Definition: cs_coal.h:75
Field descriptor.
Definition: cs_field.h:131