Cantera  2.1.2
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  Substance() {
17  m_name="CarbonDioxide";
18  m_formula="CO2";
19  }
20 
21  double MolWt();
22  double Tcrit();
23  double Pcrit();
24  double Vcrit();
25  double Tmin();
26  double Tmax();
27  char* name();
28  char* formula();
29 
30  //! Pressure. Equation P-3 in Reynolds. P(rho, T).
31  double Pp();
32 
33  /*!
34  * internal energy. See Reynolds eqn (15) section 2
35  *
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 
47 private:
48  //! Liquid density. Equation D2 in Reynolds.
49  double ldens();
50 
51  /*!
52  * C returns a multiplier in each term of the sum in P-3, used in
53  * 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  * (this part does not include the multiplier rho^n)
58  */
59  double C(int jm, double, double, double, double);
60 
61  //! Derivative of C(i)
62  double Cprime(int i, double, double, double);
63 
64  /*!
65  * I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho }
66  * ( see section 2 of Reynolds TPSI )
67  */
68  double I(int i, double, double);
69 
70  /*!
71  * H returns a multiplier in each term of the sum in P-3. This is used in
72  * conjunction with C in the function Pp this represents the product
73  * rho^n
74  * - i=0 is the second additive in the formula in reynolds
75  * - i=1 is the third ...
76  */
77  double H(int i, double egrho);
78 };
79 
80 }
81 
82 #endif // ! TPX_CARBONDIOXIDE_H
char * formula()
Chemical formula for the substance.
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].
char * name()
Name of the substance.
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