My Project
Loading...
Searching...
No Matches
Opm::BrineDynamic< Scalar, H2O > Class Template Reference

A class for the brine fluid properties. More...

#include <BrineDynamic.hpp>

Inheritance diagram for Opm::BrineDynamic< Scalar, H2O >:
Opm::Component< Scalar, BrineDynamic< Scalar, H2O > >

Static Public Member Functions

static std::string_view name ()
 A human readable name for the component.
 
static OPM_HOST_DEVICE bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal.
 
static OPM_HOST_DEVICE bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible.
 
static OPM_HOST_DEVICE bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation molarMass (const Evaluation &salinity)
 The molar mass in $\mathrm{[kg]}$ of the component.
 
static OPM_HOST_DEVICE Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of water.
 
static OPM_HOST_DEVICE Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of water.
 
static OPM_HOST_DEVICE Scalar criticalVolume ()
 Returns the critical volume $\mathrm{[m^3/kmol]}$ of water.
 
static OPM_HOST_DEVICE Scalar acentricFactor ()
 
static OPM_HOST_DEVICE Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at water's triple point.
 
static OPM_HOST_DEVICE Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at water's triple point.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation vaporPressure (const Evaluation &T)
 The vapor pressure in $\mathrm{[Pa]}$ of pure water at a given temperature.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &pressure, const Evaluation &salinity)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of liquid water $\mathrm{[J/kg]}$.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of water steam $\mathrm{[J/kg]}$.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of steam and water vapor $\mathrm{[J/kg]}$.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of liquid water $\mathrm{[J/kg]}$.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density of steam in $\mathrm{[kg/m^3]}$ at a given pressure and temperature.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidDensity (const Evaluation &temperature, const Evaluation &pressure, const Evaluation &salinity, bool extrapolate=false)
 The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasPressure (const Evaluation &temperature, const Evaluation &density)
 The pressure of steam in $\mathrm{[Pa]}$ at a given density and temperature.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidPressure (const Evaluation &temperature, const Evaluation &density)
 The pressure of liquid water in $\mathrm{[Pa]}$ at a given density and temperature.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation gasViscosity (const Evaluation &temperature, const Evaluation &pressure)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of steam.
 
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation liquidViscosity (const Evaluation &temperature, const Evaluation &, const Evaluation &salinity)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water.
 
- Static Public Member Functions inherited from Opm::Component< Scalar, BrineDynamic< Scalar, H2O > >
static void init (Scalar, Scalar, unsigned, Scalar, Scalar, unsigned)
 A default routine for initialization, not needed for components and must not be called.
 
static bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible.
 
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal.
 
static bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible.
 
static std::string_view name ()
 A human readable name for the component.
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg]}$ of the component.
 
static Scalar criticalTemperature ()
 Returns the critical temperature in $\mathrm{[K]}$ of the component.
 
static Scalar criticalPressure ()
 Returns the critical pressure in $\mathrm{[Pa]}$ of the component.
 
static Scalar acentricFactor ()
 Returns the acentric factor of the component.
 
static Scalar criticalVolume ()
 Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component.
 
static Scalar tripleTemperature ()
 Returns the temperature in $\mathrm{[K]}$ at the component's triple point.
 
static Scalar triplePressure ()
 Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point.
 
static Evaluation vaporPressure (const Evaluation &)
 The vapor pressure in $\mathrm{[Pa]}$ of the component at a given temperature in $\mathrm{[K]}$.
 
static Evaluation gasDensity (const Evaluation &, const Evaluation &)
 The density in $\mathrm{[kg/m^3]}$ of the component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$.
 
static Evaluation liquidDensity (const Evaluation &, const Evaluation &)
 The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$.
 
static Evaluation gasEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas.
 
static Evaluation liquidEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid.
 
static Evaluation gasInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of the pure component in gas.
 
static Evaluation liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid.
 
static Evaluation gasViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$.
 
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component.
 
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a gas.
 
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a liquid.
 
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas.
 
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid.
 

Additional Inherited Members

- Public Types inherited from Opm::Component< Scalar, BrineDynamic< Scalar, H2O > >
typedef Scalar Scalar
 
- Static Public Attributes inherited from Opm::Component< Scalar, BrineDynamic< Scalar, H2O > >
static constexpr bool isTabulated
 

Detailed Description

template<class Scalar, class H2O>
class Opm::BrineDynamic< Scalar, H2O >

A class for the brine fluid properties.

Template Parameters
ScalarThe type used for scalar values
H2OStatic polymorphism: the Brine class can access all properties of the H2O class

Member Function Documentation

◆ acentricFactor()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::acentricFactor ( )
inlinestatic

◆ criticalPressure()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::criticalPressure ( )
inlinestatic

Returns the critical pressure $\mathrm{[Pa]}$ of water.

◆ criticalTemperature()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::criticalTemperature ( )
inlinestatic

Returns the critical temperature $\mathrm{[K]}$ of water.

◆ criticalVolume()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::criticalVolume ( )
inlinestatic

Returns the critical volume $\mathrm{[m^3/kmol]}$ of water.

◆ gasDensity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasDensity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

The density of steam in $\mathrm{[kg/m^3]}$ at a given pressure and temperature.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasEnthalpy()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasHeatCapacity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasHeatCapacity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific isobaric heat capacity of water steam $\mathrm{[J/kg]}$.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasInternalEnergy()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific internal energy of steam and water vapor $\mathrm{[J/kg]}$.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasIsCompressible()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE bool Opm::BrineDynamic< Scalar, H2O >::gasIsCompressible ( )
inlinestatic

Returns true iff the gas phase is assumed to be compressible.

◆ gasIsIdeal()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE bool Opm::BrineDynamic< Scalar, H2O >::gasIsIdeal ( )
inlinestatic

Returns true iff the gas phase is assumed to be ideal.

◆ gasPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasPressure ( const Evaluation &  temperature,
const Evaluation &  density 
)
inlinestatic

The pressure of steam in $\mathrm{[Pa]}$ at a given density and temperature.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
densityDensity in $\mathrm{[kg/m^3]}$

◆ gasViscosity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::gasViscosity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

The dynamic viscosity $\mathrm{[Pa*s]}$ of steam.

This method is only valid if pressure is below or at the vapor pressure of water.

See:

IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidDensity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidDensity ( const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  salinity,
bool  extrapolate = false 
)
inlinestatic

The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

Equations given in:

  • Batzle & Wang (1992)
  • cited by: Adams & Bachu in Geofluids (2002) 2, 257-271

◆ liquidEnthalpy()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  salinity 
)
inlinestatic

Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

Equations given in:

  • Palliser & McKibbin 1997
  • Michaelides 1981
  • Daubert & Danner 1989

◆ liquidHeatCapacity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidHeatCapacity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific isobaric heat capacity of liquid water $\mathrm{[J/kg]}$.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidInternalEnergy()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific internal energy of liquid water $\mathrm{[J/kg]}$.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidIsCompressible()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE bool Opm::BrineDynamic< Scalar, H2O >::liquidIsCompressible ( )
inlinestatic

Returns true iff the liquid phase is assumed to be compressible.

◆ liquidPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidPressure ( const Evaluation &  temperature,
const Evaluation &  density 
)
inlinestatic

The pressure of liquid water in $\mathrm{[Pa]}$ at a given density and temperature.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
densityDensity of the fluid in $\mathrm{[kg/m^3]}$

◆ liquidViscosity()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::liquidViscosity ( const Evaluation &  temperature,
const Evaluation &  ,
const Evaluation &  salinity 
)
inlinestatic

The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water.

See:

IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

Equation given in:

  • Batzle & Wang (1992)
  • cited by: Bachu & Adams (2002) "Equations of State for basin geofluids"

◆ molarMass()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::molarMass ( const Evaluation &  salinity)
inlinestatic

The molar mass in $\mathrm{[kg]}$ of the component.

This assumes that the salt is pure NaCl.

◆ name()

template<class Scalar , class H2O >
static std::string_view Opm::BrineDynamic< Scalar, H2O >::name ( )
inlinestatic

A human readable name for the component.

◆ triplePressure()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::triplePressure ( )
inlinestatic

Returns the pressure $\mathrm{[Pa]}$ at water's triple point.

◆ tripleTemperature()

template<class Scalar , class H2O >
static OPM_HOST_DEVICE Scalar Opm::BrineDynamic< Scalar, H2O >::tripleTemperature ( )
inlinestatic

Returns the temperature $\mathrm{[K]}$ at water's triple point.

◆ vaporPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static OPM_HOST_DEVICE Evaluation Opm::BrineDynamic< Scalar, H2O >::vaporPressure ( const Evaluation &  T)
inlinestatic

The vapor pressure in $\mathrm{[Pa]}$ of pure water at a given temperature.

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Parameters
TAbsolute temperature of the system in $\mathrm{[K]}$

The documentation for this class was generated from the following file: