Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure > Class Template Reference

A generic class which tabulates all thermodynamic properties of a given component. More...

#include <TabulatedComponent.hpp>

List of all members.

Public Types

typedef ScalarT Scalar

Static Public Member Functions

static void init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress)
 Initialize the tables.
static const char * name ()
 A human readable name for the component.
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of the component.
static Scalar criticalTemperature ()
 Returns the critical temperature in $\mathrm{[K]}$ of the component.
static Scalar criticalPressure ()
 Returns the critical pressure in $\mathrm{[Pa]}$ of the component.
static Scalar tripleTemperature ()
 Returns the temperature in $\mathrm{[K]}$ at the component's triple point.
static Scalar triplePressure ()
 Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point.
template<class Evaluation >
static Evaluation vaporPressure (const Evaluation &temperature)
 The vapor pressure in $\mathrm{[Pa]}$ of the component at a given temperature.
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy of the gas $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy of the liquid $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of the gas $\mathrm{[J/(kg K)]}$.
template<class Evaluation >
static Evaluation liquidHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of the liquid $\mathrm{[J/(kg K)]}$.
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of the gas $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of the liquid $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation gasPressure (const Evaluation &temperature, Scalar density)
 The pressure of gas in $\mathrm{[Pa]}$ at a given density and temperature.
template<class Evaluation >
static Evaluation liquidPressure (const Evaluation &temperature, Scalar density)
 The pressure of liquid in $\mathrm{[Pa]}$ at a given density and temperature.
static bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible.
static bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible.
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal.
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density of gas at a given pressure and temperature $\mathrm{[kg/m^3]}$.
template<class Evaluation >
static Evaluation liquidDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density of liquid at a given pressure and temperature $\mathrm{[kg/m^3]}$.
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &temperature, const Evaluation &pressure)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of gas.
template<class Evaluation >
static Evaluation liquidViscosity (const Evaluation &temperature, const Evaluation &pressure)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of liquid.
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &temperature, const Evaluation &pressure)
 The thermal conductivity of gaseous water $\mathrm{[W / (m K)]}$.
template<class Evaluation >
static Evaluation liquidThermalConductivity (const Evaluation &temperature, const Evaluation &pressure)
 The thermal conductivity of liquid water $\mathrm{[W / (m K)]}$.

Static Public Attributes

static const bool isTabulated = true

Detailed Description

template<class ScalarT, class RawComponent, bool useVaporPressure = true>
class Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >

A generic class which tabulates all thermodynamic properties of a given component.

At the moment, this class can only handle the sub-critical fluids since it tabulates along the vapor pressure curve.

Template Parameters:
Scalar The type used for scalar values
RawComponent The component which ought to be tabulated
useVaporPressure If true, tabulate all quantities along the vapor pressure curve, if false use the pressure range [p_min, p_max]

Member Function Documentation

template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasDensity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

The density of gas at a given pressure and temperature $\mathrm{[kg/m^3]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasHeatCapacity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

Specific isobaric heat capacity of the gas $\mathrm{[J/(kg K)]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasPressure ( const Evaluation &  temperature,
Scalar  density 
) [inline, static]

The pressure of gas in $\mathrm{[Pa]}$ at a given density and temperature.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
density density of component in $\mathrm{[kg/m^3]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasThermalConductivity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

The thermal conductivity of gaseous water $\mathrm{[W / (m K)]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasViscosity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

The dynamic viscosity $\mathrm{[Pa*s]}$ of gas.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
static void Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::init ( Scalar  tempMin,
Scalar  tempMax,
unsigned  nTemp,
Scalar  pressMin,
Scalar  pressMax,
unsigned  nPress 
) [inline, static]

Initialize the tables.

Parameters:
tempMin The minimum of the temperature range in $\mathrm{[K]}$
tempMax The maximum of the temperature range in $\mathrm{[K]}$
nTemp The number of entries/steps within the temperature range
pressMin The minimum of the pressure range in $\mathrm{[Pa]}$
pressMax The maximum of the pressure range in $\mathrm{[Pa]}$
nPress The number of entries/steps within the pressure range
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidDensity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

The density of liquid at a given pressure and temperature $\mathrm{[kg/m^3]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidHeatCapacity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

Specific isobaric heat capacity of the liquid $\mathrm{[J/(kg K)]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidPressure ( const Evaluation &  temperature,
Scalar  density 
) [inline, static]

The pressure of liquid in $\mathrm{[Pa]}$ at a given density and temperature.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
density density of component in $\mathrm{[kg/m^3]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidThermalConductivity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

The thermal conductivity of liquid water $\mathrm{[W / (m K)]}$.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidViscosity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
template<class ScalarT , class RawComponent , bool useVaporPressure = true>
template<class Evaluation >
static Evaluation Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::vaporPressure ( const Evaluation &  temperature  )  [inline, static]

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

Parameters:
T temperature of component

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

Generated on 25 Mar 2018 by  doxygen 1.6.1