Cantera  2.1.2
Water.h
Go to the documentation of this file.
1 //! @file Water.h
2 #ifndef TPX_WATER_H
3 #define TPX_WATER_H
4 
5 #include "cantera/tpx/Sub.h"
6 
7 namespace tpx
8 {
9 //! Pure species representation of water. Values and functions are from
10 //! "Thermodynamic Properties in SI" by W.C. Reynolds
11 class water : public Substance
12 {
13 public:
14  water() {
15  m_name = "water";
16  m_formula = "H2O";
17  }
18 
19  double MolWt();
20  double Tcrit();
21  double Pcrit();
22  double Vcrit();
23  double Tmin();
24  double Tmax();
25  char* name();
26  char* formula();
27 
28  double Pp();
29  double up();
30  double sp();
31  double Psat();
32  double dPsatdT();
33 
34 private:
35  double ldens();
36  double C(int i);
37  double Cprime(int i);
38  double I(int i);
39  double H(int i);
40 };
41 
42 }
43 #endif // ! WATER_H
char * name()
Name of the substance.
Definition: Water.cpp:220
Pure species representation of water.
Definition: Water.h:11
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Water.cpp:216
double sp()
Entropy of a single-phase state.
Definition: Water.cpp:132
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Water.cpp:208
char * formula()
Chemical formula for the substance.
Definition: Water.cpp:224
double up()
Internal energy of a single-phase state.
Definition: Water.cpp:118
double Pcrit()
Critical pressure [Pa].
Definition: Water.cpp:204
double Tcrit()
Critical temperature [K].
Definition: Water.cpp:200
double MolWt()
Molecular weight [kg/kmol].
Definition: Water.cpp:228
double Psat()
Saturation pressure, Pa.
Definition: Water.cpp:157
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Water.cpp:212