Opm::GasPvtMultiplexer< Scalar, enableThermal > Class Template Reference

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

#include <GasPvtMultiplexer.hpp>

List of all members.

Public Types

enum  GasPvtApproach { NoGasPvt, DryGasPvt, WetGasPvt, ThermalGasPvt }
typedef Opm::GasPvtThermal
< Scalar > 
GasPvtThermal

Public Member Functions

void setApproach (GasPvtApproach gasPvtAppr)
void initEnd ()
unsigned numRegions () const
 Return the number of PVT regions which are considered by this PVT-object.
template<class Evaluation = Scalar>
Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
template<class Evaluation = Scalar>
Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of oil saturated gas given a set of parameters.
template<class Evaluation = Scalar>
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv) const
 Returns the formation volume factor [-] of the fluid phase.
template<class Evaluation = Scalar>
Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the formation volume factor [-] of oil saturated gas given a set of parameters.
template<class Evaluation = Scalar>
Evaluation saturatedOilVaporizationFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the oil vaporization factor $R_v$ [m^3/m^3] of oil saturated gas.
template<class Evaluation = Scalar>
Evaluation saturatedOilVaporizationFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &oilSaturation, Scalar maxOilSaturation) const
 Returns the oil vaporization factor $R_v$ [m^3/m^3] of oil saturated gas.
template<class Evaluation = Scalar>
Evaluation saturationPressure (unsigned regionIdx, const Evaluation &temperature, const Evaluation &Rv) const
 Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the oil component.
GasPvtApproach gasPvtApproach () const
 Returns the concrete approach for calculating the PVT relations.
template<GasPvtApproach approachV>
std::enable_if< approachV==DryGasPvt,
Opm::DryGasPvt< Scalar >
>::type
getRealPvt ()
template<GasPvtApproach approachV>
std::enable_if< approachV==DryGasPvt,
const Opm::DryGasPvt< Scalar >
>::type
getRealPvt () const
template<GasPvtApproach approachV>
std::enable_if< approachV==WetGasPvt,
Opm::WetGasPvt< Scalar >
>::type
getRealPvt ()
template<GasPvtApproach approachV>
std::enable_if< approachV==WetGasPvt,
const Opm::WetGasPvt< Scalar >
>::type
getRealPvt () const
template<GasPvtApproach approachV>
std::enable_if< approachV==ThermalGasPvt,
Opm::GasPvtThermal< Scalar >
>::type
getRealPvt ()
template<GasPvtApproach approachV>
std::enable_if< approachV==ThermalGasPvt,
const Opm::GasPvtThermal
< Scalar > >::type
getRealPvt () const

Detailed Description

template<class Scalar, bool enableThermal = true>
class Opm::GasPvtMultiplexer< Scalar, enableThermal >

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 Function Documentation

template<class Scalar , bool enableThermal = true>
GasPvtApproach Opm::GasPvtMultiplexer< Scalar, enableThermal >::gasPvtApproach (  )  const [inline]

Returns the concrete approach for calculating the PVT relations.

(This is only determined at runtime.)

template<class Scalar , bool enableThermal = true>
template<class Evaluation = Scalar>
Evaluation Opm::GasPvtMultiplexer< Scalar, enableThermal >::saturationPressure ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  Rv 
) const [inline]

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

Parameters:
Rv The surface volume of oil component dissolved in what will yield one cubic meter of gas at the surface [-]

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

Generated on 25 Mar 2018 by  doxygen 1.6.1