Opm::GasPvtMultiplexer< Scalar > Singleton Reference

This class represents the Pressure-Volume-Temperature relations of the gas phase in the black-oil model. More...

#include <ConstantCompressibilityOilPvt.hpp>

Public Types

enum  GasPvtApproach { NoGasPvt, DryGasPvt, WetGasPvt }
 

Public Member Functions

 GasPvtMultiplexer ()
 
 ~GasPvtMultiplexer ()
 
void setApproach (GasPvtApproach gasPvtApproach)
 
void initEnd (const OilPvtMultiplexer *oilPvt)
 
template<class Evaluation = Scalar>
Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &XgO) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. More...
 
template<class Evaluation = Scalar>
Evaluation formationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &XgO) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
template<class Evaluation = Scalar>
Evaluation density (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &XgO) const
 Returns the density [kg/m^3] of the fluid phase given a set of parameters. More...
 
template<class Evaluation = Scalar>
Evaluation fugacityCoefficientGas (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the fugacity coefficient [Pa] of the gas component in the gas phase given a set of parameters. More...
 
template<class Evaluation = Scalar>
Evaluation fugacityCoefficientOil (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation = Scalar>
Evaluation fugacityCoefficientWater (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation = Scalar>
Evaluation oilVaporizationFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the oil vaporization factor $R_v$ [m^3/m^3] of oil saturated gas. More...
 
template<class Evaluation = Scalar>
Evaluation gasSaturationPressure (unsigned regionIdx, const Evaluation &temperature, const Evaluation &XgO) const
 Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the oil component. More...
 
template<class Evaluation = Scalar>
Evaluation saturatedGasOilMassFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the gas mass fraction of oil-saturated gas at a given temperatire and pressure [-]. More...
 
template<class Evaluation = Scalar>
Evaluation saturatedGasOilMoleFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the gas mole fraction of oil-saturated gas at a given temperatire and pressure [-]. More...
 
GasPvtApproach gasPvtApproach () const
 
template<GasPvtApproach approachV>
std::enable_if< approachV==DryGasPvt,
Opm::DryGasPvt< Scalar >
>::type & 
getRealGasPvt ()
 
template<GasPvtApproach approachV>
std::enable_if< approachV==DryGasPvt,
const Opm::DryGasPvt< Scalar >
>::type & 
getRealGasPvt () const
 
template<GasPvtApproach approachV>
std::enable_if< approachV==WetGasPvt,
Opm::WetGasPvt< Scalar >
>::type & 
getRealGasPvt ()
 
template<GasPvtApproach approachV>
std::enable_if< approachV==WetGasPvt,
const Opm::WetGasPvt< Scalar >
>::type & 
getRealGasPvt () const
 

Detailed Description

template<class Scalar>
singleton Opm::GasPvtMultiplexer< Scalar >

This class represents the Pressure-Volume-Temperature relations of the gas phase in the black-oil model.

This is a multiplexer class which forwards all calls to the real implementation.

Note that, since the main application for this class is the black oil fluid system, the API exposed by this class is pretty specific to the assumptions made by the black oil model.

Member Enumeration Documentation

template<class Scalar >
enum Opm::GasPvtMultiplexer::GasPvtApproach
Enumerator
NoGasPvt 
DryGasPvt 
WetGasPvt 

Constructor & Destructor Documentation

template<class Scalar >
Opm::GasPvtMultiplexer< Scalar >::GasPvtMultiplexer ( )
inline
template<class Scalar >
Opm::GasPvtMultiplexer< Scalar >::~GasPvtMultiplexer ( )
inline

Member Function Documentation

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::density ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  XgO 
) const
inline

Returns the density [kg/m^3] of the fluid phase given a set of parameters.

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::formationVolumeFactor ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  XgO 
) const
inline

Returns the formation volume factor [-] of the fluid phase.

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::fugacityCoefficientGas ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline

Returns the fugacity coefficient [Pa] of the gas component in the gas phase given a set of parameters.

References OPM_GAS_PVT_MULTIPLEXER_CALL.

Referenced by Opm::LiveOilPvt< Scalar >::fugacityCoefficientGas().

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::fugacityCoefficientOil ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::fugacityCoefficientWater ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
GasPvtApproach Opm::GasPvtMultiplexer< Scalar >::gasPvtApproach ( ) const
inline
template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::gasSaturationPressure ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  XgO 
) const
inline

Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the oil component.

Parameters
XgOThe mass fraction of the oil component in the gas phase [-]

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
template<GasPvtApproach approachV>
std::enable_if<approachV == DryGasPvt, Opm::DryGasPvt<Scalar> >::type& Opm::GasPvtMultiplexer< Scalar >::getRealGasPvt ( )
inline
template<class Scalar >
template<GasPvtApproach approachV>
std::enable_if<approachV == DryGasPvt, const Opm::DryGasPvt<Scalar> >::type& Opm::GasPvtMultiplexer< Scalar >::getRealGasPvt ( ) const
inline
template<class Scalar >
template<GasPvtApproach approachV>
std::enable_if<approachV == WetGasPvt, Opm::WetGasPvt<Scalar> >::type& Opm::GasPvtMultiplexer< Scalar >::getRealGasPvt ( )
inline
template<class Scalar >
template<GasPvtApproach approachV>
std::enable_if<approachV == WetGasPvt, const Opm::WetGasPvt<Scalar> >::type& Opm::GasPvtMultiplexer< Scalar >::getRealGasPvt ( ) const
inline
template<class Scalar >
void Opm::GasPvtMultiplexer< Scalar >::initEnd ( const OilPvtMultiplexer oilPvt)
inline
template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::oilVaporizationFactor ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline

Returns the oil vaporization factor $R_v$ [m^3/m^3] of oil saturated gas.

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::saturatedGasOilMassFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline

Returns the gas mass fraction of oil-saturated gas at a given temperatire and pressure [-].

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::saturatedGasOilMoleFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline

Returns the gas mole fraction of oil-saturated gas at a given temperatire and pressure [-].

References OPM_GAS_PVT_MULTIPLEXER_CALL.

template<class Scalar >
void Opm::GasPvtMultiplexer< Scalar >::setApproach ( GasPvtApproach  gasPvtApproach)
inline
template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar >::viscosity ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  XgO 
) const
inline

Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.

References OPM_GAS_PVT_MULTIPLEXER_CALL.


The documentation for this singleton was generated from the following files: