Cantera 2.6.0
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
11namespace tpx
12{
13
14//! Pure species representation of nitrogen. Values and functions are
15//! from "Thermodynamic Properties in SI" by W.C. Reynolds
16class nitrogen : public Substance
17{
18public:
19 nitrogen() {
20 m_name = "nitrogen";
21 m_formula = "N2";
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 S4 from Reynolds TPSI.
36 double Psat();
37
38private:
39 //! Liquid density. Equation D2 from Reynolds TPSI.
40 double ldens();
41
42 //! Equation P4 from Reynolds TPSI.
43 double C(int i, double rt, double rt2);
44 double Cprime(int i, double rt, double rt2, double rt3);
45 double I(int i, double egrho);
46 double H(int i, double egrho);
47 double W(int i, double egrho);
48};
49
50}
51
52#endif // ! TPX_NITROGEN_H
53
Pure species representation of nitrogen.
Definition: Nitrogen.h:17
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Nitrogen.cpp:239
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:247
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Nitrogen.cpp:243
double MolWt()
Molecular weight [kg/kmol].
Definition: Nitrogen.cpp:251
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition: Nitrogen.cpp:59
double sp()
Entropy of a single-phase state.
Definition: Nitrogen.cpp:167
double Tcrit()
Critical temperature [K].
Definition: Nitrogen.cpp:231
double Pcrit()
Critical pressure [Pa].
Definition: Nitrogen.cpp:235
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
double up()
Internal energy of a single-phase state.
Definition: Nitrogen.cpp:148