Opm::Brine< Scalar, H2O > Class Template Reference

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

#include <Brine.hpp>

Inheritance diagram for Opm::Brine< Scalar, H2O >:
Inheritance graph

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

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

Static Public Attributes

static Scalar salinity = 0.1
 The mass fraction of salt assumed to be in the brine. More...
 
static const bool isTabulated
 

Detailed Description

template<class Scalar, class H2O>
class Opm::Brine< 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 Typedef Documentation

◆ Scalar

typedef Scalar Opm::Component< Scalar , Brine< Scalar, H2O > >::Scalar
inherited

Member Function Documentation

◆ acentricFactor()

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

◆ criticalPressure()

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

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

References Opm::H2O< Scalar >::criticalPressure().

Referenced by Opm::Co2BrineFluidSystem< Scalar >::criticalPressure().

◆ criticalTemperature()

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

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

References Opm::H2O< Scalar >::criticalTemperature().

Referenced by Opm::Co2BrineFluidSystem< Scalar >::criticalTemperature().

◆ criticalVolume()

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

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

References Opm::H2O< Scalar >::criticalVolume().

Referenced by Opm::Co2BrineFluidSystem< Scalar >::criticalVolume().

◆ gasDensity()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::gasDensity().

Referenced by Opm::Brine< Scalar, H2O >::gasInternalEnergy().

◆ gasEnthalpy()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::gasEnthalpy().

Referenced by Opm::Brine< Scalar, H2O >::gasInternalEnergy().

◆ gasHeatCapacity()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::gasHeatCapacity().

◆ gasInternalEnergy()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::Brine< Scalar, H2O >::gasDensity(), and Opm::Brine< Scalar, H2O >::gasEnthalpy().

◆ gasIsCompressible()

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

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

References Opm::H2O< Scalar >::gasIsCompressible().

◆ gasIsIdeal()

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

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

References Opm::H2O< Scalar >::gasIsIdeal().

◆ gasPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::gasPressure().

◆ gasThermalConductivity()

static Evaluation Opm::Component< Scalar , Brine< Scalar, H2O > >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

Thermal conductivity of the component [W/(m^2 K/m)] as a gas.

◆ gasViscosity()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::gasViscosity().

◆ init()

static void Opm::Component< Scalar , Brine< Scalar, H2O > >::init ( Scalar  ,
Scalar  ,
unsigned  ,
Scalar  ,
Scalar  ,
unsigned   
)
inlinestaticinherited

A default routine for initialization, not needed for components and must not be called.

Parameters
tempMinThe minimum of the temperature range in $\mathrm{[K]}$
tempMaxThe maximum of the temperature range in $\mathrm{[K]}$
nTempThe number of entries/steps within the temperature range
pressMinThe minimum of the pressure range in $\mathrm{[Pa]}$
pressMaxThe maximum of the pressure range in $\mathrm{[Pa]}$
nPressThe number of entries/steps within the pressure range

This function throws a warning when called: "No init routine defined - make sure that this is not necessary!"

◆ liquidDensity() [1/2]

static Evaluation Opm::Component< Scalar , Brine< Scalar, H2O > >::liquidDensity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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]}$

◆ liquidDensity() [2/2]

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< Scalar, H2O >::liquidDensity ( const Evaluation &  temperature,
const Evaluation &  pressure,
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

References Opm::H2O< Scalar >::liquidDensity(), and Opm::Brine< Scalar, H2O >::salinity.

Referenced by Opm::BrineCo2Pvt< Scalar >::BrineCo2Pvt(), Opm::Brine< Scalar, H2O >::liquidInternalEnergy(), and Opm::Brine< Scalar, H2O >::liquidPressure().

◆ liquidEnthalpy()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< Scalar, H2O >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
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

References Opm::H2O< Scalar >::liquidEnthalpy(), Opm::pow(), and Opm::Brine< Scalar, H2O >::salinity.

Referenced by Opm::Brine< Scalar, H2O >::liquidHeatCapacity(), and Opm::Brine< Scalar, H2O >::liquidInternalEnergy().

◆ liquidHeatCapacity()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::Brine< Scalar, H2O >::liquidEnthalpy(), and Opm::scalarValue().

◆ liquidInternalEnergy()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::Brine< Scalar, H2O >::liquidDensity(), and Opm::Brine< Scalar, H2O >::liquidEnthalpy().

◆ liquidIsCompressible()

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

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

References Opm::H2O< Scalar >::liquidIsCompressible().

◆ liquidPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::abs(), Opm::Brine< Scalar, H2O >::liquidDensity(), Opm::scalarValue(), and Opm::Brine< Scalar, H2O >::vaporPressure().

◆ liquidThermalConductivity()

static Evaluation Opm::Component< Scalar , Brine< Scalar, H2O > >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

Thermal conductivity of the component [W/(m^2 K/m)] as a liquid.

◆ liquidViscosity()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< Scalar, H2O >::liquidViscosity ( const Evaluation &  temperature,
const Evaluation &   
)
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"

References Opm::exp(), Opm::pow(), and Opm::Brine< Scalar, H2O >::salinity.

Referenced by Opm::BrineCo2Pvt< Scalar >::diffusionCoefficient(), and Opm::BrineCo2Pvt< Scalar >::saturatedViscosity().

◆ molarMass()

template<class Scalar , class H2O >
static Scalar Opm::Brine< Scalar, H2O >::molarMass ( )
inlinestatic

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

This assumes that the salt is pure NaCl.

References Opm::H2O< Scalar >::molarMass(), and Opm::Brine< Scalar, H2O >::salinity.

Referenced by Opm::Co2BrineFluidSystem< Scalar >::molarMass().

◆ name()

template<class Scalar , class H2O >
static const char * Opm::Brine< Scalar, H2O >::name ( )
inlinestatic

A human readable name for the component.

Referenced by Opm::Co2BrineFluidSystem< Scalar >::componentName().

◆ triplePressure()

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

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

References Opm::H2O< Scalar >::triplePressure().

◆ tripleTemperature()

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

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

References Opm::H2O< Scalar >::tripleTemperature().

◆ vaporPressure()

template<class Scalar , class H2O >
template<class Evaluation >
static Evaluation Opm::Brine< 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]}$

References Opm::H2O< Scalar >::vaporPressure().

Referenced by Opm::Brine< Scalar, H2O >::liquidPressure().

Member Data Documentation

◆ isTabulated

const bool Opm::Component< Scalar , Brine< Scalar, H2O > >::isTabulated
staticinherited

◆ salinity


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