9.2
general documentation
cs_hgn_phase_thermo.h
Go to the documentation of this file.
1#ifndef CS_HGN_PHASE_THERMO_H
2#define CS_HGN_PHASE_THERMO_H
3
4/*============================================================================
5 * Phase thermodynamic for the compressible homogeneous two-phase 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/*----------------------------------------------------------------------------*/
51/*----------------------------------------------------------------------------*/
52
53void
57 cs_real_t pinf,
58 cs_real_t qprim,
59 cs_real_t q);
60
61/*----------------------------------------------------------------------------*/
72/*----------------------------------------------------------------------------*/
73
76 cs_real_t energ,
77 int iph);
78
79/*----------------------------------------------------------------------------*/
90/*----------------------------------------------------------------------------*/
91
94 cs_real_t energ,
95 int iph);
96
97/*----------------------------------------------------------------------------*/
108/*----------------------------------------------------------------------------*/
109
112 cs_real_t energ,
113 int iph);
114
115/*----------------------------------------------------------------------------*/
123/*----------------------------------------------------------------------------*/
124
127 cs_real_t P,
128 int iph);
129
130/*----------------------------------------------------------------------------*/
138/*----------------------------------------------------------------------------*/
139
142 cs_real_t P,
143 int iph);
144
145/*----------------------------------------------------------------------------*/
153/*----------------------------------------------------------------------------*/
154
157 cs_real_t P,
158 int iph);
159
160/*----------------------------------------------------------------------------*/
168/*----------------------------------------------------------------------------*/
169
172 cs_real_t v,
173 int iph);
174
175/*----------------------------------------------------------------------------*/
176
177#endif /* CS_HGN_PHASE_THERMO_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
@ gamma
Definition: cs_field_pointer.h:197
@ cv
Definition: cs_field_pointer.h:100
cs_real_t cs_hgn_phase_thermo_temperature_ve(cs_real_t vol, cs_real_t energ, int iph)
Computation of the temperature of phase iph.
Definition: cs_hgn_phase_thermo.cpp:169
cs_real_t cs_hgn_phase_thermo_internal_energy_tp(cs_real_t T, cs_real_t P, int iph)
Computation of internal energy of phase iph in plane (T,P).
Definition: cs_hgn_phase_thermo.cpp:211
cs_real_t cs_hgn_phase_thermo_specific_volume_tp(cs_real_t T, cs_real_t P, int iph)
Computation of specific volume of phase iph in plane (T,P).
Definition: cs_hgn_phase_thermo.cpp:232
cs_real_t cs_hgn_phase_thermo_internal_energy_sv(cs_real_t s, cs_real_t v, int iph)
Computation of internal energy of phase iph in plane (s,v).
Definition: cs_hgn_phase_thermo.cpp:275
cs_real_t cs_hgn_phase_thermo_pressure_ve(cs_real_t vol, cs_real_t energ, int iph)
Computation of the pressure of phase iph.
Definition: cs_hgn_phase_thermo.cpp:190
cs_real_t cs_hgn_phase_thermo_entropy_ve(cs_real_t vol, cs_real_t energ, int iph)
Computation of the entropy of phase iph (0 or 1).
Definition: cs_hgn_phase_thermo.cpp:148
void cs_hgn_thermo_define_stiffened_gas(int iph, cs_real_t cv, cs_real_t gamma, cs_real_t pinf, cs_real_t qprim, cs_real_t q)
Define stiffened gas parameters for phase iph.
Definition: cs_hgn_phase_thermo.cpp:114
cs_real_t cs_hgn_phase_thermo_entropy_tp(cs_real_t T, cs_real_t P, int iph)
Computation of entropy of phase iph in plane (T,P).
Definition: cs_hgn_phase_thermo.cpp:253