Cantera  2.5.1
Water.h
Go to the documentation of this file.
1 //! @file Water.h
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at https://cantera.org/license.txt for license and copyright information.
5 
6 #ifndef TPX_WATER_H
7 #define TPX_WATER_H
8 
9 #include "cantera/tpx/Sub.h"
10 
11 namespace tpx
12 {
13 //! Pure species representation of water. Values and functions are from
14 //! "Thermodynamic Properties in SI" by W.C. Reynolds
15 class water : public Substance
16 {
17 public:
18  water() {
19  m_name = "water";
20  m_formula = "H2O";
21  }
22 
23  double MolWt();
24  double Tcrit();
25  double Pcrit();
26  double Vcrit();
27  double Tmin();
28  double Tmax();
29 
30  double Pp();
31  double up();
32  double sp();
33  double Psat();
34  double dPsatdT();
35 
36 private:
37  double ldens();
38  double C(int i);
39  double Cprime(int i);
40  double I(int i);
41  double H(int i);
42 };
43 
44 }
45 #endif // ! WATER_H
Pure species representation of water.
Definition: Water.h:16
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Water.cpp:197
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Water.cpp:205
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Water.cpp:201
double MolWt()
Molecular weight [kg/kmol].
Definition: Water.cpp:209
double sp()
Entropy of a single-phase state.
Definition: Water.cpp:136
double Tcrit()
Critical temperature [K].
Definition: Water.cpp:189
double Pcrit()
Critical pressure [Pa].
Definition: Water.cpp:193
double Psat()
Saturation pressure, Pa.
Definition: Water.cpp:161
double up()
Internal energy of a single-phase state.
Definition: Water.cpp:122