8.2
general documentation
cs_coal_ht_convert.h
Go to the documentation of this file.
1 #ifndef CS_COAL_HT_CONVERT_H
2 #define CS_COAL_HT_CONVERT_H
3 
4 /*============================================================================
5  * Coal combustion model: enthaly to and from temperature conversion.
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2024 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  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 #include "cs_zone.h"
36 
37 /*----------------------------------------------------------------------------*/
38 
40 
41 /*=============================================================================
42  * Type definitions
43  *============================================================================*/
44 
45 /*=============================================================================
46  * Public function prototypes
47  *============================================================================*/
48 
49 /*----------------------------------------------------------------------------*/
50 /*
51  * \brief Calculation of the gas temperature from gas enthalpy and
52  * concentrations at cells for coal combustion.
53  *
54  * \param[in] location_id mesh location id (cells or boundary faces)
55  * \param[in] eh gas enthalpy (j/kg of gaseous mixture)
56  * \param[in, out] tp gas temperature in kelvin
57  */
58 /*----------------------------------------------------------------------------*/
59 
60 void
61 cs_coal_ht_convert_h_to_t_gas(int location_id,
62  const cs_real_t eh[],
63  cs_real_t tp[]);
64 
65 /*----------------------------------------------------------------------------*/
66 /*
67  * \brief Calculation of the gas temperature from gas enthalpy and
68  * given mass fractions and average f1/f2 for coal combustion.
69  *
70  * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
71  * \param[in] xesp mass fraction (yi) of species
72  * \param[in] f1mc average f1 per coal
73  * \param[in] f2mc average f2 per coal
74  *
75  * \return gas temperature (in kelvin)
76  */
77 /*----------------------------------------------------------------------------*/
78 
81  const cs_real_t xesp[],
82  const cs_real_t f1mc[],
83  const cs_real_t f2mc[]);
84 
85 /*----------------------------------------------------------------------------*/
86 /*
87  * \brief Calculation of the gas enthalpy from gas temperature and
88  * given mass fractions and average f1/f2 for coal combustion.
89  *
90  * \param[in] tp gas temperature (in kelvin)
91  * \param[in] xesp mass fraction (yi) of species
92  * \param[in] f1mc average f1 per coal
93  * \param[in] f2mc average f2 per coal
94  *
95  * \return gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
96  */
97 /*----------------------------------------------------------------------------*/
98 
101  const cs_real_t xesp[],
102  const cs_real_t f1mc[],
103  const cs_real_t f2mc[]);
104 
105 /*----------------------------------------------------------------------------*/
106 /*
107  * \brief Calculation of the gas temperature from gas enthalpy and
108  * given mass fractions for coal combustion.
109  *
110  * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
111  * \param[in] xesp mass fraction (yi) of species
112  * \param[in] f1mc average f1 per coal
113  * \param[in] f2mc average f2 per coal
114  *
115  * \return gas temperature (in kelvin)
116  */
117 /*----------------------------------------------------------------------------*/
118 
119 cs_real_t
121  const cs_real_t xesp[]);
122 
123 /*----------------------------------------------------------------------------*/
133 /*----------------------------------------------------------------------------*/
134 
135 cs_real_t
137  const cs_real_t xesp[]);
138 
139 /*----------------------------------------------------------------------------*/
140 /*
141  * \brief Calculation of the gas temperature from gas enthalpy and
142  * given mass fractions for coal combustion with drying.
143  *
144  * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
145  * \param[in] xesp mass fraction (yi) of species
146  *
147  * \return gas temperature (in kelvin)
148  */
149 /*----------------------------------------------------------------------------*/
150 
151 cs_real_t
153  const cs_real_t xesp[]);
154 
155 /*----------------------------------------------------------------------------*/
156 /*
157  * \brief Calculation of the gas enthalpy from gas temperature and
158  * given mass fractions for coal combustion with drying.
159  *
160  * \param[in] tp gas temperature (in kelvin)
161  * \param[in] xesp mass fraction (yi) of species
162  *
163  * \return gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
164  */
165 /*----------------------------------------------------------------------------*/
166 
167 cs_real_t
169  const cs_real_t xesp[]);
170 
171 /*----------------------------------------------------------------------------*/
172 /*
173  * \brief Calculation of the particles temperature from particles enthalpy and
174  * concentrations at cells for coal combustion.
175  */
176 /*----------------------------------------------------------------------------*/
177 
178 void
180 
181 /*----------------------------------------------------------------------------*/
182 /*
183  * \brief Calculation of the particles temperature from particles enthalpy and
184  * given mass fractions for coal combustion.
185  *
186  * \remark Function not called in code, so should probably be removed,
187  * unless useful for advanced postprocessing.
188  *
189  * \param[in] enthal mass enthalpy (\f$ j . kg^{-1} \f$)
190  * \param[in] class_id class id (0 to n-1)
191  * \param[in] xesp mass fraction of components
192  * (size: cm->nsolid)
193  * \param[in] t1 coal inlet/boundary temperature
194  *
195  * \return temperature (in kelvin)
196  */
197 /*----------------------------------------------------------------------------*/
198 
199 cs_real_t
201  int class_id,
202  const cs_real_t xsolid[],
203  cs_real_t t1);
204 
205 /*----------------------------------------------------------------------------*/
206 /*
207  * \brief Calculation of the particles from particles temperature and
208  * given mass fractions for coal combustion.
209  *
210  * \param[in] temper temperature (in kelvin)
211  * \param[in] class_id class id (0 to n-1)
212  * \param[in] xesp mass fraction of components
213  * (size: cm->nsolid)
214  *
215  * \return mass enthalpy (\f$ j . kg^{-1} \f$)
216  */
217 /*----------------------------------------------------------------------------*/
218 
219 cs_real_t
221  int class_id,
222  const cs_real_t xsolid[]);
223 
224 /*----------------------------------------------------------------------------*/
225 
227 
228 #endif /* CS_COAL_HT_CONVERT_H */
cs_real_t cs_coal_ht_convert_t_to_h_gas_by_yi_f1f2(cs_real_t tp, const cs_real_t xesp[], const cs_real_t f1mc[], const cs_real_t f2mc[])
Calculation of the gas enthalpy from gas temperature and given mass fractions and average f1/f2 for c...
Definition: cs_coal_ht_convert.c:365
cs_real_t cs_coal_ht_convert_t_to_h_particles_by_yi(cs_real_t temper, int class_id, const cs_real_t xsolid[])
Calculation of the particles enthalpy from particles temperature and given mass fractions for coal co...
Definition: cs_coal_ht_convert.c:1079
cs_real_t cs_coal_ht_convert_h_to_t_gas_by_yi_with_drying(cs_real_t eh, const cs_real_t xesp[])
Calculation of the gas temperature from gas enthalpy and given mass fractions for coal combustion wit...
Definition: cs_coal_ht_convert.c:697
cs_real_t cs_coal_ht_convert_h_to_t_particles_by_yi(cs_real_t enthal, int class_id, const cs_real_t xsolid[], cs_real_t t1)
Calculation of the particles temperature from particles enthalpy and given mass fractions for coal co...
Definition: cs_coal_ht_convert.c:1000
cs_real_t cs_coal_ht_convert_h_to_t_gas_by_yi_f1f2(cs_real_t eh, const cs_real_t xesp[], const cs_real_t f1mc[], const cs_real_t f2mc[])
Calculation of the gas temperature from gas enthalpy and given mass fractions and average f1/f2 for c...
Definition: cs_coal_ht_convert.c:225
cs_real_t cs_coal_ht_convert_t_to_h_gas_by_yi_with_drying(cs_real_t tp, const cs_real_t xesp[])
Calculation of the gas enthalpy from gas temperature and given mass fractions for coal combustion wit...
Definition: cs_coal_ht_convert.c:772
void cs_coal_ht_convert_h_to_t_gas(int location_id, const cs_real_t eh[], cs_real_t tp[])
Calculation of the gas temperature from gas enthalpy and concentrations at cells for coal combustion.
Definition: cs_coal_ht_convert.c:112
cs_real_t cs_coal_ht_convert_h_to_t_gas_by_yi(cs_real_t eh, const cs_real_t xesp[])
Calculation of the gas temperature from gas enthalpy and given mass fractions for coal combustion.
Definition: cs_coal_ht_convert.c:523
cs_real_t cs_coal_ht_convert_t_to_h_gas_by_yi(cs_real_t tp, const cs_real_t xesp[])
Calculation of the gas enthalpy from gas temperature and given mass fractions for coal combustion and...
Definition: cs_coal_ht_convert.c:600
void cs_coal_ht_convert_h_to_t_particles(void)
Calculation of the particles temperature from particles enthalpy and concentrations at cells for coal...
Definition: cs_coal_ht_convert.c:862
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
#define END_C_DECLS
Definition: cs_defs.h:529