9.2
general documentation
cs_hgn_thermo.h
Go to the documentation of this file.
1#ifndef CS_HGN_THERMO_H
2#define CS_HGN_THERMO_H
3
4/*============================================================================
5 * Thermodynamic for the compressible homogeneous two-phase flow model
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#include "base/cs_defs.h"
31
32/*----------------------------------------------------------------------------
33 * Standard C library headers
34 *----------------------------------------------------------------------------*/
35
36/*============================================================================
37 * Public function definitions
38 *============================================================================*/
39
40/*----------------------------------------------------------------------------*/
58/*----------------------------------------------------------------------------*/
59
62
63/*----------------------------------------------------------------------------*/
84/*----------------------------------------------------------------------------*/
85
86void
88 cs_real_t y,
89 cs_real_t z,
90 cs_real_t e,
91 cs_real_t v,
92 cs_real_t *ptp,
93 cs_real_t *ppr);
94
95/*----------------------------------------------------------------------------*/
118/*----------------------------------------------------------------------------*/
119
122 cs_real_t y,
123 cs_real_t z,
124 cs_real_t P,
125 cs_real_t v);
126
127/*----------------------------------------------------------------------------*/
146/*----------------------------------------------------------------------------*/
147
150 cs_real_t y,
151 cs_real_t z,
152 cs_real_t pr,
153 cs_real_t v);
154
155/*----------------------------------------------------------------------------*/
174/*----------------------------------------------------------------------------*/
175
176void
178 cs_real_t v,
179 cs_real_t *palpha_eq,
180 cs_real_t *py_eq,
181 cs_real_t *pz_eq);
182
183/*----------------------------------------------------------------------------*/
184
185#endif /* CS_HGN_THERMO_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
void cs_hgn_thermo_eq(cs_real_t e, cs_real_t v, cs_real_t *palpha_eq, cs_real_t *py_eq, cs_real_t *pz_eq)
Computation of the equilibrium fractions.
Definition: cs_hgn_thermo.cpp:754
cs_real_t cs_hgn_thermo_c2(cs_real_t alpha, cs_real_t y, cs_real_t z, cs_real_t P, cs_real_t v)
Computation of the square of the sound speed in the mixture.
Definition: cs_hgn_thermo.cpp:609
void cs_hgn_thermo_pt(cs_real_t alpha, cs_real_t y, cs_real_t z, cs_real_t e, cs_real_t v, cs_real_t *ptp, cs_real_t *ppr)
Computation mixture pressure and temperature from volume, mass, energy fractions, as well as specific...
Definition: cs_hgn_thermo.cpp:506
cs_real_t cs_hgn_thermo_saturation_temp(cs_real_t pr)
Computation of the temperature at saturation with respect to the pressure.
Definition: cs_hgn_thermo.cpp:433
cs_real_t cs_hgn_thermo_ie(cs_real_t alpha, cs_real_t y, cs_real_t z, cs_real_t pr, cs_real_t v)
Computation of the specific internal energy with respect to the volume ( ), mass ( ) and energy ( ) f...
Definition: cs_hgn_thermo.cpp:682