A simple class implementing the fluid properties of air. More...

#include <Air.hpp>

Inheritance diagram for Opm::Air< Scalar >:
Inheritance graph

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible. More...
 
static const char * name ()
 A human readable name for the $Air$. More...
 
static bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible. More...
 
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal. More...
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of $AIR$. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of $AIR$. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of $AIR$. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density of $AIR$ at a given pressure and temperature [kg/m^3]. More...
 
template<class Evaluation >
static Evaluation gasPressure (const Evaluation &temperature, Scalar density)
 The pressure of gaseous $AIR$ at a given density and temperature $\mathrm{[Pa]}$. More...
 
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &temperature, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of $AIR$ at a given pressure and temperature. More...
 
template<class Evaluation >
static Evaluation simpleGasViscosity (const Evaluation &temperature, const Evaluation &)
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy of liquid water $\mathrm{[J/kg]}$ with 273.15 K as basis. See: W. Kays, M. Crawford, B. Weigand Convective heat and mass transfer, 4th edition (2005) p. 431ff. More...
 
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of $AIR$ $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of steam $\mathrm{[W/(m K)]}$. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity $[J/(kg K)]$ of pure air. More...
 
static void init (Scalar, Scalar, unsigned, Scalar, Scalar, unsigned)
 A default routine for initialization, not needed for components and must not be called. More...
 
static Scalar acentricFactor ()
 Returns the acentric factor of the component. More...
 
static Scalar criticalVolume ()
 Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component. More...
 
static Scalar tripleTemperature ()
 Returns the temperature in $\mathrm{[K]}$ at the component's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point. More...
 
static Evaluation vaporPressure (const Evaluation &)
 The vapor pressure in $\mathrm{[Pa]}$ of the component at a given temperature in $\mathrm{[K]}$. More...
 
static Evaluation liquidDensity (const Evaluation &, const Evaluation &)
 The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
static Evaluation liquidEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid. More...
 
static Evaluation liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid. More...
 
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component. More...
 
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a liquid. More...
 
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid. More...
 

Static Public Attributes

static const bool isTabulated
 

Detailed Description

template<class Scalar>
class Opm::Air< Scalar >

A simple class implementing the fluid properties of air.

Template Parameters
ScalarThe type used for scalar values

Member Typedef Documentation

◆ Scalar

typedef Scalar Opm::Component< Scalar , Air< Scalar > >::Scalar
inherited

Member Function Documentation

◆ acentricFactor()

static Scalar Opm::Component< Scalar , Air< Scalar > >::acentricFactor ( )
inlinestaticinherited

Returns the acentric factor of the component.

◆ criticalPressure()

template<class Scalar >
static Scalar Opm::Air< Scalar >::criticalPressure ( )
inlinestatic

Returns the critical pressure $\mathrm{[Pa]}$ of $AIR$.

Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::criticalPressure().

◆ criticalTemperature()

template<class Scalar >
static Scalar Opm::Air< Scalar >::criticalTemperature ( )
inlinestatic

◆ criticalVolume()

static Scalar Opm::Component< Scalar , Air< Scalar > >::criticalVolume ( )
inlinestaticinherited

Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component.

◆ gasDensity()

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

The density of $AIR$ at a given pressure and temperature [kg/m^3].

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of phase in $\mathrm{[Pa]}$

References Opm::IdealGas< Scalar >::density(), and Opm::Air< Scalar >::molarMass().

Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirMesityleneFluidSystem< Scalar >::density(), and Opm::H2OAirXyleneFluidSystem< Scalar >::density().

◆ gasEnthalpy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

Specific enthalpy of liquid water $\mathrm{[J/kg]}$ with 273.15 K as basis. See: W. Kays, M. Crawford, B. Weigand Convective heat and mass transfer, 4th edition (2005) p. 431ff.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::enthalpy(), Opm::H2OAirMesityleneFluidSystem< Scalar >::enthalpy(), Opm::H2OAirXyleneFluidSystem< Scalar >::enthalpy(), and Opm::Air< Scalar >::gasInternalEnergy().

◆ gasHeatCapacity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::gasHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific isobaric heat capacity $[J/(kg K)]$ of pure air.

This methods uses the formula for "zero-pressure" heat capacity that is only dependent on temperature, because the pressure dependence is rather small. This one should be accurate for a pressure of 1 atm. Values taken from NASA Contractor Report 4755, Real-Gas Flow Properties for NASA Langley Research Center Aerothermodynamic Facilities Complex Wind Tunnels using data from Hilsenrath et al 1955, "Tables of Thermal Properties of Gases"

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasInternalEnergy()

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

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

Definition of enthalpy: $h= u + pv = u + p / \rho$. Rearranging for internal energy yields: $u = h - pv$. Exploiting the Ideal Gas assumption ( $pv = R_{\textnormal{specific}} T$)gives: $u = h - R / M T $.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

References Opm::Air< Scalar >::gasEnthalpy(), Opm::Air< Scalar >::molarMass(), and Opm::IdealGas< Scalar >::R.

◆ gasIsCompressible()

template<class Scalar >
static bool Opm::Air< Scalar >::gasIsCompressible ( )
inlinestatic

Returns true iff the gas phase is assumed to be compressible.

◆ gasIsIdeal()

template<class Scalar >
static bool Opm::Air< Scalar >::gasIsIdeal ( )
inlinestatic

◆ gasPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::gasPressure ( const Evaluation &  temperature,
Scalar  density 
)
inlinestatic

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

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
densitydensity of component in $\mathrm{[kg/m^3]}$

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

◆ gasThermalConductivity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific heat conductivity of steam $\mathrm{[W/(m K)]}$.

Isobaric Properties for Nitrogen in: NIST Standard Reference Database Number 69, Eds. P.J. Linstrom and W.G. Mallard evaluated at p=.1 MPa, T=8°C, does not change dramatically with p,T

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::thermalConductivity(), and Opm::H2OAirMesityleneFluidSystem< Scalar >::thermalConductivity().

◆ gasViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::gasViscosity ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

The dynamic viscosity $\mathrm{[Pa*s]}$ of $AIR$ at a given pressure and temperature.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

See:

See: R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp 396-397, 667 5th edition, McGraw-Hill, 2001, pp 9.7-9.8

accentric factor taken from: Journal of Energy Resources Technology, March 2005, Vol 127 Formulation for the Thermodynamic Properties Georeg A. Abediyi University, Mississippi State

V_c = (R*T_c)/p_c

References Opm::Air< Scalar >::criticalTemperature(), Opm::exp(), Opm::Air< Scalar >::molarMass(), Opm::pow(), and Opm::sqrt().

Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(), and Opm::H2OAirMesityleneFluidSystem< Scalar >::viscosity().

◆ init()

static void Opm::Component< Scalar , Air< Scalar > >::init ( Scalar  ,
Scalar  ,
unsigned  ,
Scalar  ,
Scalar  ,
unsigned   
)
inlinestaticinherited

A default routine for initialization, not needed for components and must not be called.

Parameters
tempMinThe minimum of the temperature range in $\mathrm{[K]}$
tempMaxThe maximum of the temperature range in $\mathrm{[K]}$
nTempThe number of entries/steps within the temperature range
pressMinThe minimum of the pressure range in $\mathrm{[Pa]}$
pressMaxThe maximum of the pressure range in $\mathrm{[Pa]}$
nPressThe number of entries/steps within the pressure range

This function throws a warning when called: "No init routine defined - make sure that this is not necessary!"

◆ liquidDensity()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidDensity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidEnthalpy()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidEnthalpy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidHeatCapacity()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

Specific isobaric heat capacity of the component [J/kg] as a liquid.

◆ liquidInternalEnergy()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidInternalEnergy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidIsCompressible()

template<class Scalar >
static bool Opm::Air< Scalar >::liquidIsCompressible ( )
inlinestatic

Returns true iff the liquid phase is assumed to be compressible.

◆ liquidThermalConductivity()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

Thermal conductivity of the component [W/(m^2 K/m)] as a liquid.

◆ liquidViscosity()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::liquidViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ molarMass()

◆ name()

◆ simpleGasViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::Air< Scalar >::simpleGasViscosity ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

◆ triplePressure()

static Scalar Opm::Component< Scalar , Air< Scalar > >::triplePressure ( )
inlinestaticinherited

Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point.

◆ tripleTemperature()

static Scalar Opm::Component< Scalar , Air< Scalar > >::tripleTemperature ( )
inlinestaticinherited

Returns the temperature in $\mathrm{[K]}$ at the component's triple point.

◆ vaporPressure()

static Evaluation Opm::Component< Scalar , Air< Scalar > >::vaporPressure ( const Evaluation &  )
inlinestaticinherited

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

Parameters
temperaturetemperature of the component in $\mathrm{[K]}$

Member Data Documentation

◆ isTabulated

const bool Opm::Component< Scalar , Air< Scalar > >::isTabulated
staticinherited

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