31#ifndef OPM_SIMPLE_H2_HPP
32#define OPM_SIMPLE_H2_HPP
50template <
class Scalar>
66 {
return 2.01588e-3; }
114 template <
class Evaluation>
124 const Scalar A = -7.76451;
125 const Scalar B = 1.45838;
126 const Scalar C = -2.77580;
128 return 1e5 * exp(A - B/(temperature + C));
137 template <
class Evaluation>
138 static Evaluation
gasDensity(Evaluation temperature, Evaluation pressure)
150 template <
class Evaluation>
172 template <
class Evaluation>
173 static Evaluation
gasPressure(Evaluation temperature, Evaluation density)
182 template <
class Evaluation>
184 const Evaluation& pressure)
186 const Evaluation& h =
gasEnthalpy(temperature, pressure);
187 const Evaluation& rho =
gasDensity(temperature, pressure);
189 return h - (pressure / rho);
205 template <
class Evaluation>
206 static Evaluation
gasViscosity(
const Evaluation& temperature,
const Evaluation& )
209 const Scalar Vc = 64.2;
210 const Scalar omega = -0.217;
212 const Scalar dipole = 0.0;
214 Scalar mu_r4 = 131.3 * dipole / std::sqrt(Vc * Tc);
218 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
219 const Evaluation& Tstar = 1.2593 * temperature/Tc;
220 const Evaluation& Omega_v =
221 1.16145*pow(Tstar, -0.14874) +
222 0.52487*exp(- 0.77320*Tstar) +
223 2.16178*exp(- 2.43787*Tstar);
224 const Evaluation& mu = 40.785*Fc*sqrt(M*temperature)/(std::pow(Vc, 2./3)*Omega_v);
236 template <
class Evaluation>
254 template <
class Evaluation>
259 const Scalar cpVapA = 27.14;
260 const Scalar cpVapB = 9.273e-3;
261 const Scalar cpVapC = -1.381e-5;
262 const Scalar cpVapD = 7.645e-9;
Abstract base class of a pure chemical species.
Relations valid for an ideal gas.
A number of commonly used algebraic functions for the localized OPM automatic differentiation (AD) fr...
Abstract base class of a pure chemical species.
Definition Component.hpp:44
Relations valid for an ideal gas.
Definition IdealGas.hpp:38
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 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
static Evaluation molarDensity(const Evaluation &temperature, const Evaluation &pressure)
The molar density of the gas , depending on pressure and temperature.
Definition IdealGas.hpp:67
Properties of pure molecular hydrogen .
Definition SimpleH2.hpp:52
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of H2 [J/kg].
Definition SimpleH2.hpp:183
static const Evaluation gasEnthalpy(Evaluation temperature, Evaluation pressure)
Specific enthalpy of pure hydrogen gas.
Definition SimpleH2.hpp:237
static Evaluation gasMolarDensity(Evaluation temperature, Evaluation pressure)
The molar density of in , depending on pressure and temperature.
Definition SimpleH2.hpp:151
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &)
The dynamic viscosity of at a given pressure and temperature.
Definition SimpleH2.hpp:206
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition SimpleH2.hpp:163
static Evaluation gasDensity(Evaluation temperature, Evaluation pressure)
The density of at a given pressure and temperature.
Definition SimpleH2.hpp:138
static constexpr Scalar molarMass()
The molar mass in of molecular hydrogen.
Definition SimpleH2.hpp:65
static Scalar criticalVolume()
Critical volume of [m2/kmol].
Definition SimpleH2.hpp:95
static std::string name()
A human readable name for the .
Definition SimpleH2.hpp:59
static Scalar acentricFactor()
Acentric factor of .
Definition SimpleH2.hpp:100
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition SimpleH2.hpp:157
static Scalar criticalPressure()
Returns the critical pressure of molecular hydrogen.
Definition SimpleH2.hpp:77
static const Evaluation gasHeatCapacity(Evaluation T, Evaluation pressure)
Specific isobaric heat capacity of pure hydrogen gas.
Definition SimpleH2.hpp:255
static Evaluation vaporPressure(Evaluation temperature)
The vapor pressure in of pure molecular hydrogen at a given temperature.
Definition SimpleH2.hpp:115
static Scalar tripleTemperature()
Returns the temperature at molecular hydrogen's triple point.
Definition SimpleH2.hpp:89
static Scalar criticalTemperature()
Returns the critical temperature of molecular hydrogen.
Definition SimpleH2.hpp:71
static Scalar criticalDensity()
Returns the critical density of molecular hydrogen.
Definition SimpleH2.hpp:83
static Evaluation gasPressure(Evaluation temperature, Evaluation density)
The pressure of gaseous in at a given density and temperature.
Definition SimpleH2.hpp:173
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30