9.0
general documentation
Loading...
Searching...
No Matches
cs_combustion_ht_convert.h
Go to the documentation of this file.
1#ifndef CS_COMBUSTION_HT_CONVERT_H
2#define CS_COMBUSTION_HT_CONVERT_H
3
4/*============================================================================
5 * Gas 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-2025 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
36/*----------------------------------------------------------------------------*/
37
39
40/*=============================================================================
41 * Type definitions
42 *============================================================================*/
43
44/*=============================================================================
45 * Public function prototypes
46 *============================================================================*/
47
48/*----------------------------------------------------------------------------*/
57/*----------------------------------------------------------------------------*/
58
61 cs_real_t h);
62
63/*----------------------------------------------------------------------------*/
74/*----------------------------------------------------------------------------*/
75
76static inline cs_real_t
79{
80 return cs_combustion_h_to_t(x_sp, h);
81}
82
83/*----------------------------------------------------------------------------*/
92/*----------------------------------------------------------------------------*/
93
96 cs_real_t t);
97
98/*----------------------------------------------------------------------------*/
109/*----------------------------------------------------------------------------*/
110
111static inline cs_real_t
113 cs_real_t t)
114{
115 return cs_combustion_t_to_h(x_sp, t);
116}
117
118/*----------------------------------------------------------------------------*/
119/*
120 * \brief Convert enthalpy to temperature at boundary for gas combustion.
121 *
122 * \param[in] h enthalpy at boundary
123 * \param[out] t temperature at boundary
124 */
125/*----------------------------------------------------------------------------*/
126
127void
129 cs_real_t t[]);
130
131/*----------------------------------------------------------------------------*/
140/*----------------------------------------------------------------------------*/
141
144 cs_real_t t);
145
146/*----------------------------------------------------------------------------*/
159/*----------------------------------------------------------------------------*/
160
161void
163 const cs_lnum_t face_ids[],
164 const cs_real_t t[],
165 cs_real_t h[]);
166
167/*----------------------------------------------------------------------------*/
180/*----------------------------------------------------------------------------*/
181
182void
184 const cs_real_t t[],
185 cs_real_t h[]);
186
187/*----------------------------------------------------------------------------*/
188
190
191#endif /* CS_COMBUSTION_HT_CONVERT_H */
void cs_combustion_ht_convert_t_to_h_faces_l(cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_real_t t[], cs_real_t h[])
Convert temperature to enthalpy at selected boundary faces for gas combustion.
Definition cs_combustion_ht_convert.cpp:308
cs_real_t cs_combustion_t_to_h(const cs_real_t x_sp[], cs_real_t t)
Convert a temperature to enthalpy value for gas combustion.
Definition cs_combustion_ht_convert.cpp:169
cs_real_t cs_combustion_ht_convert_t_to_h(cs_real_t xsp[], cs_real_t t)
Convert temperature to enthalpy for gas combustion.
static cs_real_t cs_gas_combustion_h_to_t(const cs_real_t x_sp[], cs_real_t h)
Convert an enthalpy to temperature value for gas combustion.
Definition cs_combustion_ht_convert.h:77
static cs_real_t cs_gas_combustion_t_to_h(const cs_real_t x_sp[], cs_real_t t)
Convert a temperature to enthalpy value for gas combustion.
Definition cs_combustion_ht_convert.h:112
cs_real_t cs_combustion_h_to_t(const cs_real_t x_sp[], cs_real_t h)
Convert an enthalpy to temperature value for gas combustion.
Definition cs_combustion_ht_convert.cpp:116
void cs_combustion_ht_convert_t_to_h_faces_z(const cs_zone_t *z, const cs_real_t t[], cs_real_t h[])
Convert temperature to enthalpy for a given boundary zone with a gas combustio model,...
Definition cs_combustion_ht_convert.cpp:414
void cs_combustion_ht_convert_h_to_t_faces(const cs_real_t h[], cs_real_t t[])
Definition cs_combustion_ht_convert.cpp:220
#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
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:335
@ t
Definition cs_field_pointer.h:94
@ h
Definition cs_field_pointer.h:93
Definition cs_zone.h:55