Cantera  3.1.0
Loading...
Searching...
No Matches
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 Reynolds @cite reynolds1979.
16class methane : public Substance
17{
18public:
19 methane() {
20 m_name = "methane";
21 m_formula = "CH4";
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 S3 from Reynolds TPSI.
36 double Psat() override;
37
38protected:
39 //! Liquid density. Equation D3 from Reynolds TPSI.
40 double ldens() override;
41
42private:
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#endif // ! METHANE_H
Base class from which all pure substances are derived.
Definition Sub.h:37
Pure species representation of methane.
Definition Methane.h:17
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Methane.cpp:235
double up() override
Internal energy of a single-phase state.
Definition Methane.cpp:140
double ldens() override
Liquid density. Equation D3 from Reynolds TPSI.
Definition Methane.cpp:201
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Methane.cpp:231
double Tcrit() override
Critical temperature [K].
Definition Methane.cpp:219
double sp() override
Entropy of a single-phase state.
Definition Methane.cpp:157
double MolWt() override
Molecular weight [kg/kmol].
Definition Methane.cpp:239
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Methane.cpp:227
double Pcrit() override
Critical pressure [Pa].
Definition Methane.cpp:223
double Psat() override
Saturation pressure. Equation S3 from Reynolds TPSI.
Definition Methane.cpp:188