27#ifndef OPM_IDEAL_GAS_HPP
28#define OPM_IDEAL_GAS_HPP
30#include <opm/common/utility/gpuDecorators.hpp>
37template <
class Scalar>
48 template <
class Evaluation>
49 OPM_HOST_DEVICE
static Evaluation
density(
const Evaluation& avgMolarMass,
50 const Evaluation& temperature,
52 {
return pressure*avgMolarMass/(
R*temperature); }
58 template <
class Evaluation>
59 OPM_HOST_DEVICE
static Evaluation
pressure(
const Evaluation& temperature,
60 const Evaluation& rhoMolar)
61 {
return R*temperature*rhoMolar; }
67 template <
class Evaluation>
68 OPM_HOST_DEVICE
static Evaluation
molarDensity(
const Evaluation& temperature,
Definition Constants.hpp:40
Relations valid for an ideal gas.
Definition IdealGas.hpp:39
static OPM_HOST_DEVICE Evaluation pressure(const Evaluation &temperature, const Evaluation &rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition IdealGas.hpp:59
static OPM_HOST_DEVICE Evaluation molarDensity(const Evaluation &temperature, const Evaluation &pressure)
The molar density of the gas , depending on pressure and temperature.
Definition IdealGas.hpp:68
static OPM_HOST_DEVICE 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:49
static constexpr Scalar R
The ideal gas constant .
Definition IdealGas.hpp:42
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30