Cantera 2.6.0

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