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 LNAPL. 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...
 
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 molarMass ()
 The molar mass in $\mathrm{[kg]}$ of the component. 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 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 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 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 gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas. 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 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

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

Member Function Documentation

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

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

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

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

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

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]}$
static bool Opm::Component< Scalar , LNAPL< Scalar > >::gasIsCompressible ( )
inlinestaticinherited

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

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

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

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.

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

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]}$
static Evaluation Opm::Component< Scalar , LNAPL< Scalar > >::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]}$
static Evaluation Opm::Component< Scalar , LNAPL< Scalar > >::liquidHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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]}$
template<class Scalar >
static bool Opm::LNAPL< Scalar >::liquidIsCompressible ( )
inlinestatic

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

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

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

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]}$
static Scalar Opm::Component< Scalar , LNAPL< Scalar > >::molarMass ( )
inlinestaticinherited

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

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

A human readable name for the LNAPL.

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

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

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

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

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

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

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