25#ifndef DUMUX_SIMPLE_H2O_HH
26#define DUMUX_SIMPLE_H2O_HH
45template <
class Scalar>
60 {
return "SimpleH2O"; }
111 constexpr Scalar n[10] = {
112 0.11670521452767e4, -0.72421316703206e6, -0.17073846940092e2,
113 0.12020824702470e5, -0.32325550322333e7, 0.14915108613530e2,
114 -0.48232657361591e4, 0.40511340542057e6, -0.23855557567849,
118 const Scalar sigma = T + n[8]/(T - n[9]);
120 const Scalar A = (sigma + n[0])*sigma + n[1];
121 const Scalar B = (n[2]*sigma + n[3])*sigma + n[4];
122 const Scalar C = (n[5]*sigma + n[6])*sigma + n[7];
125 const Scalar term = 2.0*C/(sqrt(B*B - 4.0*A*C) - B);
127 return 1e6*term*term*term*term;
139 static const Scalar tRef = getParam<Scalar>(
"SimpleH2O.ReferenceTemperature", 293.15);
152 static const Scalar tRef = getParam<Scalar>(
"SimpleH2O.ReferenceTemperature", 293.15);
283 DUNE_THROW(Dune::InvalidStateException,
284 "The liquid pressure is undefined for incompressible fluids");
360template <
class Scalar>
363template <
class Scalar>
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.
Relations valid for an ideal gas.
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
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:63
Interface for components that have a gas state.
Definition: gas.hh:41
Interface for components that have a liquid state.
Definition: liquid.hh:41
A simple version of pure water.
Definition: simpleh2o.hh:50
static Scalar criticalTemperature()
Returns the critical temperature of water.
Definition: simpleh2o.hh:71
static constexpr bool gasViscosityIsConstant()
Returns true if the gas phase viscostiy is constant.
Definition: simpleh2o.hh:205
static std::string name()
A human readable name for the water.
Definition: simpleh2o.hh:59
static Scalar criticalPressure()
Returns the critical pressure of water.
Definition: simpleh2o.hh:77
static Scalar tripleTemperature()
Returns the temperature at water's triple point.
Definition: simpleh2o.hh:83
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure water in at a given pressure and temperature.
Definition: simpleh2o.hh:272
static constexpr bool liquidViscosityIsConstant()
Returns true if the liquid phase viscostiy is constant.
Definition: simpleh2o.hh:211
static constexpr Scalar molarMass()
The molar mass in of water.
Definition: simpleh2o.hh:65
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: simpleh2o.hh:199
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of steam .
Definition: simpleh2o.hh:168
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of water. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page...
Definition: simpleh2o.hh:329
static Scalar gasHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of water steam . source: http://webbook.nist.gov/cgi/fluid....
Definition: simpleh2o.hh:353
static Scalar gasViscosity(Scalar temperature, Scalar pressure, bool regularize=true)
The dynamic viscosity of steam.
Definition: simpleh2o.hh:294
static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of liquid water .
Definition: simpleh2o.hh:149
static Scalar liquidPressure(Scalar temperature, Scalar density)
The pressure of water in at a given density and temperature.
Definition: simpleh2o.hh:281
static Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the component as a liquid. source: http://webbook....
Definition: simpleh2o.hh:317
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of steam in at a given density and temperature.
Definition: simpleh2o.hh:248
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure water.
Definition: simpleh2o.hh:305
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of water steam .
Definition: simpleh2o.hh:136
static Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of steam. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page...
Definition: simpleh2o.hh:341
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of steam in at a given pressure and temperature.
Definition: simpleh2o.hh:233
static Scalar triplePressure()
Returns the pressure at water's triple point.
Definition: simpleh2o.hh:89
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: simpleh2o.hh:193
static Scalar vaporPressure(Scalar T)
The vapor pressure in of pure water at a given temperature.
Definition: simpleh2o.hh:104
static const Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of liquid water .
Definition: simpleh2o.hh:183
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure water at a given pressure and temperature .
Definition: simpleh2o.hh:260
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: simpleh2o.hh:239
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of steam at a given pressure and temperature.
Definition: simpleh2o.hh:220
A central place for various physical constants occuring in some equations.
Definition: constants.hh:39
Relations valid for an ideal gas.
Definition: idealgas.hh:37
static constexpr Scalar pressure(Scalar temperature, Scalar rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition: idealgas.hh:60
static constexpr Scalar R
The ideal gas constant .
Definition: idealgas.hh:40
static constexpr Scalar density(Scalar avgMolarMass, Scalar temperature, Scalar pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition: idealgas.hh:49
static constexpr Scalar molarDensity(Scalar temperature, Scalar pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: idealgas.hh:70
Base class for all components Components provide the thermodynamic relations for the liquid,...