27 #ifndef OPM_IDEAL_GAS_HPP
28 #define OPM_IDEAL_GAS_HPP
36 template <
class Scalar>
41 static const Scalar
R;
47 template <
class Evaluation>
48 static Evaluation
density(
const Evaluation& avgMolarMass,
49 const Evaluation& temperature,
51 {
return pressure*avgMolarMass/(
R*temperature); }
57 template <
class Evaluation>
58 static Evaluation
pressure(
const Evaluation& temperature,
59 const Evaluation& rhoMolar)
60 {
return R*temperature*rhoMolar; }
66 template <
class Evaluation>
72 template <
class Scalar>
A central place for various physical constants occuring in some equations.
static const Scalar R
The ideal gas constant [J/(mol K)].
Definition: Constants.hpp:45
Relations valid for an ideal gas.
Definition: IdealGas.hpp:38
static const Scalar R
The ideal gas constant .
Definition: IdealGas.hpp:41
static Evaluation pressure(const Evaluation &temperature, const Evaluation &rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition: IdealGas.hpp:58
static Evaluation density(const Evaluation &avgMolarMass, const Evaluation &temperature, const Evaluation &pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition: IdealGas.hpp:48
static Evaluation molarDensity(const Evaluation &temperature, const Evaluation &pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: IdealGas.hpp:67