8.0
general documentation
Loading...
Searching...
No Matches
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-2023 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#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <math.h>
40
41/*----------------------------------------------------------------------------*/
42
44
45/*============================================================================
46 * Public function definitions
47 *============================================================================*/
48
49/*----------------------------------------------------------------------------*/
67/*----------------------------------------------------------------------------*/
68
71
72/*----------------------------------------------------------------------------*/
93/*----------------------------------------------------------------------------*/
94
95void
97 cs_real_t y,
98 cs_real_t z,
99 cs_real_t e,
100 cs_real_t v,
101 cs_real_t *ptp,
102 cs_real_t *ppr);
103
104/*----------------------------------------------------------------------------*/
127/*----------------------------------------------------------------------------*/
128
131 cs_real_t y,
132 cs_real_t z,
133 cs_real_t P,
134 cs_real_t v);
135
136/*----------------------------------------------------------------------------*/
155/*----------------------------------------------------------------------------*/
156
159 cs_real_t y,
160 cs_real_t z,
161 cs_real_t pr,
162 cs_real_t v);
163
164/*----------------------------------------------------------------------------*/
183/*----------------------------------------------------------------------------*/
184
185void
187 cs_real_t v,
188 cs_real_t *palpha_eq,
189 cs_real_t *py_eq,
190 cs_real_t *pz_eq);
191
192/*----------------------------------------------------------------------------*/
193
195
196#endif /* __CS_HGN_THERMO_H__ */
#define BEGIN_C_DECLS
Definition cs_defs.h:509
double cs_real_t
Floating-point value.
Definition cs_defs.h:319
#define END_C_DECLS
Definition cs_defs.h:510
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.c: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.c: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.c: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.c: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.c:686