8.0
general documentation
Loading...
Searching...
No Matches
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-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/*----------------------------------------------------------------------------*/
60/*----------------------------------------------------------------------------*/
61
62void
66 cs_real_t pinf,
67 cs_real_t qprim,
68 cs_real_t q);
69
70/*----------------------------------------------------------------------------*/
81/*----------------------------------------------------------------------------*/
82
85 cs_real_t energ,
86 int iph);
87
88/*----------------------------------------------------------------------------*/
99/*----------------------------------------------------------------------------*/
100
103 cs_real_t energ,
104 int iph);
105
106/*----------------------------------------------------------------------------*/
117/*----------------------------------------------------------------------------*/
118
121 cs_real_t energ,
122 int iph);
123
124/*----------------------------------------------------------------------------*/
132/*----------------------------------------------------------------------------*/
133
136 cs_real_t P,
137 int iph);
138
139/*----------------------------------------------------------------------------*/
147/*----------------------------------------------------------------------------*/
148
151 cs_real_t P,
152 int iph);
153
154/*----------------------------------------------------------------------------*/
162/*----------------------------------------------------------------------------*/
163
166 cs_real_t P,
167 int iph);
168
169/*----------------------------------------------------------------------------*/
177/*----------------------------------------------------------------------------*/
178
181 cs_real_t v,
182 int iph);
183
184/*----------------------------------------------------------------------------*/
185
187
188#endif /* __CS_HGN_PHASE_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
@ gamma
Definition cs_field_pointer.h:221
@ cv
Definition cs_field_pointer.h:101
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.c:173
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.c:215
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.c:236
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.c:279
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.c:194
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.c:152
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.c:118
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.c:257