51template <
class Scalar>
59 static const Scalar brineSalinity;
77 {
return 273.15 + 30.95; }
89 {
return 273.15 - 56.35; }
133 template <
class Evaluation>
136 static constexpr Scalar a[4] =
137 { -7.0602087, 1.9391218, -1.6463597, -3.2995634 };
138 static constexpr Scalar t[4] =
139 { 1.0, 1.5, 2.0, 4.0 };
142 Evaluation exponent = 0;
144 for (
int i = 0; i < 4; ++i)
145 exponent += a[i]*pow(1 - Tred, t[i]);
146 exponent *= 1.0/Tred;
167 template <
class Evaluation>
169 const Evaluation& pressure,
170 bool extrapolate =
false)
172 return tabulatedEnthalpy.
eval(temperature, pressure, extrapolate);
178 template <
class Evaluation>
180 const Evaluation& pressure,
181 bool extrapolate =
false)
183 const Evaluation h =
gasEnthalpy(temperature, pressure, extrapolate);
184 const Evaluation rho =
gasDensity(temperature, pressure, extrapolate);
186 return h - (pressure / rho);
192 template <
class Evaluation>
194 const Evaluation& pressure,
195 bool extrapolate =
false)
197 return tabulatedDensity.
eval(temperature, pressure, extrapolate);
206 template <
class Evaluation>
208 const Evaluation& pressure,
209 bool extrapolate =
false)
211 constexpr Scalar a0 = 0.235156;
212 constexpr Scalar a1 = -0.491266;
213 constexpr Scalar a2 = 5.211155e-2;
214 constexpr Scalar a3 = 5.347906e-2;
215 constexpr Scalar a4 = -1.537102e-2;
217 constexpr Scalar d11 = 0.4071119e-2;
218 constexpr Scalar d21 = 0.7198037e-4;
219 constexpr Scalar d64 = 0.2411697e-16;
220 constexpr Scalar d81 = 0.2971072e-22;
221 constexpr Scalar d82 = -0.1627888e-22;
223 constexpr Scalar ESP = 251.196;
225 if(temperature < 275.)
227 Evaluation TStar = temperature/ESP;
230 const Evaluation logTStar = log(TStar);
231 Evaluation SigmaStar = exp(a0 + logTStar*(a1 + logTStar*(a2 + logTStar*(a3 + logTStar*a4))));
233 Evaluation mu0 = 1.00697*sqrt(temperature) / SigmaStar;
235 const Evaluation rho =
gasDensity(temperature, pressure, extrapolate);
241 + d64*pow(rho, 6.0)/(TStar*TStar*TStar)
243 + d82*pow(rho, 8.0)/TStar;
245 return (mu0 + dmu)/1.0e6;
258 template <
class Evaluation>
259 static Evaluation
gasHeatCapacity(
const Evaluation& temperature,
const Evaluation& pressure)
261 constexpr Scalar eps = 1e-6;
266 const Evaluation h1 =
gasEnthalpy(temperature - eps, pressure);
267 const Evaluation h2 =
gasEnthalpy(temperature + eps, pressure);
269 return (h2 - h1) / (2*eps) ;
A class for the CO2 fluid properties.
Definition: CO2.hpp:53
static Scalar criticalTemperature()
Returns the critical temperature [K] of CO2.
Definition: CO2.hpp:76
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition: CO2.hpp:155
static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &pressure)
Specific isobaric heat capacity of the component [J/kg] as a liquid.
Definition: CO2.hpp:259
static Scalar criticalPressure()
Returns the critical pressure [Pa] of CO2.
Definition: CO2.hpp:82
static Evaluation gasViscosity(Evaluation temperature, const Evaluation &pressure, bool extrapolate=false)
The dynamic viscosity [Pa s] of CO2.
Definition: CO2.hpp:207
static Evaluation vaporPressure(const Evaluation &T)
Returns the pressure [Pa] at CO2's triple point.
Definition: CO2.hpp:134
static Scalar triplePressure()
Returns the pressure [Pa] at CO2's triple point.
Definition: CO2.hpp:94
static Scalar tripleTemperature()
Returns the temperature [K]at CO2's triple point.
Definition: CO2.hpp:88
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
Specific enthalpy of gaseous CO2 [J/kg].
Definition: CO2.hpp:168
static const char * name()
A human readable name for the CO2.
Definition: CO2.hpp:64
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition: CO2.hpp:161
static Scalar molarMass()
The mass in [kg] of one mole of CO2.
Definition: CO2.hpp:70
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
Specific internal energy of CO2 [J/kg].
Definition: CO2.hpp:179
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
The density of CO2 at a given pressure and temperature [kg/m^3].
Definition: CO2.hpp:193
Abstract base class of a pure chemical species.
Definition: Component.hpp:42
A central place for various physical constants occuring in some equations.
Definition: Constants.hpp:41
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30