Cantera 2.6.0
Methane.h
Go to the documentation of this file.
1//! @file Methane.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_METHANE_H
7#define TPX_METHANE_H
8
9#include "cantera/tpx/Sub.h"
10
11namespace tpx
12{
13
14//! Pure species representation of methane. Values and functions are
15//! from "Thermodynamic Properties in SI" by W.C. Reynolds
16class methane : public Substance
17{
18public:
19 methane() {
20 m_name = "methane";
21 m_formula = "CH4";
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 S3 from Reynolds TPSI.
36 double Psat();
37
38private:
39 //! Liquid density. Equation D3 from Reynolds TPSI.
40 double ldens();
41
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#endif // ! METHANE_H
Pure species representation of methane.
Definition: Methane.h:17
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Methane.cpp:228
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Methane.cpp:236
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Methane.cpp:232
double MolWt()
Molecular weight [kg/kmol].
Definition: Methane.cpp:240
double sp()
Entropy of a single-phase state.
Definition: Methane.cpp:158
double Tcrit()
Critical temperature [K].
Definition: Methane.cpp:220
double Pcrit()
Critical pressure [Pa].
Definition: Methane.cpp:224
double Psat()
Saturation pressure. Equation S3 from Reynolds TPSI.
Definition: Methane.cpp:189
double ldens()
Liquid density. Equation D3 from Reynolds TPSI.
Definition: Methane.cpp:202
double up()
Internal energy of a single-phase state.
Definition: Methane.cpp:141