Cantera 2.6.0
Heptane.h
Go to the documentation of this file.
1//! @file Heptane.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_HEPTANE_H
7#define TPX_HEPTANE_H
8
9#include "cantera/tpx/Sub.h"
10
11namespace tpx
12{
13//! Pure species representation of heptane. Values and functions are
14//! from "Thermodynamic Properties in SI" by W.C. Reynolds
15class Heptane : public Substance
16{
17public:
18 Heptane() {
19 m_name = "heptane";
20 m_formula = "C7H16";
21 }
22
23 double MolWt();
24 double Tcrit();
25 double Pcrit();
26 double Vcrit();
27 double Tmin();
28 double Tmax();
29
30 //! Pressure. Equation P-2 in Reynolds.
31 double Pp();
32
33 /*!
34 * internal energy.
35 * See Reynolds eqn (15) section 2
36 * u = (the integral from T to To of co(T)dT) +
37 * sum from i to N ([C(i) - T*Cprime(i)] + uo
38 */
39 double up();
40
41 //! Entropy. See Reynolds eqn (16) section 2
42 double sp();
43
44 //! Pressure at Saturation. Equation S-2 in Reynolds.
45 double Psat();
46
47private:
48 //! liquid density. Equation D2 in Reynolds.
49 double ldens();
50
51 /*!
52 * C returns a multiplier in each term of the sum
53 * in P-2, used in conjunction with C in the function Pp
54 * - j is used to represent which of the values in the summation to calculate
55 * - j=0 is the second additive in the formula in reynolds
56 * - j=1 is the third...
57 */
58 double C(int jm, double, double, double, double);
59
60 //! derivative of C(i)
61 double Cprime(int i, double, double, double);
62
63 /*!
64 * I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho }
65 * ( see section 2 of Reynolds TPSI )
66 */
67 double I(int i, double, double);
68
69 /*!
70 * H returns a multiplier in each term of the sum in P-2.
71 * this is used in conjunction with C in the function Pp
72 * this represents the product rho^n
73 * - i=0 is the second additive in the formula in reynolds
74 * - i=1 is the third ...
75 */
76 double H(int i, double egrho);
77};
78
79}
80
81#endif // ! TPX_HEPTANE_H
Pure species representation of heptane.
Definition: Heptane.h:16
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Heptane.cpp:246
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Heptane.cpp:254
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Heptane.cpp:250
double MolWt()
Molecular weight [kg/kmol].
Definition: Heptane.cpp:258
double I(int i, double, double)
Definition: Heptane.cpp:121
double sp()
Entropy. See Reynolds eqn (16) section 2.
Definition: Heptane.cpp:171
double Tcrit()
Critical temperature [K].
Definition: Heptane.cpp:238
double H(int i, double egrho)
Definition: Heptane.cpp:137
double C(int jm, double, double, double, double)
Definition: Heptane.cpp:79
double Pp()
Pressure. Equation P-2 in Reynolds.
Definition: Heptane.cpp:191
double Pcrit()
Critical pressure [Pa].
Definition: Heptane.cpp:242
double Psat()
Pressure at Saturation. Equation S-2 in Reynolds.
Definition: Heptane.cpp:206
double ldens()
liquid density. Equation D2 in Reynolds.
Definition: Heptane.cpp:221
double up()
Definition: Heptane.cpp:150
double Cprime(int i, double, double, double)
derivative of C(i)
Definition: Heptane.cpp:101