Opm::SimpleCO2< Scalar > Class Template Reference

A simplistic class representing the $CO_2$ fluid properties. More...

#include <SimpleCO2.hpp>

Inheritance diagram for Opm::SimpleCO2< Scalar >:
Inheritance graph

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static const char * name ()
 A human readable name for the component. More...
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg]}$ of the component. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of $CO_2$. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of $CO_2$. More...
 
static Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at the triple point of $CO_2$. More...
 
static Scalar acentricFactor ()
 Acentric factor of $CO_2$. More...
 
static Scalar criticalVolume ()
 Critical volume of $CO_2$ [m2/kmol]. More...
 
static Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at the triple point of $CO_2$. 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 &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas. More...
 
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid. More...
 
template<class Evaluation >
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid. More...
 
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density in $\mathrm{[kg/m^3]}$ of the component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &temperature, 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 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 Evaluation vaporPressure (const Evaluation &)
 The vapor pressure in $\mathrm{[Pa]}$ of the component at a given 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 liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid. 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 Public Attributes

static const bool isTabulated
 

Detailed Description

template<class Scalar>
class Opm::SimpleCO2< Scalar >

A simplistic class representing the $CO_2$ fluid properties.

Template Parameters
ScalarThe type used for scalar values

Member Typedef Documentation

◆ Scalar

typedef Scalar Opm::Component< Scalar , SimpleCO2< Scalar > >::Scalar
inherited

Member Function Documentation

◆ acentricFactor()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::acentricFactor ( )
inlinestatic

◆ criticalPressure()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::criticalPressure ( )
inlinestatic

◆ criticalTemperature()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::criticalTemperature ( )
inlinestatic

◆ criticalVolume()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::criticalVolume ( )
inlinestatic

◆ gasDensity()

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

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

References Opm::IdealGas< Scalar >::density(), and Opm::SimpleCO2< Scalar >::molarMass().

◆ gasEnthalpy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleCO2< Scalar >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
)
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]}$

Referenced by Opm::SimpleCO2< Scalar >::gasInternalEnergy().

◆ gasHeatCapacity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleCO2< Scalar >::gasHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

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

◆ gasInternalEnergy()

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

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

References Opm::SimpleCO2< Scalar >::gasEnthalpy(), Opm::SimpleCO2< Scalar >::molarMass(), and Opm::IdealGas< Scalar >::R.

◆ gasIsCompressible()

template<class Scalar >
static bool Opm::SimpleCO2< Scalar >::gasIsCompressible ( )
inlinestatic

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

◆ gasIsIdeal()

template<class Scalar >
static bool Opm::SimpleCO2< Scalar >::gasIsIdeal ( )
inlinestatic

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

◆ gasThermalConductivity()

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

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

◆ gasViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleCO2< Scalar >::gasViscosity ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

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

See:

See: R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp 396-397, 667

References Opm::SimpleCO2< Scalar >::criticalTemperature(), Opm::exp(), Opm::SimpleCO2< Scalar >::molarMass(), Opm::pow(), and Opm::sqrt().

◆ init()

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

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleCO2< Scalar >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
)
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]}$

◆ liquidHeatCapacity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleCO2< Scalar >::liquidHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

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

◆ liquidInternalEnergy()

static Evaluation Opm::Component< Scalar , SimpleCO2< Scalar > >::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 , SimpleCO2< Scalar > >::liquidIsCompressible ( )
inlinestaticinherited

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

◆ liquidThermalConductivity()

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

◆ molarMass()

◆ name()

template<class Scalar >
static const char * Opm::SimpleCO2< Scalar >::name ( )
inlinestatic

◆ triplePressure()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::triplePressure ( )
inlinestatic

Returns the pressure $\mathrm{[Pa]}$ at the triple point of $CO_2$.

◆ tripleTemperature()

template<class Scalar >
static Scalar Opm::SimpleCO2< Scalar >::tripleTemperature ( )
inlinestatic

Returns the temperature $\mathrm{[K]}$ at the triple point of $CO_2$.

◆ vaporPressure()

static Evaluation Opm::Component< Scalar , SimpleCO2< Scalar > >::vaporPressure ( const Evaluation &  )
inlinestaticinherited

The vapor pressure in $\mathrm{[Pa]}$ of the component at a given temperature in $\mathrm{[K]}$.

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

Member Data Documentation

◆ isTabulated

const bool Opm::Component< Scalar , SimpleCO2< Scalar > >::isTabulated
staticinherited

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