A generic class which tabulates all thermodynamic properties of a given component.
More...
|
static void | init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress) |
| Initialize the tables.
|
|
static std::string_view | name () |
| A human readable name for the component.
|
|
static Scalar | molarMass () |
| The molar mass in of the component.
|
|
static Scalar | criticalTemperature () |
| Returns the critical temperature in of the component.
|
|
static Scalar | criticalPressure () |
| Returns the critical pressure in of the component.
|
|
static Scalar | acentricFactor () |
| Returns the acentric factor of the component.
|
|
static Scalar | criticalVolume () |
| Returns the critical volume in of the component.
|
|
static Scalar | tripleTemperature () |
| Returns the temperature in at the component's triple point.
|
|
static Scalar | triplePressure () |
| Returns the pressure in at the component's triple point.
|
|
template<class Evaluation > |
static Evaluation | vaporPressure (const Evaluation &temperature) |
| The vapor pressure in of the component at a given temperature.
|
|
template<class Evaluation > |
static Evaluation | gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure) |
| Specific enthalpy of the gas .
|
|
template<class Evaluation > |
static Evaluation | liquidEnthalpy (const Evaluation &temperature, const Evaluation &pressure) |
| Specific enthalpy of the liquid .
|
|
template<class Evaluation > |
static Evaluation | gasHeatCapacity (const Evaluation &temperature, const Evaluation &pressure) |
| Specific isobaric heat capacity of the gas .
|
|
template<class Evaluation > |
static Evaluation | liquidHeatCapacity (const Evaluation &temperature, const Evaluation &pressure) |
| Specific isobaric heat capacity of the liquid .
|
|
template<class Evaluation > |
static Evaluation | gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure) |
| Specific internal energy of the gas .
|
|
template<class Evaluation > |
static Evaluation | liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure) |
| Specific internal energy of the liquid .
|
|
template<class Evaluation > |
static Evaluation | gasPressure (const Evaluation &temperature, Scalar density) |
| The pressure of gas in at a given density and temperature.
|
|
template<class Evaluation > |
static Evaluation | liquidPressure (const Evaluation &temperature, Scalar density) |
| The pressure of liquid in 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 .
|
|
template<class Evaluation > |
static Evaluation | liquidDensity (const Evaluation &temperature, const Evaluation &pressure) |
| The density of liquid at a given pressure and temperature .
|
|
template<class Evaluation > |
static Evaluation | gasViscosity (const Evaluation &temperature, const Evaluation &pressure) |
| The dynamic viscosity of gas.
|
|
template<class Evaluation > |
static Evaluation | liquidViscosity (const Evaluation &temperature, const Evaluation &pressure) |
| The dynamic viscosity of liquid.
|
|
template<class Evaluation > |
static Evaluation | gasThermalConductivity (const Evaluation &temperature, const Evaluation &pressure) |
| The thermal conductivity of gaseous water .
|
|
template<class Evaluation > |
static Evaluation | liquidThermalConductivity (const Evaluation &temperature, const Evaluation &pressure) |
| The thermal conductivity of liquid water .
|
|
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] |