29#include <dune/common/math.hh>
50template <
class Scalar,
51 class H2O_Tabulated = Components::TabulatedComponent<Components::H2O<Scalar>>>
75 static const Scalar
salinity = getParam<Scalar>(
"Brine.Salinity");
164 static const Scalar f[] = {
165 2.63500E-1, 7.48368E-6, 1.44611E-6, -3.80860E-10
169 static const Scalar a[4][3] = {
170 { +9633.6, -4080.0, +286.49 },
171 { +166.58, +68.577, -4.6856 },
172 { -0.90963, -0.36524, +0.249667E-1 },
173 { +0.17965E-2, +0.71924E-3, -0.4900E-4 }
176 const Scalar theta = T - 273.15;
177 const Scalar salSat = f[0] + f[1]*theta + f[2]*theta*theta + f[3]*theta*theta*theta;
187 const Scalar h_NaCl = (3.6710E4*T + 0.5*(6.2770E1)*T*T - ((6.6670E-2)/3)*T*T*T
188 +((2.8000E-5)/4)*(T*T*T*T))/(58.44E3)- 2.045698e+02;
194 for (
int i = 0; i<=3; i++) {
195 for (
int j=0; j<=2; j++) {
196 d_h = d_h + a[i][j] * power(theta, i) * power(m, j);
201 const Scalar delta_h = (4.184/(1E3 + (58.44 * m)))*d_h;
381 for (
int i = 0; i < 5 && abs(
pressure*1e-9) < abs(deltaP); ++i) {
430 const Scalar A = (0.42*power((pow(
salinity, 0.8)-0.17), 2) + 0.045)*pow(T_C, 0.8);
432 assert(mu_brine > 0.0);
433 return mu_brine/1000.0;
448 Scalar S = 5844.3 * m / (1000 + 58.443 *m);
449 Scalar contribNaClFactor = 1.0 - (2.3434e-3 - 7.924e-6*tempC + 3.924e-8*tempC*tempC)*S + (1.06e-5 - 2.0e-8*tempC + 1.2e-10*tempC*tempC)*S*S;
454template <
class Scalar,
class H2O>
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Interface for components that have a gas state.
Interface for components that have a liquid state.
Material properties of pure salt .
Material properties of pure water .
Tabulates all thermodynamic properties of a given untabulated chemical species.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
IsAqueous struct.
Definition: components/base.hh:47
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
A class for the brine fluid properties.
Definition: components/brine.hh:56
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure brine.
Definition: components/brine.hh:419
static const Scalar liquidEnthalpy(Scalar T, Scalar p)
Specific enthalpy of liquid brine .
Definition: components/brine.hh:161
static Scalar molarMass()
The molar mass in of brine. This assumes that the salt is pure NaCl.
Definition: components/brine.hh:83
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of steam in at a given pressure and temperature. We take the value of the H2O gas ...
Definition: components/brine.hh:285
static Scalar tripleTemperature()
Returns the temperature at brine's triple point. Here, it is assumed to be equal to that of pure wat...
Definition: components/brine.hh:110
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of steam in at a given density and temperature.
Definition: components/brine.hh:360
static const Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of liquid brine .
Definition: components/brine.hh:262
static Scalar salinity()
Return the constant salinity.
Definition: components/brine.hh:73
static const Scalar gasHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of water steam .
Definition: components/brine.hh:238
static Scalar criticalPressure()
Returns the critical pressure of brine. Here, it is assumed to be equal to that of pure water....
Definition: components/brine.hh:103
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of gaseous brine . Only water volatile and salt is suppose to stay in the liquid ph...
Definition: components/brine.hh:146
static constexpr Scalar R
The ideal gas constant .
Definition: components/brine.hh:62
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of steam at a given pressure and temperature .
Definition: components/brine.hh:274
static Scalar liquidPressure(Scalar temperature, Scalar density)
The pressure of brine in at a given density and temperature.
Definition: components/brine.hh:370
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of brine in at a given pressure and temperature.
Definition: components/brine.hh:351
static Scalar vaporPressure(Scalar temperature)
The vapor pressure in of pure brine at a given temperature.
Definition: components/brine.hh:129
static Scalar triplePressure()
Returns the pressure at brine's triple point. Here, it is assumed to be equal to that of pure water....
Definition: components/brine.hh:117
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of a brine .
Definition: components/brine.hh:443
static const Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of brine .
Definition: components/brine.hh:220
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of steam.
Definition: components/brine.hh:403
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: components/brine.hh:303
static std::string name()
A human readable name for the brine.
Definition: components/brine.hh:67
static Scalar criticalTemperature()
Returns the critical temperature of brine. Here, it is assumed to be equal to that of pure water....
Definition: components/brine.hh:95
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of steam .
Definition: components/brine.hh:250
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: components/brine.hh:297
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: components/brine.hh:291
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure brine at a given pressure and temperature .
Definition: components/brine.hh:318
Interface for components that have a gas state.
Definition: gas.hh:41
Material properties of pure water .
Definition: h2o.hh:61
Interface for components that have a liquid state.
Definition: liquid.hh:41
A class for the NaCl properties.
Definition: nacl.hh:47
static constexpr Scalar molarMass()
The molar mass of NaCl in .
Definition: nacl.hh:60
Tabulates all thermodynamic properties of a given component.
Definition: tabulatedcomponent.hh:684
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the gas .
Definition: tabulatedcomponent.hh:829
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of gas in at a given density and temperature.
Definition: tabulatedcomponent.hh:923
static Scalar criticalTemperature()
Returns the critical temperature in of the component.
Definition: tabulatedcomponent.hh:775
static const Scalar gasHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the gas .
Definition: tabulatedcomponent.hh:865
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
The thermal conductivity of liquid water .
Definition: tabulatedcomponent.hh:1093
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of gas at a given pressure and temperature .
Definition: tabulatedcomponent.hh:979
static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the liquid .
Definition: tabulatedcomponent.hh:847
static Scalar triplePressure()
Returns the pressure in at the component's triple point.
Definition: tabulatedcomponent.hh:793
static Scalar criticalPressure()
Returns the critical pressure in of the component.
Definition: tabulatedcomponent.hh:781
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of the gas .
Definition: tabulatedcomponent.hh:901
static constexpr Scalar molarMass()
The molar mass in of the component.
Definition: tabulatedcomponent.hh:769
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of gas.
Definition: tabulatedcomponent.hh:1039
static Scalar tripleTemperature()
Returns the temperature in at the component's triple point.
Definition: tabulatedcomponent.hh:787
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: tabulatedcomponent.hh:962
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of liquid at a given pressure and temperature .
Definition: tabulatedcomponent.hh:1009
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of gas in at a given pressure and temperature.
Definition: tabulatedcomponent.hh:999
static Scalar vaporPressure(Scalar T)
The vapor pressure in of the component at a given temperature.
Definition: tabulatedcomponent.hh:802
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: tabulatedcomponent.hh:956
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: tabulatedcomponent.hh:968
A central place for various physical constants occurring in some equations.
Definition: constants.hh:39
Base class for all components Components provide the thermodynamic relations for the liquid,...