Cantera  2.1.2
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  char* name();
26  char* formula();
27 
28  //! Pressure. Equation P-2 in Reynolds.
29  double Pp();
30 
31  /*!
32  * internal energy.
33  * See Reynolds eqn (15) section 2
34  * u = (the integral from T to To of co(T)dT) +
35  * sum from i to N ([C(i) - T*Cprime(i)] + uo
36  */
37  double up();
38 
39  //! Entropy. See Reynolds eqn (16) section 2
40  double sp();
41 
42  //! Pressure at Saturation. Equation S-2 in Reynolds.
43  double Psat();
44 
45 private:
46  //! liquid density. Equation D2 in Reynolds.
47  double ldens();
48 
49  /*!
50  * C returns a multiplier in each term of the sum
51  * in P-2, used in conjunction with C in the function Pp
52  * - j is used to represent which of the values in the summation to calculate
53  * - j=0 is the second additive in the formula in reynolds
54  * - j=1 is the third...
55  */
56  double C(int jm, double, double, double, double);
57 
58  //! derivative of C(i)
59  double Cprime(int i, double, double, double);
60 
61  /*!
62  * I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho }
63  * ( see section 2 of Reynolds TPSI )
64  */
65  double I(int i, double, double);
66 
67  /*!
68  * H returns a multiplier in each term of the sum in P-2.
69  * this is used in conjunction with C in the function Pp
70  * this represents the product rho^n
71  * - i=0 is the second additive in the formula in reynolds
72  * - i=1 is the third ...
73  */
74  double H(int i, double egrho);
75 };
76 
77 }
78 
79 #endif // ! TPX_HEPTANE_H
Pure species representation of heptane.
Definition: Heptane.h:11
char * formula()
Chemical formula for the substance.
Definition: Heptane.cpp:270
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:274
double Psat()
Pressure at Saturation. Equation S-2 in Reynolds.
Definition: Heptane.cpp:214
char * name()
Name of the substance.
Definition: Heptane.cpp:266
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