47template <
class Scalar>
50 typedef ::Opm::IdealGas<Scalar>
IdealGas;
59 {
throw std::runtime_error(
"Not implemented: Component::liquidIsCompressible()"); }
64 static std::string_view
name()
105 template <
class Evaluation>
106 static Evaluation
gasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
115 template <
class Evaluation>
116 static Evaluation
gasPressure(
const Evaluation& temperature, Scalar density)
140 template <
class Evaluation>
141 static Evaluation
gasViscosity(
const Evaluation& temperature,
const Evaluation& )
144 Scalar Vc = 84.525138;
145 Scalar omega = 0.078;
149 Scalar mu_r4 = 131.3 * dipole / std::sqrt(Vc * Tc);
153 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
154 Evaluation Tstar = 1.2593 * temperature/Tc;
156 1.16145*pow(Tstar, -0.14874) +
157 0.52487*exp(- 0.77320*Tstar) +
158 2.16178*exp(- 2.43787*Tstar);
159 return 40.7851e-7*Fc*sqrt(M*temperature)/(std::pow(Vc, 2./3)*Omega_v);
163 template <
class Evaluation>
164 static Evaluation simpleGasViscosity(
const Evaluation& temperature,
const Evaluation& )
166 if(temperature < 273.15 || temperature > 660.) {
167 throw NumericalProblem(
"Air: Temperature "+std::to_string(scalarValue(temperature))+
"K out of range");
169 return 1.496e-6*pow(temperature, 1.5)/(temperature + 120);
183 template <
class Evaluation>
184 static Evaluation
gasEnthalpy(
const Evaluation& temperature,
const Evaluation& )
186 return 1005.0*temperature;
200 template <
class Evaluation>
202 const Evaluation& pressure)
220 template <
class Evaluation>
249 template <
class Evaluation>
Abstract base class of a pure chemical species.
Provides the OPM specific exception classes.
Relations valid for an ideal gas.
A simple class implementing the fluid properties of air.
Definition Air.hpp:49
static Evaluation gasThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of steam .
Definition Air.hpp:221
static Evaluation gasHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of pure air.
Definition Air.hpp:250
static Scalar criticalPressure()
Returns the critical pressure of .
Definition Air.hpp:96
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of at a given pressure and temperature [kg/m^3].
Definition Air.hpp:106
static Evaluation gasPressure(const Evaluation &temperature, Scalar density)
The pressure of gaseous at a given density and temperature .
Definition Air.hpp:116
static Scalar molarMass()
The molar mass in of .
Definition Air.hpp:84
static std::string_view name()
A human readable name for the .
Definition Air.hpp:64
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of .
Definition Air.hpp:201
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition Air.hpp:70
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition Air.hpp:76
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Air.hpp:58
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &)
Specific enthalpy of liquid water with 273.15 K as basis.
Definition Air.hpp:184
static Scalar criticalTemperature()
Returns the critical temperature of .
Definition Air.hpp:90
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &)
The dynamic viscosity of at a given pressure and temperature.
Definition Air.hpp:141
Abstract base class of a pure chemical species.
Definition Component.hpp:44
Relations valid for an ideal gas.
Definition IdealGas.hpp:39
static OPM_HOST_DEVICE Evaluation pressure(const Evaluation &temperature, const Evaluation &rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition IdealGas.hpp:59
static OPM_HOST_DEVICE 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:49
static constexpr Scalar R
The ideal gas constant .
Definition IdealGas.hpp:42
Definition Exceptions.hpp:40
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30