| Cantera 3.0.0

Loading...
Searching...
No Matches
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
Sub.h
tpx::Substance
Base class from which all pure substances are derived.
Definition Sub.h:37
tpx::nitrogen
Pure species representation of nitrogen.
Definition Nitrogen.h:17
tpx::nitrogen::Tmax
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Nitrogen.cpp:247
tpx::nitrogen::up
double up() override
Internal energy of a single-phase state.
Definition Nitrogen.cpp:148
tpx::nitrogen::ldens
double ldens() override
Liquid density. Equation D2 from Reynolds TPSI.
Definition Nitrogen.cpp:218
tpx::nitrogen::C
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition Nitrogen.cpp:59
tpx::nitrogen::Tmin
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Nitrogen.cpp:243
tpx::nitrogen::Tcrit
double Tcrit() override
Critical temperature [K].
Definition Nitrogen.cpp:231
tpx::nitrogen::sp
double sp() override
Entropy of a single-phase state.
Definition Nitrogen.cpp:167
tpx::nitrogen::MolWt
double MolWt() override
Molecular weight [kg/kmol].
Definition Nitrogen.cpp:251
tpx::nitrogen::Vcrit
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Nitrogen.cpp:239
tpx::nitrogen::Pcrit
double Pcrit() override
Critical pressure [Pa].
Definition Nitrogen.cpp:235
tpx::nitrogen::Psat
double Psat() override
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition Nitrogen.cpp:199