Opm::Xylene< Scalar > Class Template Reference

Component for Xylene. More...

#include <Xylene.hpp>

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

Public Types

typedef Scalar Scalar
 

Static Public Member Functions

static const char * name ()
 A human readable name for the xylene. More...
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of xylene. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of xylene. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of xylene. More...
 
static Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at xylene's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at xylene's triple point. More...
 
template<class Evaluation >
static Evaluation vaporPressure (const Evaluation &temperature)
 The saturation vapor pressure in $\mathrm{[Pa]}$ of pure xylene at a given temperature according to Antoine after Betz 1997 -> Gmehling et al 1980. More...
 
template<class Evaluation >
static Evaluation spHeatCapLiquidPhase (const Evaluation &temperature, const Evaluation &)
 Specific heat cap of liquid xylene $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid. More...
 
static Scalar boilingTemperature ()
 Returns the temperature $\mathrm{[K]}$ at xylene's boiling point (1 atm). More...
 
template<class Evaluation >
static Evaluation heatVap (Evaluation temperature, const Evaluation &)
 Latent heat of vaporization for xylene $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density in $\mathrm{[kg/m^3]}$ of the component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
template<class Evaluation >
static Evaluation molarGasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density $\mathrm{[mol/m^3]}$ of xylene gas at a given pressure and temperature. More...
 
template<class Evaluation >
static Evaluation molarLiquidDensity (Evaluation temperature, const Evaluation &)
 The molar density of pure xylene at a given pressure and temperature $\mathrm{[mol/m^3]}$. More...
 
template<class Evaluation >
static Evaluation liquidDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. 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 bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible. More...
 
template<class Evaluation >
static Evaluation gasViscosity (Evaluation temperature, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
template<class Evaluation >
static Evaluation liquidViscosity (Evaluation temperature, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component. 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 Evaluation gasInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
static Evaluation liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid. More...
 
static Evaluation gasViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component. More...
 
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a gas. More...
 
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a liquid. More...
 
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas. 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::Xylene< Scalar >

Component for Xylene.

Template Parameters
ScalarThe type used for scalar values

Member Typedef Documentation

◆ Scalar

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

Member Function Documentation

◆ acentricFactor()

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

Returns the acentric factor of the component.

◆ boilingTemperature()

template<class Scalar >
static Scalar Opm::Xylene< Scalar >::boilingTemperature ( )
inlinestatic

Returns the temperature $\mathrm{[K]}$ at xylene's boiling point (1 atm).

Referenced by Opm::Xylene< Scalar >::heatVap().

◆ criticalPressure()

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

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

Referenced by Opm::Xylene< Scalar >::heatVap().

◆ criticalTemperature()

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

◆ criticalVolume()

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

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

◆ gasDensity()

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

The density in $\mathrm{[kg/m^3]}$ of the 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]}$

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

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::density(), and Opm::Xylene< Scalar >::molarGasDensity().

◆ gasEnthalpy()

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

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

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

The relation used here is true on the vapor pressure curve, i.e. as long as there is a liquid phase present.

References Opm::Xylene< Scalar >::heatVap(), and Opm::Xylene< Scalar >::liquidEnthalpy().

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::enthalpy().

◆ gasHeatCapacity()

static Evaluation Opm::Component< Scalar , Xylene< Scalar > >::gasHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

◆ gasInternalEnergy()

static Evaluation Opm::Component< Scalar , Xylene< Scalar > >::gasInternalEnergy ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

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

◆ gasIsCompressible()

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

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

◆ gasIsIdeal()

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

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

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

◆ gasThermalConductivity()

static Evaluation Opm::Component< Scalar , Xylene< Scalar > >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

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

◆ gasViscosity() [1/2]

static Evaluation Opm::Component< Scalar , Xylene< Scalar > >::gasViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestaticinherited

The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure 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]}$

◆ gasViscosity() [2/2]

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

The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure 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]}$

References Opm::Xylene< Scalar >::criticalTemperature(), Opm::exp(), Opm::max(), Opm::min(), and Opm::pow().

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

◆ heatVap()

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

Latent heat of vaporization for xylene $\mathrm{[J/kg]}$.

source : Reid et al. (fourth edition): Chen method (chap. 7-11, Delta H_v = Delta H_v (T) according to chap. 7-12)

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

References Opm::Xylene< Scalar >::boilingTemperature(), Opm::Xylene< Scalar >::criticalPressure(), Opm::Xylene< Scalar >::criticalTemperature(), Opm::log(), Opm::max(), Opm::min(), Opm::Xylene< Scalar >::molarMass(), Opm::pow(), and Opm::Constants< Scalar >::R.

Referenced by Opm::Xylene< Scalar >::gasEnthalpy().

◆ init()

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

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

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]}$

References Opm::Xylene< Scalar >::molarLiquidDensity(), and Opm::Xylene< Scalar >::molarMass().

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

◆ liquidEnthalpy()

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

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

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

References Opm::Xylene< Scalar >::spHeatCapLiquidPhase().

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::enthalpy(), and Opm::Xylene< Scalar >::gasEnthalpy().

◆ liquidHeatCapacity()

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

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

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::isCompressible().

◆ liquidThermalConductivity()

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

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

◆ liquidViscosity() [1/2]

static Evaluation Opm::Component< Scalar , Xylene< 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]}$

◆ liquidViscosity() [2/2]

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

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

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

References Opm::exp(), Opm::max(), and Opm::min().

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

◆ molarGasDensity()

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

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

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

References Opm::Xylene< Scalar >::gasDensity(), and Opm::Xylene< Scalar >::molarMass().

◆ molarLiquidDensity()

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

The molar density of pure xylene at a given pressure and temperature $\mathrm{[mol/m^3]}$.

source : Reid et al. (fourth edition): Modified Racket technique (chap. 3-11, eq. 3-11.9)

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

References Opm::Xylene< Scalar >::criticalTemperature(), Opm::max(), Opm::min(), and Opm::pow().

Referenced by Opm::Xylene< Scalar >::liquidDensity().

◆ molarMass()

◆ name()

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

A human readable name for the xylene.

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::componentName().

◆ spHeatCapLiquidPhase()

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

Specific heat cap of liquid xylene $\mathrm{[J/kg]}$.

source : Reid et al. (fourth edition): Missenard group contrib. method (chap 5-7, Table 5-11, s. example 5-8)

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

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

Referenced by Opm::Xylene< Scalar >::liquidEnthalpy().

◆ triplePressure()

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

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

◆ tripleTemperature()

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

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

◆ vaporPressure()

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

The saturation vapor pressure in $\mathrm{[Pa]}$ of pure xylene at a given temperature according to Antoine after Betz 1997 -> Gmehling et al 1980.

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

References Opm::pow().

Referenced by Opm::H2OAirXyleneFluidSystem< Scalar >::fugacityCoefficient(), and Opm::H2OAirXyleneFluidSystem< Scalar >::viscosity().

Member Data Documentation

◆ isTabulated

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

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