8.3
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-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#include "cs_defs.h"
31
32/*----------------------------------------------------------------------------
33 * Standard C library headers
34 *----------------------------------------------------------------------------*/
35
36/*----------------------------------------------------------------------------*/
37
39
40/*============================================================================
41 * Public function definitions
42 *============================================================================*/
43
44/*----------------------------------------------------------------------------*/
62/*----------------------------------------------------------------------------*/
63
66
67/*----------------------------------------------------------------------------*/
88/*----------------------------------------------------------------------------*/
89
90void
92 cs_real_t y,
93 cs_real_t z,
94 cs_real_t e,
96 cs_real_t *ptp,
97 cs_real_t *ppr);
98
99/*----------------------------------------------------------------------------*/
122/*----------------------------------------------------------------------------*/
123
126 cs_real_t y,
127 cs_real_t z,
128 cs_real_t P,
129 cs_real_t v);
130
131/*----------------------------------------------------------------------------*/
150/*----------------------------------------------------------------------------*/
151
154 cs_real_t y,
155 cs_real_t z,
156 cs_real_t pr,
157 cs_real_t v);
158
159/*----------------------------------------------------------------------------*/
178/*----------------------------------------------------------------------------*/
179
180void
182 cs_real_t v,
183 cs_real_t *palpha_eq,
184 cs_real_t *py_eq,
185 cs_real_t *pz_eq);
186
187/*----------------------------------------------------------------------------*/
188
190
191#endif /* __CS_HGN_THERMO_H__ */
#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
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:758
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:613
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:510
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:437
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:686
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:113