Opm::LNAPL< Scalar > Class Template Reference

A simple implementation of a LNAPL, e.g. a kind of oil. More...

#include <Lnapl.hpp>

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

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static const char * name ()
 A human readable name for the iso-octane. More...
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of iso-octane. More...
 
static bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible. More...
 
template<class Evaluation >
static Evaluation liquidDensity (const Evaluation &, const Evaluation &)
 Rough estimate of the density of oil $\mathrm{[kg/m^3]}$. More...
 
template<class Evaluation >
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 Rough estimate of the viscosity of oil in $\mathrm{[Pa*s]}$. More...
 
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &)
 The enthalpy of iso-octane at a given pressure and temperature $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity $[J/(kg K)]$ of liquid iso-octane. More...
 
template<class Evaluation >
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of liquid TCE $\mathrm{[W/(m 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 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...
 
static Scalar criticalTemperature ()
 Returns the critical temperature in $\mathrm{[K]}$ of the component. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure in $\mathrm{[Pa]}$ of the component. 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 Scalar tripleTemperature ()
 Returns the temperature in $\mathrm{[K]}$ at the component's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point. 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 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 gasEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas. 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 gasThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a gas. More...
 
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas. More...
 

Static Public Attributes

static const bool isTabulated
 

Detailed Description

template<class Scalar>
class Opm::LNAPL< Scalar >

A simple implementation of a LNAPL, e.g. a kind of oil.

Template Parameters
ScalarThe type used for scalar values

Member Typedef Documentation

◆ Scalar

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

Member Function Documentation

◆ acentricFactor()

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

Returns the acentric factor of the component.

◆ criticalPressure()

static Scalar Opm::Component< Scalar , LNAPL< Scalar > >::criticalPressure ( )
inlinestaticinherited

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

◆ criticalTemperature()

static Scalar Opm::Component< Scalar , LNAPL< Scalar > >::criticalTemperature ( )
inlinestaticinherited

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

◆ criticalVolume()

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

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

◆ gasDensity()

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

◆ gasEnthalpy()

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

◆ gasHeatCapacity()

static Evaluation Opm::Component< Scalar , LNAPL< Scalar > >::gasHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

◆ gasInternalEnergy()

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

◆ gasIsCompressible()

static bool Opm::Component< Scalar , LNAPL< Scalar > >::gasIsCompressible ( )
inlinestaticinherited

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

◆ gasIsIdeal()

static bool Opm::Component< Scalar , LNAPL< Scalar > >::gasIsIdeal ( )
inlinestaticinherited

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

◆ gasThermalConductivity()

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

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

◆ gasViscosity()

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

◆ init()

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

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::LNAPL< Scalar >::liquidDensity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Rough estimate of the density of oil $\mathrm{[kg/m^3]}$.

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

◆ liquidEnthalpy()

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

The enthalpy of iso-octane at a given pressure and temperature $\mathrm{[J/kg]}$.

We simply use the value of iso-octane here.

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

References Opm::LNAPL< Scalar >::molarMass().

◆ liquidHeatCapacity()

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

Specific isobaric heat capacity $[J/(kg K)]$ of liquid iso-octane.

We simply use the value of iso-octane here.

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

References Opm::LNAPL< Scalar >::molarMass().

◆ liquidInternalEnergy()

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

template<class Scalar >
static bool Opm::LNAPL< Scalar >::liquidIsCompressible ( )
inlinestatic

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

◆ liquidThermalConductivity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::LNAPL< Scalar >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific heat conductivity of liquid TCE $\mathrm{[W/(m K)]}$.

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

◆ liquidViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::LNAPL< Scalar >::liquidViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Rough estimate of the viscosity of oil in $\mathrm{[Pa*s]}$.

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

◆ molarMass()

template<class Scalar >
static Scalar Opm::LNAPL< Scalar >::molarMass ( )
inlinestatic

The molar mass in $\mathrm{[kg/mol]}$ of iso-octane.

Referenced by Opm::LNAPL< Scalar >::liquidEnthalpy(), and Opm::LNAPL< Scalar >::liquidHeatCapacity().

◆ name()

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

A human readable name for the iso-octane.

◆ triplePressure()

static Scalar Opm::Component< Scalar , LNAPL< Scalar > >::triplePressure ( )
inlinestaticinherited

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

◆ tripleTemperature()

static Scalar Opm::Component< Scalar , LNAPL< Scalar > >::tripleTemperature ( )
inlinestaticinherited

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

◆ vaporPressure()

static Evaluation Opm::Component< Scalar , LNAPL< 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 , LNAPL< Scalar > >::isTabulated
staticinherited

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