9.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-2026 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 "base/cs_defs.h"
35#include "base/cs_zone.h"
36
37/*=============================================================================
38 * Type definitions
39 *============================================================================*/
40
41/*=============================================================================
42 * Public function prototypes
43 *============================================================================*/
44
45/*----------------------------------------------------------------------------*/
46/*
47 * \brief Calculation of the gas temperature from gas enthalpy and
48 * concentrations at cells for coal combustion.
49 *
50 * \param[in] location_id mesh location id (cells or boundary faces)
51 * \param[in] eh gas enthalpy (j/kg of gaseous mixture)
52 * \param[in, out] tp gas temperature in kelvin
53 */
54/*----------------------------------------------------------------------------*/
55
56void
57cs_coal_ht_convert_h_to_t_gas(int location_id,
58 const cs_real_t eh[],
59 cs_real_t tp[]);
60
61/*----------------------------------------------------------------------------*/
62/*
63 * \brief Calculation of the gas temperature from gas enthalpy and
64 * given mass fractions and average f1/f2 for coal combustion.
65 *
66 * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
67 * \param[in] xesp mass fraction (yi) of species
68 * \param[in] f1mc average f1 per coal
69 * \param[in] f2mc average f2 per coal
70 *
71 * \return gas temperature (in kelvin)
72 */
73/*----------------------------------------------------------------------------*/
74
77 const cs_real_t xesp[],
78 const cs_real_t f1mc[],
79 const cs_real_t f2mc[]);
80
81/*----------------------------------------------------------------------------*/
82/*
83 * \brief Calculation of the gas enthalpy from gas temperature and
84 * given mass fractions and average f1/f2 for coal combustion.
85 *
86 * \param[in] tp gas temperature (in kelvin)
87 * \param[in] xesp mass fraction (yi) of species
88 * \param[in] f1mc average f1 per coal
89 * \param[in] f2mc average f2 per coal
90 *
91 * \return gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
92 */
93/*----------------------------------------------------------------------------*/
94
97 const cs_real_t xesp[],
98 const cs_real_t f1mc[],
99 const cs_real_t f2mc[]);
100
101/*----------------------------------------------------------------------------*/
102/*
103 * \brief Calculation of the gas temperature from gas enthalpy and
104 * given mass fractions for coal combustion.
105 *
106 * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
107 * \param[in] xesp mass fraction (yi) of species
108 * \param[in] f1mc average f1 per coal
109 * \param[in] f2mc average f2 per coal
110 *
111 * \return gas temperature (in kelvin)
112 */
113/*----------------------------------------------------------------------------*/
114
117 const cs_real_t xesp[]);
118
119/*----------------------------------------------------------------------------*/
129/*----------------------------------------------------------------------------*/
130
133 const cs_real_t xesp[]);
134
135/*----------------------------------------------------------------------------*/
136/*
137 * \brief Calculation of the gas temperature from gas enthalpy and
138 * given mass fractions for coal combustion with drying.
139 *
140 * \param[in] eh gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
141 * \param[in] xesp mass fraction (yi) of species
142 *
143 * \return gas temperature (in kelvin)
144 */
145/*----------------------------------------------------------------------------*/
146
149 const cs_real_t xesp[]);
150
151/*----------------------------------------------------------------------------*/
152/*
153 * \brief Calculation of the gas enthalpy from gas temperature and
154 * given mass fractions for coal combustion with drying.
155 *
156 * \param[in] tp gas temperature (in kelvin)
157 * \param[in] xesp mass fraction (yi) of species
158 *
159 * \return gas enthalpy (\f$ j . kg^{-1} \f$ of mixed gas)
160 */
161/*----------------------------------------------------------------------------*/
162
165 const cs_real_t xesp[]);
166
167/*----------------------------------------------------------------------------*/
168/*
169 * \brief Calculation of the particles temperature from particles enthalpy and
170 * concentrations at cells for coal combustion.
171 */
172/*----------------------------------------------------------------------------*/
173
174void
176
177/*----------------------------------------------------------------------------*/
178/*
179 * \brief Calculation of the particles temperature from particles enthalpy and
180 * given mass fractions for coal combustion.
181 *
182 * \remark Function not called in code, so should probably be removed,
183 * unless useful for advanced postprocessing.
184 *
185 * \param[in] enthal mass enthalpy (\f$ j . kg^{-1} \f$)
186 * \param[in] class_id class id (0 to n-1)
187 * \param[in] xesp mass fraction of components
188 * (size: cm->nsolid)
189 * \param[in] t1 coal inlet/boundary temperature
190 *
191 * \return temperature (in kelvin)
192 */
193/*----------------------------------------------------------------------------*/
194
197 int class_id,
198 const cs_real_t xsolid[],
199 cs_real_t t1);
200
201/*----------------------------------------------------------------------------*/
202/*
203 * \brief Calculation of the particles from particles temperature and
204 * given mass fractions for coal combustion.
205 *
206 * \param[in] temper temperature (in kelvin)
207 * \param[in] class_id class id (0 to n-1)
208 * \param[in] xesp mass fraction of components
209 * (size: cm->nsolid)
210 *
211 * \return mass enthalpy (\f$ j . kg^{-1} \f$)
212 */
213/*----------------------------------------------------------------------------*/
214
217 int class_id,
218 const cs_real_t xsolid[]);
219
220/*----------------------------------------------------------------------------*/
221/*
222 * \brief Convert temperature to enthalpy at boundary for coal combustion.
223 *
224 * \param[in] n_faces number of faces in list
225 * \param[in] face_ids list of boundary faces at which conversion
226 * is requested (0-based numbering)
227 * \param[in] t_b temperature at boundary
228 * \param[out] h_b enthalpy at boundary
229 */
230/*----------------------------------------------------------------------------*/
231
232void
234 const cs_lnum_t face_ids[],
235 const cs_real_t t_b[],
236 cs_real_t h_b[]);
237
238/*----------------------------------------------------------------------------*/
239
240#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.cpp:358
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.cpp:1066
void cs_coal_ht_convert_t_to_h_faces(cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_real_t t_b[], cs_real_t h_b[])
Definition: cs_coal_ht_convert.cpp:1155
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.cpp:690
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.cpp:988
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.cpp:218
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.cpp:765
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.cpp:105
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.cpp:516
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.cpp:593
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.cpp:855
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ t_b
Definition: cs_field_pointer.h:92