8.1
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-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 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Public function definitions
42  *============================================================================*/
43 
44 /*----------------------------------------------------------------------------*/
55 /*----------------------------------------------------------------------------*/
56 
57 void
59  cs_real_t cv,
61  cs_real_t pinf,
62  cs_real_t qprim,
63  cs_real_t q);
64 
65 /*----------------------------------------------------------------------------*/
76 /*----------------------------------------------------------------------------*/
77 
80  cs_real_t energ,
81  int iph);
82 
83 /*----------------------------------------------------------------------------*/
94 /*----------------------------------------------------------------------------*/
95 
98  cs_real_t energ,
99  int iph);
100 
101 /*----------------------------------------------------------------------------*/
112 /*----------------------------------------------------------------------------*/
113 
114 cs_real_t
116  cs_real_t energ,
117  int iph);
118 
119 /*----------------------------------------------------------------------------*/
127 /*----------------------------------------------------------------------------*/
128 
129 cs_real_t
131  cs_real_t P,
132  int iph);
133 
134 /*----------------------------------------------------------------------------*/
142 /*----------------------------------------------------------------------------*/
143 
144 cs_real_t
146  cs_real_t P,
147  int iph);
148 
149 /*----------------------------------------------------------------------------*/
157 /*----------------------------------------------------------------------------*/
158 
159 cs_real_t
161  cs_real_t P,
162  int iph);
163 
164 /*----------------------------------------------------------------------------*/
172 /*----------------------------------------------------------------------------*/
173 
174 cs_real_t
176  cs_real_t v,
177  int iph);
178 
179 /*----------------------------------------------------------------------------*/
180 
182 
183 #endif /* __CS_HGN_PHASE_THERMO_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:515
@ 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
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114