My Project
programmer's 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-2019 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 * Public function definitions
43 *============================================================================*/
44
45/*----------------------------------------------------------------------------*/
56/*----------------------------------------------------------------------------*/
57
58void
62 cs_real_t pinf,
63 cs_real_t qprim,
64 cs_real_t q);
65
66/*----------------------------------------------------------------------------*/
77/*----------------------------------------------------------------------------*/
78
81 cs_real_t energ,
82 int iph);
83
84/*----------------------------------------------------------------------------*/
95/*----------------------------------------------------------------------------*/
96
99 cs_real_t energ,
100 int iph);
101
102/*----------------------------------------------------------------------------*/
113/*----------------------------------------------------------------------------*/
114
117 cs_real_t energ,
118 int iph);
119
120/*----------------------------------------------------------------------------*/
128/*----------------------------------------------------------------------------*/
129
132 cs_real_t P,
133 int iph);
134
135/*----------------------------------------------------------------------------*/
143/*----------------------------------------------------------------------------*/
144
147 cs_real_t P,
148 int iph);
149
150/*----------------------------------------------------------------------------*/
158/*----------------------------------------------------------------------------*/
159
162 cs_real_t P,
163 int iph);
164
165/*----------------------------------------------------------------------------*/
173/*----------------------------------------------------------------------------*/
174
177 cs_real_t v,
178 int iph);
179
180/*----------------------------------------------------------------------------*/
181
183
184#endif /* __CS_HGN_PHASE_THERMO_H__ */
double cs_real_t
Floating-point value.
Definition cs_defs.h:302
#define END_C_DECLS
Definition cs_defs.h:468
@ gamma
Definition cs_field_pointer.h:223
@ cv
Definition cs_field_pointer.h:107
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