Cantera  2.1.2
Nitrogen.h
Go to the documentation of this file.
1 //! @file Nitrogen.h
2 #ifndef TPX_NITROGEN_H
3 #define TPX_NITROGEN_H
4 
5 #include "cantera/tpx/Sub.h"
6 
7 namespace tpx
8 {
9 
10 //! Pure species representation of nitrogen. Values and functions are
11 //! from "Thermodynamic Properties in SI" by W.C. Reynolds
12 class nitrogen : public Substance
13 {
14 public:
15  nitrogen() {
16  m_name = "nitrogen";
17  m_formula = "N2";
18  }
19 
20  double MolWt();
21  double Tcrit();
22  double Pcrit();
23  double Vcrit();
24  double Tmin();
25  double Tmax();
26  char* name();
27  char* formula();
28 
29  double Pp();
30  double up();
31  double sp();
32 
33  //! Saturation pressure. Equation S4 from Reynolds TPSI.
34  double Psat();
35 
36 private:
37  //! Liquid density. Equation D2 from Reynolds TPSI.
38  double ldens();
39 
40  //! Equation P4 from Reynolds TPSI.
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 };
47 
48 }
49 
50 #endif // ! TPX_NITROGEN_H
51 
double Pcrit()
Critical pressure [Pa].
Definition: Nitrogen.cpp:235
double Tcrit()
Critical temperature [K].
Definition: Nitrogen.cpp:231
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Nitrogen.cpp:239
double Psat()
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition: Nitrogen.cpp:199
double ldens()
Liquid density. Equation D2 from Reynolds TPSI.
Definition: Nitrogen.cpp:218
char * formula()
Chemical formula for the substance.
Definition: Nitrogen.cpp:255
char * name()
Name of the substance.
Definition: Nitrogen.cpp:251
double MolWt()
Molecular weight [kg/kmol].
Definition: Nitrogen.cpp:259
double up()
Internal energy of a single-phase state.
Definition: Nitrogen.cpp:145
Pure species representation of nitrogen.
Definition: Nitrogen.h:12
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:243
double sp()
Entropy of a single-phase state.
Definition: Nitrogen.cpp:166
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:247
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition: Nitrogen.cpp:56