Properties of pure molecular nitrogen $N_2$. More...

#include <N2.hpp>

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

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static const char * name ()
 A human readable name for nitrogen. More...
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of molecular nitrogen. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of molecular nitrogen. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of molecular nitrogen. More...
 
static Scalar criticalVolume ()
 Critical volume of $N_2$ [m2/kmol]. More...
 
static Scalar acentricFactor ()
 Acentric factor of $N_2$. More...
 
static Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at molecular nitrogen's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at molecular nitrogen's triple point. More...
 
template<class Evaluation >
static Evaluation vaporPressure (const Evaluation &temperature)
 The vapor pressure in $\mathrm{[Pa]}$ of pure molecular nitrogen at a given temperature. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density $\mathrm{[kg/m^3]}$ of $N_2$ gas at a given pressure and temperature. 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...
 
template<class Evaluation >
static Evaluation gasPressure (const Evaluation &temperature, const Evaluation &density)
 The pressure of gaseous $N_2$ in $\mathrm{[Pa]}$ at a given density and temperature. More...
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of pure nitrogen gas. More...
 
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy $\mathrm{[J/kg]}$ of pure nitrogen gas. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &temperature, const Evaluation &)
 Specific isobaric heat capacity $[J/(kg K)]$ of pure nitrogen gas. More...
 
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &temperature, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of $N_2$ at a given pressure and temperature. More...
 
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of steam $\mathrm{[W/(m K)]}$. 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 bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible. 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::N2< Scalar >

Properties of pure molecular nitrogen $N_2$.

Template Parameters
ScalarThe type used for scalar values

Member Typedef Documentation

◆ Scalar

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

Member Function Documentation

◆ acentricFactor()

template<class Scalar >
static Scalar Opm::N2< Scalar >::acentricFactor ( )
inlinestatic

◆ criticalPressure()

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

◆ criticalTemperature()

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

◆ criticalVolume()

template<class Scalar >
static Scalar Opm::N2< Scalar >::criticalVolume ( )
inlinestatic

Critical volume of $N_2$ [m2/kmol].

◆ gasDensity()

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

The density $\mathrm{[kg/m^3]}$ of $N_2$ gas at a given pressure and temperature.

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

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

Referenced by Opm::H2ON2FluidSystem< Scalar >::density().

◆ gasEnthalpy()

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

Specific enthalpy $\mathrm{[J/kg]}$ of pure nitrogen gas.

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

See: R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp 154, 657, 665

References Opm::N2< Scalar >::molarMass().

Referenced by Opm::H2ON2FluidSystem< Scalar >::enthalpy(), and Opm::N2< Scalar >::gasInternalEnergy().

◆ gasHeatCapacity()

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

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

This is equivalent to the partial derivative of the specific enthalpy to the temperature.

References Opm::N2< Scalar >::molarMass().

Referenced by Opm::H2ON2FluidSystem< Scalar >::heatCapacity().

◆ gasInternalEnergy()

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

Specific enthalpy $\mathrm{[J/kg]}$ of pure nitrogen gas.

   Definition of enthalpy: \f$h= u + pv = u + p / \rho\f$.

   Rearranging for internal energy yields: \f$u = h - pv\f$.

   Exploiting the Ideal Gas assumption (\f$pv = R_{\textnormal{specific}} T\f$)gives: \f$u = h - R / M T \f$.

   The universal gas constant can only be used in the case of molar formulations.
Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

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

◆ gasIsCompressible()

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

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

◆ gasIsIdeal()

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

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

Referenced by Opm::H2ON2FluidSystem< Scalar >::isIdealGas().

◆ gasPressure()

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

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

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

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

◆ gasThermalConductivity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::N2< 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::H2ON2FluidSystem< Scalar >::thermalConductivity().

◆ gasViscosity()

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

The dynamic viscosity $\mathrm{[Pa*s]}$ of $N_2$ 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, 5th edition, McGraw-Hill, 2001 pp 9.7-9.8 (omega and V_c taken from p. A.19)

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

Referenced by Opm::H2ON2FluidSystem< Scalar >::viscosity().

◆ init()

static void Opm::Component< Scalar , N2< 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 , N2< 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 , N2< 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 , N2< 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 , N2< 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()

static bool Opm::Component< Scalar , N2< Scalar > >::liquidIsCompressible ( )
inlinestaticinherited

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

◆ liquidThermalConductivity()

static Evaluation Opm::Component< Scalar , N2< 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 , N2< 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()

template<class Scalar >
static const char * Opm::N2< Scalar >::name ( )
inlinestatic

◆ triplePressure()

template<class Scalar >
static Scalar Opm::N2< Scalar >::triplePressure ( )
inlinestatic

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

◆ tripleTemperature()

template<class Scalar >
static Scalar Opm::N2< Scalar >::tripleTemperature ( )
inlinestatic

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

Referenced by Opm::N2< Scalar >::vaporPressure().

◆ vaporPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::N2< Scalar >::vaporPressure ( const Evaluation &  temperature)
inlinestatic

The vapor pressure in $\mathrm{[Pa]}$ of pure molecular nitrogen at a given temperature.

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

Taken from:

R. Span, E.W. Lemmon, et al.: "A Reference Equation of State for the Thermodynamic Properties of Nitrogen for Temperatures from 63.151 to 1000 K and Pressures to 2200 MPa", Journal of Physical and Chemical Refefence Data, Vol. 29, No. 6, pp. 1361-1433

References Opm::N2< Scalar >::criticalPressure(), Opm::N2< Scalar >::criticalTemperature(), Opm::exp(), Opm::sqrt(), and Opm::N2< Scalar >::tripleTemperature().

Member Data Documentation

◆ isTabulated

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

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