Opm::LiveOilPvt< Scalar > Class Template Reference

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

#include <LiveOilPvt.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 setSaturatedOilGasDissolutionFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the gas dissolution factor $R_s$. More...
 
void setSaturatedOilFormationVolumeFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the oil formation volume factor. More...
 
void setInverseOilFormationVolumeFactor (unsigned regionIdx, const TabulatedTwoDFunction &invBo)
 Initialize the spline for the oil formation volume factor. More...
 
void setOilViscosity (unsigned regionIdx, const TabulatedTwoDFunction &muo)
 Initialize the viscosity of the oil phase. More...
 
void setSaturatedOilViscosity (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the phase viscosity for gas saturated oil. More...
 
void initEnd (const GasPvtMultiplexer *gasPvt)
 Finish initializing the oil phase PVT properties. More...
 
template<class Evaluation >
Evaluation viscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &XoG) 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 &XoG) 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 &XoG) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
template<class Evaluation >
Evaluation fugacityCoefficientOil (unsigned, const Evaluation &, const Evaluation &pressure) const
 Returns the fugacity coefficient [Pa] of a component in the fluid phase given a set of parameters. More...
 
template<class Evaluation >
Evaluation fugacityCoefficientWater (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation fugacityCoefficientGas (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation gasDissolutionFactor (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 oilSaturationPressure (unsigned regionIdx, const Evaluation &temperature, const Evaluation &XoG) const
 Returns the saturation pressure of the oil phase [Pa] depending on its mass fraction of the gas component. More...
 
template<class Evaluation >
Evaluation saturatedOilGasMassFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 
template<class Evaluation >
Evaluation saturatedOilGasMoleFraction (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 

Detailed Description

template<class Scalar>
class Opm::LiveOilPvt< Scalar >

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

Member Function Documentation

template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::density ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  XoG 
) const
inline

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

References Valgrind::CheckDefined(), and Opm::LiveOilPvt< Scalar >::formationVolumeFactor().

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

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

References Valgrind::CheckDefined().

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

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

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

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

template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::fugacityCoefficientWater ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::gasDissolutionFactor ( 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::LiveOilPvt< Scalar >::saturatedOilGasMassFraction().

template<class Scalar >
void Opm::LiveOilPvt< Scalar >::initEnd ( const GasPvtMultiplexer gasPvt)
inline

Finish initializing the oil phase PVT properties.

template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::oilSaturationPressure ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  XoG 
) const
inline

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

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

References Opm::LocalAd::abs(), and Opm::LiveOilPvt< Scalar >::saturatedOilGasMassFraction().

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

template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::saturatedOilGasMassFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
template<class Evaluation >
Evaluation Opm::LiveOilPvt< Scalar >::saturatedOilGasMoleFraction ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline
template<class Scalar >
void Opm::LiveOilPvt< Scalar >::setInverseOilFormationVolumeFactor ( unsigned  regionIdx,
const TabulatedTwoDFunction invBo 
)
inline

Initialize the spline for the oil formation volume factor.

The oil formation volume factor $B_o$ is a function of $(p_o, X_o^G)$ and represents the partial density of the oil component in the oil phase at a given pressure.

This method sets $1/B_o(R_s, p_o)$. Note that instead of the mass fraction of the gas component in the oil 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::LiveOilPvt< 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::LiveOilPvt< Scalar >::setNumRegions ( size_t  numRegions)
inline
template<class Scalar >
void Opm::LiveOilPvt< Scalar >::setOilViscosity ( unsigned  regionIdx,
const TabulatedTwoDFunction muo 
)
inline

Initialize the viscosity of the oil phase.

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

template<class Scalar >
void Opm::LiveOilPvt< 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::LiveOilPvt< Scalar >::setSaturatedOilFormationVolumeFactor ( unsigned  regionIdx,
const SamplingPoints &  samplePoints 
)
inline

Initialize the function for the oil formation volume factor.

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

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

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

Initialize the function for the gas dissolution factor $R_s$.

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

Initialize the phase viscosity for gas saturated oil.

The oil viscosity is a function of $(p_o, X_o^G)$, but this method only requires the viscosity of gas-saturated oil (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::LiveOilPvt< Scalar >::viscosity ( unsigned  regionIdx,
const Evaluation &  ,
const Evaluation &  pressure,
const Evaluation &  XoG 
) 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: