Opm::CO2< Scalar, CO2Tables > Class Template Reference

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

#include <CO2.hpp>

Inheritance diagram for Opm::CO2< Scalar, CO2Tables >:
Inheritance graph

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static const char * name ()
 A human readable name for the CO2. More...
 
static Scalar molarMass ()
 The mass in [kg] of one mole of CO2. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature [K] of CO2. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure [Pa] of CO2. More...
 
static Scalar tripleTemperature ()
 Returns the temperature [K]at CO2's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure [Pa] at CO2's triple point. More...
 
static Scalar minTabulatedPressure ()
 Returns the pressure [Pa] at CO2's triple point. More...
 
static Scalar maxTabulatedPressure ()
 Returns the pressure [Pa] at CO2's triple point. More...
 
static Scalar minTabulatedTemperature ()
 Returns the pressure [Pa] at CO2's triple point. More...
 
static Scalar maxTabulatedTemperature ()
 Returns the pressure [Pa] at CO2's triple point. More...
 
template<class Evaluation >
static Evaluation vaporPressure (const Evaluation &T)
 The vapor pressure in [N/m^2] of pure CO2 at a given temperature. More...
 
static bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible. More...
 
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal. More...
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 Specific enthalpy of gaseous CO2 [J/kg]. More...
 
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 Specific internal energy of CO2 [J/kg]. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 The density of CO2 at a given pressure and temperature [kg/m^3]. More...
 
template<class Evaluation >
static Evaluation gasViscosity (Evaluation temperature, const Evaluation &pressure, bool extrapolate=false)
 The dynamic viscosity [Pa s] of CO2. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of the component [J/kg] as a liquid. 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 bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible. More...
 
static Scalar acentricFactor ()
 Returns the acentric factor of the component. More...
 
static Scalar criticalVolume ()
 Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component. More...
 
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]}$. 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 gasEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
static Evaluation liquidEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid. More...
 
static Evaluation gasInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
static Evaluation liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid. More...
 
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]}$. More...
 
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component. 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 Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid. More...
 

Static Public Attributes

static const bool isTabulated
 

Detailed Description

template<class Scalar, class CO2Tables>
class Opm::CO2< Scalar, CO2Tables >

A class for the CO2 fluid properties.

Under reservoir conditions, CO2 is typically in supercritical state. These properties can be provided in tabulated form, which is necessary for this component. The template is used by the fluidsystem BrineCO2FluidSystem. If thermodynamic precision is not a top priority, the much simpler component Opm::SimpleCO2 can be used instead

Member Typedef Documentation

◆ Scalar

typedef Scalar Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::Scalar
inherited

Member Function Documentation

◆ acentricFactor()

static Scalar Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::acentricFactor ( )
inlinestaticinherited

Returns the acentric factor of the component.

◆ criticalPressure()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::criticalPressure ( )
inlinestatic

Returns the critical pressure [Pa] of CO2.

Referenced by Opm::CO2< Scalar, CO2Tables >::vaporPressure().

◆ criticalTemperature()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::criticalTemperature ( )
inlinestatic

Returns the critical temperature [K] of CO2.

Referenced by Opm::CO2< Scalar, CO2Tables >::vaporPressure().

◆ criticalVolume()

static Scalar Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::criticalVolume ( )
inlinestaticinherited

Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component.

◆ gasDensity() [1/2]

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::gasDensity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

The density in $\mathrm{[kg/m^3]}$ of the 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]}$

◆ gasDensity() [2/2]

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::gasDensity ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate = false 
)
inlinestatic

◆ gasEnthalpy() [1/2]

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::gasEnthalpy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ gasEnthalpy() [2/2]

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate = false 
)
inlinestatic

◆ gasHeatCapacity()

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::gasHeatCapacity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific isobaric heat capacity of the component [J/kg] as a liquid.

This function uses the fact that heat capacity is the partial derivative of enthalpy function with respect to temperature.

Parameters
temperatureTemperature of component $\mathrm{[K]}$
pressurePressure of component $\mathrm{[Pa]}$

References Opm::CO2< Scalar, CO2Tables >::gasEnthalpy().

Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::heatCapacity().

◆ gasInternalEnergy() [1/2]

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::gasInternalEnergy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ gasInternalEnergy() [2/2]

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::gasInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate = false 
)
inlinestatic

◆ gasIsCompressible()

template<class Scalar , class CO2Tables >
static bool Opm::CO2< Scalar, CO2Tables >::gasIsCompressible ( )
inlinestatic

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

◆ gasIsIdeal()

template<class Scalar , class CO2Tables >
static bool Opm::CO2< Scalar, CO2Tables >::gasIsIdeal ( )
inlinestatic

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

Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isIdealGas().

◆ gasThermalConductivity()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

◆ gasViscosity() [1/2]

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::gasViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure 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]}$

◆ gasViscosity() [2/2]

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::gasViscosity ( Evaluation  temperature,
const Evaluation &  pressure,
bool  extrapolate = false 
)
inlinestatic

◆ init()

static void Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::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()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::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]}$

◆ liquidEnthalpy()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidEnthalpy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ liquidHeatCapacity()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

Specific isobaric heat capacity of the component [J/kg] as a liquid.

◆ liquidInternalEnergy()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidInternalEnergy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ liquidIsCompressible()

static bool Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidIsCompressible ( )
inlinestaticinherited

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

◆ liquidThermalConductivity()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

◆ liquidViscosity()

static Evaluation Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::liquidViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ maxTabulatedPressure()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::maxTabulatedPressure ( )
inlinestatic

Returns the pressure [Pa] at CO2's triple point.

◆ maxTabulatedTemperature()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::maxTabulatedTemperature ( )
inlinestatic

Returns the pressure [Pa] at CO2's triple point.

◆ minTabulatedPressure()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::minTabulatedPressure ( )
inlinestatic

Returns the pressure [Pa] at CO2's triple point.

◆ minTabulatedTemperature()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::minTabulatedTemperature ( )
inlinestatic

Returns the pressure [Pa] at CO2's triple point.

◆ molarMass()

◆ name()

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

A human readable name for the CO2.

Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::componentName().

◆ triplePressure()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::triplePressure ( )
inlinestatic

Returns the pressure [Pa] at CO2's triple point.

◆ tripleTemperature()

template<class Scalar , class CO2Tables >
static Scalar Opm::CO2< Scalar, CO2Tables >::tripleTemperature ( )
inlinestatic

Returns the temperature [K]at CO2's triple point.

◆ vaporPressure()

template<class Scalar , class CO2Tables >
template<class Evaluation >
static Evaluation Opm::CO2< Scalar, CO2Tables >::vaporPressure ( const Evaluation &  T)
inlinestatic

The vapor pressure in [N/m^2] of pure CO2 at a given temperature.

See:

R. Span and W. Wagner: A New Equation of State for Carbon Dioxide Covering the Fluid Region from the Triple‐Point Temperature to 1100 K at Pressures up to 800 MPa. Journal of Physical and Chemical Reference Data, 25 (6), pp. 1509-1596, 1996

References Opm::CO2< Scalar, CO2Tables >::criticalPressure(), Opm::CO2< Scalar, CO2Tables >::criticalTemperature(), Opm::exp(), and Opm::pow().

Member Data Documentation

◆ isTabulated

const bool Opm::Component< Scalar , CO2< Scalar, CO2Tables > >::isTabulated
staticinherited

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