Cantera  2.4.0
Oxygen.h
Go to the documentation of this file.
1 //! @file Oxygen.h
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at http://www.cantera.org/license.txt for license and copyright information.
5 
6 #ifndef TPX_OXYGEN_H
7 #define TPX_OXYGEN_H
8 
9 #include "cantera/tpx/Sub.h"
10 
11 namespace tpx
12 {
13 //! Pure species representation of oxygen. Values and functions are
14 //! from "Thermodynamic Properties in SI" by W.C. Reynolds
15 class oxygen : public Substance
16 {
17 public:
18  oxygen() {
19  m_name="oxygen";
20  m_formula="O2";
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 
34  //! Saturation pressure. Equation S4 from Reynolds TPSI.
35  double Psat();
36 
37 private:
38  //! Liquid density. Equation D2 from Reynolds TPSI.
39  double ldens();
40 
41  //! Equation P4 from Reynolds TPSI.
42  double C(int i, double rt, double rt2);
43  double Cprime(int i, double rt, double rt2, double rt3);
44  double I(int i, double egrho);
45  double H(int i, double egrho);
46  double W(int i, double egrho);
47 };
48 
49 }
50 #endif // ! OXYGEN_H
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Oxygen.cpp:236
double MolWt()
Molecular weight [kg/kmol].
Definition: Oxygen.cpp:244
double Tcrit()
Critical temperature [K].
Definition: Oxygen.cpp:224
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition: Oxygen.cpp:56
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Oxygen.cpp:232
double up()
Internal energy of a single-phase state.
Definition: Oxygen.cpp:144
double ldens()
Liquid density. Equation D2 from Reynolds TPSI.
Definition: Oxygen.cpp:211
Pure species representation of oxygen.
Definition: Oxygen.h:15
double sp()
Entropy of a single-phase state.
Definition: Oxygen.cpp:160
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Oxygen.cpp:240
double Psat()
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition: Oxygen.cpp:192
double Pcrit()
Critical pressure [Pa].
Definition: Oxygen.cpp:228