27 #ifndef OPM_SIMPLE_H2O_HPP
28 #define OPM_SIMPLE_H2O_HPP
53 template <
class Scalar>
56 typedef ::Opm::IdealGas<Scalar>
IdealGas;
58 static const Scalar R;
127 template <
class Evaluation>
135 static const Scalar n[10] = {
136 0.11670521452767e4, -0.72421316703206e6, -0.17073846940092e2,
137 0.12020824702470e5, -0.32325550322333e7, 0.14915108613530e2,
138 -0.48232657361591e4, 0.40511340542057e6, -0.23855557567849,
142 Evaluation sigma = T + n[8]/(T - n[9]);
144 Evaluation A = (sigma + n[0])*sigma + n[1];
145 Evaluation B = (n[2]*sigma + n[3])*sigma + n[4];
146 Evaluation C = (n[5]*sigma + n[6])*sigma + n[7];
148 Evaluation tmp = 2.0*C/(sqrt(B*B - 4.0*A*C) - B);
161 template <
class Evaluation>
164 {
return 1.976e3*temperature + 40.65e3/
molarMass(); }
170 template <
class Evaluation>
181 template <
class Evaluation>
184 {
return 4180*temperature; }
189 template <
class Evaluation>
207 template <
class Evaluation>
209 const Evaluation& pressure)
223 template <
class Evaluation>
225 const Evaluation& pressure)
238 template <
class Evaluation>
251 template <
class Evaluation>
264 template <
class Evaluation>
265 static Evaluation
gasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
277 template <
class Evaluation>
278 static Evaluation
gasPressure(
const Evaluation& temperature,
const Evaluation& density)
290 template <
class Evaluation>
302 template <
class Evaluation>
305 throw std::logic_error(
"The liquid pressure is undefined for incompressible fluids");
315 template <
class Evaluation>
328 template <
class Evaluation>
335 template <
class Scalar>
Abstract base class of a pure chemical species.
Relations valid for an ideal gas.
Abstract base class of a pure chemical species.
Definition: Component.hpp:42
static const Scalar R
The ideal gas constant [J/(mol K)].
Definition: Constants.hpp:45
Relations valid for an ideal gas.
Definition: IdealGas.hpp:38
static const Scalar R
The ideal gas constant .
Definition: IdealGas.hpp:41
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 molarDensity(const Evaluation &temperature, const Evaluation &pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: IdealGas.hpp:67
A simple version of pure water.
Definition: SimpleH2O.hpp:55
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of steam .
Definition: SimpleH2O.hpp:208
static Evaluation gasHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of the component [J/kg] as a gas.
Definition: SimpleH2O.hpp:171
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: SimpleH2O.hpp:76
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition: SimpleH2O.hpp:82
static Evaluation gasThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of steam .
Definition: SimpleH2O.hpp:252
static Scalar tripleTemperature()
Returns the temperature at water's triple point.
Definition: SimpleH2O.hpp:106
static Evaluation liquidPressure(const Evaluation &, const Evaluation &)
The pressure of water in at a given density and temperature.
Definition: SimpleH2O.hpp:303
static Evaluation liquidHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of the component [J/kg] as a liquid.
Definition: SimpleH2O.hpp:190
static Evaluation vaporPressure(const Evaluation &T)
The vapor pressure in of pure water at a given temperature.
Definition: SimpleH2O.hpp:128
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
The density of pure water at a given pressure and temperature .
Definition: SimpleH2O.hpp:291
static Scalar molarMass()
The molar mass in of water.
Definition: SimpleH2O.hpp:88
static Scalar criticalTemperature()
Returns the critical temperature of water.
Definition: SimpleH2O.hpp:94
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &)
Specific enthalpy of liquid water .
Definition: SimpleH2O.hpp:182
static Evaluation gasViscosity(const Evaluation &, const Evaluation &)
The dynamic viscosity of steam.
Definition: SimpleH2O.hpp:316
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition: SimpleH2O.hpp:70
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &)
Specific enthalpy of water steam .
Definition: SimpleH2O.hpp:162
static Evaluation gasPressure(const Evaluation &temperature, const Evaluation &density)
The pressure of steam in at a given density and temperature.
Definition: SimpleH2O.hpp:278
static Evaluation liquidInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of liquid water .
Definition: SimpleH2O.hpp:224
static Evaluation liquidThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of liquid water .
Definition: SimpleH2O.hpp:239
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of steam at a given pressure and temperature.
Definition: SimpleH2O.hpp:265
static Scalar criticalPressure()
Returns the critical pressure of water.
Definition: SimpleH2O.hpp:100
static Scalar triplePressure()
Returns the pressure at water's triple point.
Definition: SimpleH2O.hpp:112
static const char * name()
A human readable name for the water.
Definition: SimpleH2O.hpp:64
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
The dynamic viscosity of pure water.
Definition: SimpleH2O.hpp:329