Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CarbonDioxide.h
Go to the documentation of this file.
1 //! @file CarbonDioxide.h
2 #ifndef TPX_CARBONDIOXIDE_H
3 #define TPX_CARBONDIOXIDE_H
4 
5 #include "cantera/tpx/Sub.h"
6 
7 namespace tpx
8 {
9 
10 //! Pure species representation of carbon dioxide. Values and functions are
11 //! from "Thermodynamic Properties in SI" by W.C. Reynolds
12 class CarbonDioxide : public Substance
13 {
14 public:
15  CarbonDioxide() {
16  m_name="CarbonDioxide";
17  m_formula="CO2";
18  }
19 
20  double MolWt();
21  double Tcrit();
22  double Pcrit();
23  double Vcrit();
24  double Tmin();
25  double Tmax();
26 
27  //! Pressure. Equation P-3 in Reynolds. P(rho, T).
28  double Pp();
29 
30  /*!
31  * internal energy. See Reynolds eqn (15) section 2
32  *
33  * u = (the integral from T to To of co(T)dT) +
34  * sum from i to N ([C(i) - T*Cprime(i)] + uo
35  */
36  double up();
37 
38  //! entropy. See Reynolds eqn (16) section 2
39  double sp();
40 
41  //! Pressure at Saturation. Equation S-2 in Reynolds.
42  double Psat();
43 
44 private:
45  //! Liquid density. Equation D2 in Reynolds.
46  double ldens();
47 
48  /*!
49  * C returns a multiplier in each term of the sum in P-3, used in
50  * conjunction with C in the function Pp
51  * - j is used to represent which of the values in the summation to calculate
52  * - j=0 is the second additive in the formula in reynolds
53  * - j=1 is the third...
54  * (this part does not include the multiplier rho^n)
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-3. This is used in
69  * conjunction with C in the function Pp this represents the product
70  * 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_CARBONDIOXIDE_H
double Psat()
Pressure at Saturation. Equation S-2 in Reynolds.
double ldens()
Liquid density. Equation D2 in Reynolds.
double H(int i, double egrho)
double Vcrit()
Critical specific volume [m^3/kg].
double Pcrit()
Critical pressure [Pa].
double Cprime(int i, double, double, double)
Derivative of C(i)
double Tmin()
Minimum temperature for which the equation of state is valid.
double sp()
entropy. See Reynolds eqn (16) section 2
double Tcrit()
Critical temperature [K].
double MolWt()
Molecular weight [kg/kmol].
double Pp()
Pressure. Equation P-3 in Reynolds. P(rho, T).
double I(int i, double, double)
double Tmax()
Maximum temperature for which the equation of state is valid.
double C(int jm, double, double, double, double)
Pure species representation of carbon dioxide.
Definition: CarbonDioxide.h:12