Cantera  3.1.0a1
Nitrogen.h
Go to the documentation of this file.
1 //! @file Nitrogen.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_NITROGEN_H
7 #define TPX_NITROGEN_H
8 
9 #include "cantera/tpx/Sub.h"
10 
11 namespace tpx
12 {
13 
14 //! Pure species representation of nitrogen. Values and functions are
15 //! from Reynolds @cite reynolds1979.
16 class nitrogen : public Substance
17 {
18 public:
19  nitrogen() {
20  m_name = "nitrogen";
21  m_formula = "N2";
22  }
23 
24  double MolWt() override;
25  double Tcrit() override;
26  double Pcrit() override;
27  double Vcrit() override;
28  double Tmin() override;
29  double Tmax() override;
30 
31  double Pp() override;
32  double up() override;
33  double sp() override;
34 
35  //! Saturation pressure. Equation S4 from Reynolds TPSI.
36  double Psat() override;
37 
38 protected:
39  //! Liquid density. Equation D2 from Reynolds TPSI.
40  double ldens() override;
41 
42 private:
43  //! Equation P4 from Reynolds TPSI.
44  double C(int i, double rt, double rt2);
45  double Cprime(int i, double rt, double rt2, double rt3);
46  double I(int i, double egrho);
47  double H(int i, double egrho);
48  double W(int i, double egrho);
49 };
50 
51 }
52 
53 #endif // ! TPX_NITROGEN_H
Base class from which all pure substances are derived.
Definition: Sub.h:37
Pure species representation of nitrogen.
Definition: Nitrogen.h:17
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:247
double up() override
Internal energy of a single-phase state.
Definition: Nitrogen.cpp:148
double ldens() override
Liquid density. Equation D2 from Reynolds TPSI.
Definition: Nitrogen.cpp:218
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition: Nitrogen.cpp:59
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:243
double Tcrit() override
Critical temperature [K].
Definition: Nitrogen.cpp:231
double sp() override
Entropy of a single-phase state.
Definition: Nitrogen.cpp:167
double MolWt() override
Molecular weight [kg/kmol].
Definition: Nitrogen.cpp:251
double Vcrit() override
Critical specific volume [m^3/kg].
Definition: Nitrogen.cpp:239
double Pcrit() override
Critical pressure [Pa].
Definition: Nitrogen.cpp:235
double Psat() override
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition: Nitrogen.cpp:199