-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathIAPWS-IF97.h
43 lines (37 loc) · 1.29 KB
/
IAPWS-IF97.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* \copyright
* Copyright (c) 2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
// IAPWS-IF97 for density and viscosity
class IF97
{
private:
public:
IF97(void);
~IF97(void);
/* Data */
static double R, Rm, M, Tc, Pc, Dc, Tt, Pt, Tb;
static double TT, PP;
/* Methods */
static void ReferenceConstants(void);
static double Psat(double);
static double Tsat(double);
static double Pb23(double);
static double Tb23(double);
static int region(double, double);
static double G(double, double); //(T K, P Mpa)
static double H(double, double); //(T K, P Mpa)
static double S(double, double); //(T K, P Mpa)
static double density(double, double); // density (kg m^-3) (T K, P Mpa)
static double viscosity(double, double); // viscosity (Pa s) (T K, P Mpa)
static double dielectric(double, double); // dielectric constant ()
static double g1PT(double, double);
static double g2PT(double, double);
static double f3DT(double, double);
static double dpressure(double);
static void entrance(void);
};