7.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-2021 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 
62 void
64  cs_real_t cv,
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 
101 cs_real_t
103  cs_real_t energ,
104  int iph);
105 
106 /*----------------------------------------------------------------------------*/
117 /*----------------------------------------------------------------------------*/
118 
119 cs_real_t
121  cs_real_t energ,
122  int iph);
123 
124 /*----------------------------------------------------------------------------*/
132 /*----------------------------------------------------------------------------*/
133 
134 cs_real_t
136  cs_real_t P,
137  int iph);
138 
139 /*----------------------------------------------------------------------------*/
147 /*----------------------------------------------------------------------------*/
148 
149 cs_real_t
151  cs_real_t P,
152  int iph);
153 
154 /*----------------------------------------------------------------------------*/
162 /*----------------------------------------------------------------------------*/
163 
164 cs_real_t
166  cs_real_t P,
167  int iph);
168 
169 /*----------------------------------------------------------------------------*/
177 /*----------------------------------------------------------------------------*/
178 
179 cs_real_t
181  cs_real_t v,
182  int iph);
183 
184 /*----------------------------------------------------------------------------*/
185 
187 
188 #endif /* __CS_HGN_PHASE_THERMO_H__ */
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_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
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
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
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
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
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
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
Definition: cs_field_pointer.h:221
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
Definition: cs_field_pointer.h:101
#define END_C_DECLS
Definition: cs_defs.h:511
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