51template <
class Scalar,
class CO2Tables>
59 static bool warningThrown;
78 {
return 273.15 + 30.95; }
90 {
return 273.15 - 56.35; }
102 {
return CO2Tables::tabulatedEnthalpy.minPress(); }
108 {
return CO2Tables::tabulatedEnthalpy.maxPress(); }
114 {
return CO2Tables::tabulatedEnthalpy.minTemp(); }
120 {
return CO2Tables::tabulatedEnthalpy.maxTemp(); }
138 static const Scalar a[4] =
139 { -7.0602087, 1.9391218, -1.6463597, -3.2995634 };
140 static const Scalar t[4] =
141 { 1.0, 1.5, 2.0, 4.0 };
148 for (
int i = 0; i < 4; ++i)
149 exponent += a[i]*pow(1 - Tred, t[i]);
150 exponent *= 1.0/Tred;
166 Dune::dwarn <<
"Subcritical values: Be aware to use "
167 <<
"Tables with sufficient resolution!"<< std::endl;
184 Dune::dwarn <<
"Subcritical values: Be aware to use "
185 <<
"Tables with sufficient resolution!"<< std::endl;
229 Dune::dwarn <<
"Subcritical values: Be aware to use "
230 <<
"Tables with sufficient resolution!"<< std::endl;
255 Dune::dwarn <<
"Subcritical values: Be aware to use "
256 <<
"Tables with sufficient resolution!"<< std::endl;
328 static const double a0 = 0.235156;
329 static const double a1 = -0.491266;
330 static const double a2 = 5.211155E-2;
331 static const double a3 = 5.347906E-2;
332 static const double a4 = -1.537102E-2;
334 static const double d11 = 0.4071119E-2;
335 static const double d21 = 0.7198037E-4;
336 static const double d64 = 0.2411697E-16;
337 static const double d81 = 0.2971072E-22;
338 static const double d82 = -0.1627888E-22;
340 static const double ESP = 251.196;
342 double mu0, SigmaStar, TStar;
349 Dune::dgrave <<
"Temperature below 275K in viscosity function:"
350 <<
"Regularizing tempereature to 275K. " << std::endl;
360 SigmaStar = exp(a0 + a1*log(TStar)
361 + a2*log(TStar)*log(TStar)
362 + a3*log(TStar)*log(TStar)*log(TStar)
363 + a4*log(TStar)*log(TStar)*log(TStar)*log(TStar) );
370 dmu = d11*rho + d21*rho*rho + d64*pow(rho,6)/(TStar*TStar*TStar)
371 + d81*pow(rho,8) + d82*pow(rho,8)/TStar;
373 visco_CO2 = (mu0 + dmu)/1.0E6;
404template <
class Scalar,
class CO2Tables>
407template <
class Scalar,
class CO2Tables>
408bool CO2<Scalar, CO2Tables>::warningThrown =
false;
Some exceptions thrown in DuMux
Interface for components that have a gas state.
Interface for components that have a liquid state.
A central place for various physical constants occuring in some equations.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Exception thrown if a fixable numerical problem occurs.
Definition: exceptions.hh:39
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:63
A class for the CO2 fluid properties.
Definition: co2.hh:56
static Scalar maxTabulatedTemperature()
Returns the maximal tabulated temperature of the used table.
Definition: co2.hh:119
static Scalar minTabulatedPressure()
Returns the minimal tabulated pressure of the used table.
Definition: co2.hh:101
static Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of CO2 .
Definition: co2.hh:197
static Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of CO2.
Definition: co2.hh:398
static Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of liquid CO2 .
Definition: co2.hh:179
static Scalar vaporPressure(Scalar T)
The vapor pressure in of pure CO2 at a given temperature.
Definition: co2.hh:136
static Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of liquid CO2 .
Definition: co2.hh:211
static constexpr Scalar molarMass()
The mass in of one mole of CO2.
Definition: co2.hh:71
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of steam in at a given density and temperature.
Definition: co2.hh:278
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of CO2 gas in at a given pressure and temperature.
Definition: co2.hh:243
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of CO2 at a given pressure and temperature .
Definition: co2.hh:225
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: co2.hh:125
static Scalar minTabulatedTemperature()
Returns the minimal tabulated temperature of the used table.
Definition: co2.hh:113
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure CO2 at a given pressure and temperature .
Definition: co2.hh:251
static Scalar criticalTemperature()
Returns the critical temperature of CO2.
Definition: co2.hh:77
static Scalar liquidPressure(Scalar temperature, Scalar density)
The pressure of liquid water in at a given density and temperature.
Definition: co2.hh:290
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure CO2.
Definition: co2.hh:383
static std::string name()
A human readable name for the CO2.
Definition: co2.hh:65
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of CO2. Equations given in: - Vesovic et al., 1990.
Definition: co2.hh:326
static Scalar criticalPressure()
Returns the critical pressure of CO2.
Definition: co2.hh:83
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of CO2 in at a given pressure and temperature.
Definition: co2.hh:269
static Scalar tripleTemperature()
Returns the temperature at CO2's triple point.
Definition: co2.hh:89
static Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the component as a liquid. USE WITH CAUTION! Exploits enthalpy fu...
Definition: co2.hh:303
static Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of gaseous CO2 .
Definition: co2.hh:161
static Scalar maxTabulatedPressure()
Returns the maximal tabulated pressure of the used table.
Definition: co2.hh:107
static Scalar triplePressure()
Returns the pressure at CO2's triple point.
Definition: co2.hh:95
Interface for components that have a gas state.
Definition: gas.hh:41
Interface for components that have a liquid state.
Definition: liquid.hh:41
A central place for various physical constants occuring in some equations.
Definition: constants.hh:39
Base class for all components Components provide the thermodynamic relations for the liquid,...