Opm::WetGasPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the gas phas with vaporized oil. More...

#include <WetGasPvt.hpp>

Public Member Functions

void setNumRegions (size_t numRegions)
 
void setReferenceDensities (unsigned regionIdx, Scalar rhoRefOil, Scalar rhoRefGas, Scalar)
 Initialize the reference densities of all fluids for a given PVT region. More...
 
void setMolarMasses (unsigned regionIdx, Scalar MOil, Scalar MGas, Scalar)
 Initialize the reference densities of all fluids for a given PVT region. More...
 
void setSaturatedGasOilVaporizationFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the oil vaporization factor $R_v$. More...
 
void setSaturatedGasFormationVolumeFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the gas formation volume factor. More...
 
void setInverseGasFormationVolumeFactor (unsigned regionIdx, const TabulatedTwoDFunction &invBg)
 Initialize the function for the gas formation volume factor. More...
 
void setGasViscosity (unsigned regionIdx, const TabulatedTwoDFunction &mug)
 Initialize the viscosity of the gas phase. More...
 
void setSaturatedGasViscosity (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the phase viscosity for oil saturated gas. More...
 
void initEnd (const OilPvtMultiplexer *oilPvt)
 Finish initializing the gas phase PVT properties. More...
 
template<class Evaluation >
Evaluation viscosity (unsigned regionIdx, const Evaluation &, 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 >
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 >
Evaluation formationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &XgO) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
template<class Evaluation >
Evaluation fugacityCoefficientGas (unsigned, const Evaluation &, const Evaluation &) const
 Returns the fugacity coefficient [Pa] of a component in the fluid phase given a set of parameters. More...
 
template<class Evaluation >
Evaluation fugacityCoefficientOil (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation fugacityCoefficientWater (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation oilVaporizationFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the gas dissolution factor $R_s$ [m^3/m^3] of the oil phase. More...
 
template<class Evaluation >
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 >
Evaluation saturatedGasOilMassFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation saturatedGasOilMoleFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 

Detailed Description

template<class Scalar>
class Opm::WetGasPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the gas phas with vaporized oil.

Member Function Documentation

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< 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::WetGasPvt< Scalar >::formationVolumeFactor().

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

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

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

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::fugacityCoefficientGas ( unsigned  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

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

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::fugacityCoefficientOil ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::fugacityCoefficientWater ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< 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::LocalAd::abs(), and Opm::WetGasPvt< Scalar >::saturatedGasOilMassFraction().

Referenced by Opm::WetGasPvt< Scalar >::setSaturatedGasFormationVolumeFactor().

template<class Scalar >
void Opm::WetGasPvt< Scalar >::initEnd ( const OilPvtMultiplexer oilPvt)
inline

Finish initializing the gas phase PVT properties.

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::oilVaporizationFactor ( unsigned  regionIdx,
const Evaluation &  ,
const Evaluation &  pressure 
) const
inline

Returns the gas dissolution factor $R_s$ [m^3/m^3] of the oil phase.

Referenced by Opm::WetGasPvt< Scalar >::saturatedGasOilMassFraction().

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::saturatedGasOilMassFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::saturatedGasOilMoleFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
void Opm::WetGasPvt< Scalar >::setGasViscosity ( unsigned  regionIdx,
const TabulatedTwoDFunction mug 
)
inline

Initialize the viscosity of the gas phase.

This is a function of $(R_s, p_o)$...

template<class Scalar >
void Opm::WetGasPvt< Scalar >::setInverseGasFormationVolumeFactor ( unsigned  regionIdx,
const TabulatedTwoDFunction invBg 
)
inline

Initialize the function for the gas formation volume factor.

The gas formation volume factor $B_g$ is a function of $(p_g, X_g^O)$ and represents the partial density of the oil component in the gas phase at a given pressure.

This method sets $1/B_g(R_v, p_g)$. Note that instead of the mass fraction of the oil component in the gas phase, this function depends on the gas dissolution factor. Also note, that the order of the arguments needs to be $(R_s, p_o)$ and not the other way around.

template<class Scalar >
void Opm::WetGasPvt< Scalar >::setMolarMasses ( unsigned  regionIdx,
Scalar  MOil,
Scalar  MGas,
Scalar   
)
inline

Initialize the reference densities of all fluids for a given PVT region.

template<class Scalar >
void Opm::WetGasPvt< Scalar >::setNumRegions ( size_t  numRegions)
inline
template<class Scalar >
void Opm::WetGasPvt< Scalar >::setReferenceDensities ( unsigned  regionIdx,
Scalar  rhoRefOil,
Scalar  rhoRefGas,
Scalar   
)
inline

Initialize the reference densities of all fluids for a given PVT region.

template<class Scalar >
void Opm::WetGasPvt< Scalar >::setSaturatedGasFormationVolumeFactor ( unsigned  regionIdx,
const SamplingPoints &  samplePoints 
)
inline

Initialize the function for the gas formation volume factor.

The gas formation volume factor $B_g$ is a function of $(p_g, X_g^O)$ and represents the partial density of the oil component in the gas phase at a given pressure. This method only requires the volume factor of oil-saturated gas (which only depends on pressure) while the dependence on the oil mass fraction is guesstimated...

References Opm::Spline< Scalar >::eval(), Opm::WetGasPvt< Scalar >::gasSaturationPressure(), Opm::Spline< Scalar >::Monotonic, and Opm::Spline< Scalar >::setContainerOfTuples().

template<class Scalar >
void Opm::WetGasPvt< Scalar >::setSaturatedGasOilVaporizationFactor ( unsigned  regionIdx,
const SamplingPoints &  samplePoints 
)
inline

Initialize the function for the oil vaporization factor $R_v$.

Parameters
samplePointsA container of (x,y) values.
template<class Scalar >
void Opm::WetGasPvt< Scalar >::setSaturatedGasViscosity ( unsigned  regionIdx,
const SamplingPoints &  samplePoints 
)
inline

Initialize the phase viscosity for oil saturated gas.

The gas viscosity is a function of $(p_g, X_g^O)$, but this method only requires the viscosity of oil-saturated gas (which only depends on pressure) while there is assumed to be no dependence on the gas mass fraction...

References Opm::Spline< Scalar >::eval(), Opm::Spline< Scalar >::Monotonic, and Opm::Spline< Scalar >::setContainerOfTuples().

template<class Scalar >
template<class Evaluation >
Evaluation Opm::WetGasPvt< Scalar >::viscosity ( unsigned  regionIdx,
const Evaluation &  ,
const Evaluation &  pressure,
const Evaluation &  XgO 
) const
inline

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


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