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