Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hydrogen.h
Go to the documentation of this file.
1 //! @file Hydrogen.h
2 #ifndef TPX_HYDROGEN_H
3 #define TPX_HYDROGEN_H
4 
5 #include "cantera/tpx/Sub.h"
6 
7 namespace tpx
8 {
9 
10 //! Pure species representation of hydrogen. Values and functions are
11 //! from "Thermodynamic Properties in SI" by W.C. Reynolds
12 class hydrogen : public Substance
13 {
14 public:
15  hydrogen() {
16  m_name = "hydrogen";
17  m_formula = "H2";
18  }
19 
20  double MolWt();
21  double Tcrit();
22  double Pcrit();
23  double Vcrit();
24  double Tmin();
25  double Tmax();
26 
27  double Pp();
28  double up();
29  double sp();
30 
31  //! Saturation pressure. Equation s3 in Reynolds TPSI.
32  double Psat();
33 
34 private:
35  //! Liquid density. Equation D4 in Reynolds TPSI.
36  double ldens();
37  double C(int i, double rt, double rt2);
38  double Cprime(int i, double rt, double rt2, double rt3);
39  double I(int i, double egrho);
40  double H(int i, double egrho);
41  double W(int i, double egrho);
42  double icv(int i, double x, double xlg);
43 };
44 
45 }
46 
47 #endif // ! HYDROGEN_H
double sp()
Entropy of a single-phase state.
Definition: Hydrogen.cpp:176
double x()
Vapor mass fraction.
Definition: Sub.cpp:59
double up()
Internal energy of a single-phase state.
Definition: Hydrogen.cpp:147
Pure species representation of hydrogen.
Definition: Hydrogen.h:12
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Hydrogen.cpp:258
double ldens()
Liquid density. Equation D4 in Reynolds TPSI.
Definition: Hydrogen.cpp:218
double Tcrit()
Critical temperature [K].
Definition: Hydrogen.cpp:246
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Hydrogen.cpp:254
double Pcrit()
Critical pressure [Pa].
Definition: Hydrogen.cpp:250
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Hydrogen.cpp:262
double Psat()
Saturation pressure. Equation s3 in Reynolds TPSI.
Definition: Hydrogen.cpp:233
double MolWt()
Molecular weight [kg/kmol].
Definition: Hydrogen.cpp:266