44 template <
class Scalar,
class H2O>
83 const Scalar M2 = 58e-3;
85 return M1*M2/(M2 + X2*(M1 - M2));
115 template <
class Evaluation>
122 template <
class Evaluation>
124 const Evaluation& pressure)
135 template <
class Evaluation>
137 const Evaluation& pressure)
140 static const Scalar f[] = {
141 2.63500e-1, 7.48368e-6, 1.44611e-6, -3.80860e-10
145 static const Scalar a[4][3] = {
146 { -9633.6, -4080.0, +286.49 },
147 { +166.58, +68.577, -4.6856 },
148 { -0.90963, -0.36524, +0.249667e-1 },
149 { +0.17965e-2, +0.71924e-3, -0.4900e-4 }
152 const Evaluation& theta = temperature - 273.15;
155 const Evaluation& S_lSAT =
158 + f[2]*Opm::pow(theta, 2)
159 + f[3]*Opm::pow(theta, 3);
168 const Evaluation& h_NaCl =
169 (3.6710e4*temperature
170 + (6.2770e1/2)*temperature*temperature
171 - (6.6670e-2/3)*temperature*temperature*temperature
172 + (2.8000e-5/4)*Opm::pow(temperature, 4.0))/58.44e3
175 const Evaluation& m = S/(1-S)/58.44e-3;
178 for (
int i = 0; i<=3; ++i) {
179 for (
int j = 0; j <= 2; ++j) {
180 d_h += a[i][j] * Opm::pow(theta, i) * Opm::pow(m, j);
184 const Evaluation& delta_h = 4.184/(1e3 + (58.44 * m))*d_h;
187 const Evaluation& h_ls = (1-S)*hw + S*h_NaCl + S*delta_h;
195 template <
class Evaluation>
197 const Evaluation& pressure)
199 Scalar eps = Opm::scalarValue(temperature)*1e-8;
206 template <
class Evaluation>
208 const Evaluation& pressure)
214 template <
class Evaluation>
216 const Evaluation& pressure)
226 template <
class Evaluation>
228 const Evaluation& pressure)
238 template <
class Evaluation>
239 static Evaluation
gasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
249 template <
class Evaluation>
250 static Evaluation
liquidDensity(
const Evaluation& temperature,
const Evaluation& pressure)
252 Evaluation tempC = temperature - 273.15;
253 Evaluation pMPa = pressure/1.0E6;
275 template <
class Evaluation>
276 static Evaluation
gasPressure(
const Evaluation& temperature,
const Evaluation& density)
282 template <
class Evaluation>
283 static Evaluation
liquidPressure(
const Evaluation& temperature,
const Evaluation& density)
289 Scalar eps = Opm::scalarValue(pressure)*1e-7;
291 Evaluation deltaP = pressure*2;
294 && std::abs(Opm::scalarValue(pressure)*1e-9) < std::abs(Opm::scalarValue(deltaP));
297 const Evaluation& f =
liquidDensity(temperature, pressure) - density;
299 Evaluation df_dp =
liquidDensity(temperature, pressure + eps);
314 template <
class Evaluation>
315 static Evaluation
gasViscosity(
const Evaluation& temperature,
const Evaluation& pressure)
326 template <
class Evaluation>
329 Evaluation T_C = temperature - 273.15;
330 if(temperature <= 275.)
333 Evaluation A = (0.42*std::pow((std::pow(
salinity, 0.8)-0.17), 2) + 0.045)*Opm::pow(T_C, 0.8);
336 return mu_brine/1000.0;
343 template <
class Scalar,
class H2O>
344 Scalar Brine<Scalar, H2O>::salinity = 0.1;
static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of pure water in at a given pressure and temperature.
Definition: H2O.hpp:678
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition: H2O.hpp:618
static const Scalar tripleTemperature()
Returns the temperature at water's triple point.
Definition: H2O.hpp:110
static Evaluation liquidHeatCapacity(const Evaluation &temperature, const Evaluation &pressure)
Specific isobaric heat capacity of liquid water .
Definition: Brine.hpp:196
static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of the liquid component at a given pressure in and temperature in . ...
Definition: Brine.hpp:250
Abstract base class of a pure chemical species.
Definition: Component.hpp:43
static Evaluation liquidInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of liquid water .
Definition: Brine.hpp:227
static Scalar molarMass()
The molar mass in of the component.
Definition: Brine.hpp:80
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: H2O.hpp:537
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &pressure)
The dynamic viscosity of steam.
Definition: H2O.hpp:779
static Evaluation gasInternalEnergy(const Evaluation &temperature, const Evaluation &pressure)
Specific internal energy of steam and water vapor .
Definition: Brine.hpp:215
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition: Brine.hpp:60
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition: H2O.hpp:531
static Scalar triplePressure()
Returns the pressure at water's triple point.
Definition: Brine.hpp:109
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of steam in at a given pressure and temperature.
Definition: H2O.hpp:553
static Scalar tripleTemperature()
Returns the temperature at water's triple point.
Definition: Brine.hpp:103
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of liquid water .
Definition: H2O.hpp:228
A class for the brine fluid properties.
Definition: Brine.hpp:45
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: Brine.hpp:72
static Scalar salinity
The mass fraction of salt assumed to be in the brine.
Definition: Brine.hpp:49
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &pressure)
The dynamic viscosity of steam.
Definition: Brine.hpp:315
static Evaluation liquidPressure(const Evaluation &temperature, const Evaluation &density)
The pressure of liquid water in at a given density and temperature.
Definition: Brine.hpp:283
Abstract base class of a pure chemical species.
static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &pressure)
Specific isobaric heat capacity of water steam .
Definition: Brine.hpp:207
static const Scalar criticalTemperature()
Returns the critical temperature of water.
Definition: H2O.hpp:92
static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &pressure)
Specific isobaric heat capacity of water steam .
Definition: H2O.hpp:270
static Evaluation vaporPressure(const Evaluation &T)
The vapor pressure in of pure water at a given temperature.
Definition: Brine.hpp:116
static Evaluation vaporPressure(Evaluation temperature)
The vapor pressure in of pure water at a given temperature.
Definition: H2O.hpp:132
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of water steam .
Definition: H2O.hpp:177
static Evaluation gasPressure(const Evaluation &temperature, const Evaluation &density)
The pressure of steam in at a given density and temperature.
Definition: Brine.hpp:276
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in gas.
Definition: Brine.hpp:123
static Scalar criticalPressure()
Returns the critical pressure of water.
Definition: Brine.hpp:97
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition: Brine.hpp:66
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in liquid.
Definition: Brine.hpp:136
static Evaluation gasPressure(const Evaluation &temperature, Scalar density)
The pressure of steam in at a given density and temperature.
Definition: H2O.hpp:634
static const Scalar molarMass()
The molar mass in of water.
Definition: H2O.hpp:80
static const Scalar triplePressure()
Returns the pressure at water's triple point.
Definition: H2O.hpp:116
static const Scalar criticalPressure()
Returns the critical pressure of water.
Definition: H2O.hpp:98
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of steam in at a given pressure and temperature.
Definition: Brine.hpp:239
static const char * name()
A human readable name for the component.
Definition: Brine.hpp:54
static Scalar criticalTemperature()
Returns the critical temperature of water.
Definition: Brine.hpp:91
static Evaluation liquidViscosity(const Evaluation &temperature, const Evaluation &)
The dynamic viscosity of pure water.
Definition: Brine.hpp:327