Cantera  2.5.1
Hydrogen.h
Go to the documentation of this file.
1 //! @file Hydrogen.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_HYDROGEN_H
7 #define TPX_HYDROGEN_H
8 
9 #include "cantera/tpx/Sub.h"
10 
11 namespace tpx
12 {
13 
14 //! Pure species representation of hydrogen. Values and functions are
15 //! from "Thermodynamic Properties in SI" by W.C. Reynolds
16 class hydrogen : public Substance
17 {
18 public:
19  hydrogen() {
20  m_name = "hydrogen";
21  m_formula = "H2";
22  }
23 
24  double MolWt();
25  double Tcrit();
26  double Pcrit();
27  double Vcrit();
28  double Tmin();
29  double Tmax();
30 
31  double Pp();
32  double up();
33  double sp();
34 
35  //! Saturation pressure. Equation s3 in Reynolds TPSI.
36  double Psat();
37 
38 private:
39  //! Liquid density. Equation D4 in Reynolds TPSI.
40  double ldens();
41  double C(int i, double rt, double rt2);
42  double Cprime(int i, double rt, double rt2, double rt3);
43  double I(int i, double egrho);
44  double H(int i, double egrho);
45  double W(int i, double egrho);
46  double icv(int i, double x, double xlg);
47 };
48 
49 }
50 
51 #endif // ! HYDROGEN_H
double x()
Vapor mass fraction.
Definition: Sub.cpp:275
Pure species representation of hydrogen.
Definition: Hydrogen.h:17
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Hydrogen.cpp:256
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Hydrogen.cpp:264
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Hydrogen.cpp:260
double MolWt()
Molecular weight [kg/kmol].
Definition: Hydrogen.cpp:268
double sp()
Entropy of a single-phase state.
Definition: Hydrogen.cpp:179
double Tcrit()
Critical temperature [K].
Definition: Hydrogen.cpp:248
double Pcrit()
Critical pressure [Pa].
Definition: Hydrogen.cpp:252
double Psat()
Saturation pressure. Equation s3 in Reynolds TPSI.
Definition: Hydrogen.cpp:235
double ldens()
Liquid density. Equation D4 in Reynolds TPSI.
Definition: Hydrogen.cpp:220
double up()
Internal energy of a single-phase state.
Definition: Hydrogen.cpp:151