Opm::IdealGas< Scalar > Class Template Reference

Relations valid for an ideal gas. More...

#include <IdealGas.hpp>

Static Public Member Functions

template<class Evaluation >
static Evaluation density (const Evaluation &avgMolarMass, const Evaluation &temperature, const Evaluation &pressure)
 The density of the gas in $\mathrm{[kg/m^3]}$, depending on pressure, temperature and average molar mass of the gas. More...
 
template<class Evaluation >
static Evaluation pressure (const Evaluation &temperature, const Evaluation &rhoMolar)
 The pressure of the gas in $\mathrm{[N/m^2]}$, depending on the molar density and temperature. More...
 
template<class Evaluation >
static Evaluation molarDensity (const Evaluation &temperature, const Evaluation &pressure)
 The molar density of the gas $\mathrm{[mol/m^3]}$, depending on pressure and temperature. More...
 

Static Public Attributes

static const Scalar R = Constants<Scalar>::R
 The ideal gas constant $\mathrm{[J/mol/K]}$. More...
 

Detailed Description

template<class Scalar>
class Opm::IdealGas< Scalar >

Relations valid for an ideal gas.

Member Function Documentation

◆ density()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::IdealGas< Scalar >::density ( const Evaluation &  avgMolarMass,
const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

◆ molarDensity()

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

The molar density of the gas $\mathrm{[mol/m^3]}$, depending on pressure and temperature.

References Opm::IdealGas< Scalar >::pressure(), and Opm::IdealGas< Scalar >::R.

Referenced by Opm::SimpleH2O< Scalar >::gasDensity(), and Opm::SimpleHuDuanH2O< Scalar >::gasDensity().

◆ pressure()

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

Member Data Documentation

◆ R


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