34 #include <opm/common/Exceptions.hpp>
35 #include <opm/common/ErrorMacros.hpp>
46 template <
class Scalar>
56 { OPM_THROW(std::runtime_error,
"Not implemented: Component::liquidIsCompressible()"); }
102 template <
class Evaluation>
103 static Evaluation
gasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
112 template <
class Evaluation>
113 static Evaluation
gasPressure(
const Evaluation& temperature, Scalar density)
137 template <
class Evaluation>
138 static Evaluation
gasViscosity(
const Evaluation& temperature,
const Evaluation& )
141 Scalar Vc = 84.525138;
142 Scalar omega = 0.078;
146 Scalar mu_r4 = 131.3 * dipole / std::sqrt(Vc * Tc);
150 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
151 Evaluation Tstar = 1.2593 * temperature/Tc;
153 1.16145*Opm::pow(Tstar, -0.14874) +
154 0.52487*Opm::exp(- 0.77320*Tstar) +
155 2.16178*Opm::exp(- 2.43787*Tstar);
156 return 40.7851e-7*Fc*Opm::sqrt(M*temperature)/(std::pow(Vc, 2./3)*Omega_v);
160 template <
class Evaluation>
161 static Evaluation simpleGasViscosity(
const Evaluation& temperature,
const Evaluation& )
163 if(temperature < 273.15 || temperature > 660.) {
164 OPM_THROW(NumericalProblem,
165 "Air: Temperature (" << temperature <<
"K) out of range");
167 return 1.496e-6*Opm::pow(temperature, 1.5)/(temperature + 120);
181 template <
class Evaluation>
182 static Evaluation
gasEnthalpy(
const Evaluation& temperature,
const Evaluation& )
184 return 1005*(temperature - 273.15);
198 template <
class Evaluation>
200 const Evaluation& pressure)
218 template <
class Evaluation>
247 template <
class Evaluation>
252 Evaluation phi = temperature/100;
257 +0.201650E+00 * Opm::pow(phi,2.)
258 -0.196930E-01 * Opm::pow(phi,3.)
259 +0.106460E-02 * Opm::pow(phi,4.)
260 -0.303284E-04 * Opm::pow(phi,5.)
261 +0.355861E-06 * Opm::pow(phi,6.);
263 -0.549169E+01 * Opm::pow(phi,-1.)
264 +0.585171E+01* Opm::pow(phi,-2.)
265 -0.372865E+01* Opm::pow(phi,-3.)
266 +0.133981E+01* Opm::pow(phi,-4.)
267 -0.233758E+00* Opm::pow(phi,-5.)
268 +0.125718E-01* Opm::pow(phi,-6.);
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition: Air.hpp:67
static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &)
Specific isobaric heat capacity of pure air.
Definition: Air.hpp:248
Relations valid for an ideal gas.
Abstract base class of a pure chemical species.
Definition: Component.hpp:43
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of .
Definition: Air.hpp:199
static Scalar criticalPressure()
Returns the critical pressure of .
Definition: Air.hpp:93
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: Air.hpp:55
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition: Air.hpp:73
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &)
The dynamic viscosity of at a given pressure and temperature.
Definition: Air.hpp:138
static Scalar criticalTemperature()
Returns the critical temperature of .
Definition: Air.hpp:87
static Evaluation pressure(const Evaluation &temperature, const Evaluation &rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition: IdealGas.hpp:58
static Scalar molarMass()
The molar mass in of .
Definition: Air.hpp:81
A simple class implementing the fluid properties of air.
Definition: Air.hpp:47
static const Scalar R
The ideal gas constant .
Definition: IdealGas.hpp:41
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of at a given pressure and temperature [kg/m^3].
Definition: Air.hpp:103
static Evaluation density(const Evaluation &avgMolarMass, const Evaluation &temperature, const Evaluation &pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas...
Definition: IdealGas.hpp:48
Abstract base class of a pure chemical species.
static Evaluation gasThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of steam .
Definition: Air.hpp:219
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &)
Specific enthalpy of liquid water with 273.15 K as basis.
Definition: Air.hpp:182
Relations valid for an ideal gas.
Definition: IdealGas.hpp:37
static Evaluation gasPressure(const Evaluation &temperature, Scalar density)
The pressure of gaseous at a given density and temperature .
Definition: Air.hpp:113
static const char * name()
A human readable name for the .
Definition: Air.hpp:61