Opm::DryGasPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the gas phase without vaporized oil. More...

#include <DryGasPvt.hpp>

Public Types

using TabulatedOneDFunction = Tabulated1DFunction< Scalar >
 

Public Member Functions

 DryGasPvt ()=default
 
 DryGasPvt (const std::vector< Scalar > &gasReferenceDensity, const std::vector< TabulatedOneDFunction > &inverseGasB, const std::vector< TabulatedOneDFunction > &gasMu, const std::vector< TabulatedOneDFunction > &inverseGasBMu)
 
void setNumRegions (size_t numRegions)
 
void setReferenceDensities (unsigned regionIdx, Scalar, Scalar rhoRefGas, Scalar)
 Initialize the reference densities of all fluids for a given PVT region. More...
 
void setMolarMasses (unsigned, Scalar, Scalar, Scalar)
 Initialize the reference densities of all fluids for a given PVT region. More...
 
void setGasViscosity (unsigned regionIdx, const TabulatedOneDFunction &mug)
 Initialize the viscosity of the gas phase. More...
 
void setGasFormationVolumeFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the formation volume factor of dry gas. More...
 
void initEnd ()
 Finish initializing the oil phase PVT properties. More...
 
unsigned numRegions () const
 Return the number of PVT regions which are considered by this PVT-object. More...
 
template<class Evaluation >
Evaluation internalEnergy (unsigned, const Evaluation &, const Evaluation &, const Evaluation &) const
 Returns the specific enthalpy [J/kg] of gas given a set of parameters. More...
 
template<class Evaluation >
Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &, const Evaluation &) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. More...
 
template<class Evaluation >
Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of oil saturated gas at given pressure. More...
 
template<class Evaluation >
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &, const Evaluation &) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
template<class Evaluation >
Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the formation volume factor [-] of oil saturated gas at given pressure. More...
 
template<class Evaluation >
Evaluation saturationPressure (unsigned, const Evaluation &, const Evaluation &) const
 Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the oil component. More...
 
template<class Evaluation >
Evaluation saturatedWaterVaporizationFactor (unsigned, const Evaluation &, const Evaluation &) const
 Returns the water vaporization factor $R_v$ [m^3/m^3] of the water phase. More...
 
template<class Evaluation = Scalar>
Evaluation saturatedWaterVaporizationFactor (unsigned, const Evaluation &, const Evaluation &, const Evaluation &) const
 Returns the water vaporization factor $R_vw$ [m^3/m^3] of water saturated gas. More...
 
template<class Evaluation >
Evaluation saturatedOilVaporizationFactor (unsigned, const Evaluation &, const Evaluation &, const Evaluation &, const Evaluation &) const
 Returns the oil vaporization factor $R_v$ [m^3/m^3] of the oil phase. More...
 
template<class Evaluation >
Evaluation saturatedOilVaporizationFactor (unsigned, const Evaluation &, const Evaluation &) const
 Returns the oil vaporization factor $R_v$ [m^3/m^3] of the oil phase. More...
 
template<class Evaluation >
Evaluation diffusionCoefficient (const Evaluation &, const Evaluation &, unsigned) const
 
const Scalar gasReferenceDensity (unsigned regionIdx) const
 
const std::vector< TabulatedOneDFunction > & inverseGasB () const
 
const std::vector< TabulatedOneDFunction > & gasMu () const
 
const std::vector< TabulatedOneDFunctioninverseGasBMu () const
 
bool operator== (const DryGasPvt< Scalar > &data) const
 

Detailed Description

template<class Scalar>
class Opm::DryGasPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the gas phase without vaporized oil.

Member Typedef Documentation

◆ TabulatedOneDFunction

template<class Scalar >
using Opm::DryGasPvt< Scalar >::TabulatedOneDFunction = Tabulated1DFunction<Scalar>

Constructor & Destructor Documentation

◆ DryGasPvt() [1/2]

template<class Scalar >
Opm::DryGasPvt< Scalar >::DryGasPvt ( )
explicitdefault

◆ DryGasPvt() [2/2]

template<class Scalar >
Opm::DryGasPvt< Scalar >::DryGasPvt ( const std::vector< Scalar > &  gasReferenceDensity,
const std::vector< TabulatedOneDFunction > &  inverseGasB,
const std::vector< TabulatedOneDFunction > &  gasMu,
const std::vector< TabulatedOneDFunction > &  inverseGasBMu 
)
inline

Member Function Documentation

◆ diffusionCoefficient()

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::diffusionCoefficient ( const Evaluation &  ,
const Evaluation &  ,
unsigned   
) const
inline

◆ gasMu()

template<class Scalar >
const std::vector< TabulatedOneDFunction > & Opm::DryGasPvt< Scalar >::gasMu ( ) const
inline

◆ gasReferenceDensity()

template<class Scalar >
const Scalar Opm::DryGasPvt< Scalar >::gasReferenceDensity ( unsigned  regionIdx) const
inline

◆ initEnd()

template<class Scalar >
void Opm::DryGasPvt< Scalar >::initEnd ( )
inline

Finish initializing the oil phase PVT properties.

References Opm::DryGasPvt< Scalar >::gasMu(), and Opm::DryGasPvt< Scalar >::numRegions().

◆ internalEnergy()

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::internalEnergy ( unsigned  ,
const Evaluation &  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

Returns the specific enthalpy [J/kg] of gas given a set of parameters.

◆ inverseFormationVolumeFactor()

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::inverseFormationVolumeFactor ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  ,
const Evaluation &   
) const
inline

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

References Opm::DryGasPvt< Scalar >::saturatedInverseFormationVolumeFactor().

◆ inverseGasB()

template<class Scalar >
const std::vector< TabulatedOneDFunction > & Opm::DryGasPvt< Scalar >::inverseGasB ( ) const
inline

◆ inverseGasBMu()

template<class Scalar >
const std::vector< TabulatedOneDFunction > Opm::DryGasPvt< Scalar >::inverseGasBMu ( ) const
inline

◆ numRegions()

template<class Scalar >
unsigned Opm::DryGasPvt< Scalar >::numRegions ( ) const
inline

Return the number of PVT regions which are considered by this PVT-object.

Referenced by Opm::DryGasPvt< Scalar >::initEnd(), and Opm::DryGasPvt< Scalar >::setNumRegions().

◆ operator==()

template<class Scalar >
bool Opm::DryGasPvt< Scalar >::operator== ( const DryGasPvt< Scalar > &  data) const
inline

◆ saturatedInverseFormationVolumeFactor()

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

Returns the formation volume factor [-] of oil saturated gas at given pressure.

Referenced by Opm::DryGasPvt< Scalar >::inverseFormationVolumeFactor().

◆ saturatedOilVaporizationFactor() [1/2]

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::saturatedOilVaporizationFactor ( unsigned  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

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

◆ saturatedOilVaporizationFactor() [2/2]

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::saturatedOilVaporizationFactor ( unsigned  ,
const Evaluation &  ,
const Evaluation &  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

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

◆ saturatedViscosity()

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

Returns the dynamic viscosity [Pa s] of oil saturated gas at given pressure.

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

◆ saturatedWaterVaporizationFactor() [1/2]

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::saturatedWaterVaporizationFactor ( unsigned  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

Returns the water vaporization factor $R_v$ [m^3/m^3] of the water phase.

◆ saturatedWaterVaporizationFactor() [2/2]

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::DryGasPvt< Scalar >::saturatedWaterVaporizationFactor ( unsigned  ,
const Evaluation &  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

Returns the water vaporization factor $R_vw$ [m^3/m^3] of water saturated gas.

◆ saturationPressure()

template<class Scalar >
template<class Evaluation >
Evaluation Opm::DryGasPvt< Scalar >::saturationPressure ( unsigned  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

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

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

◆ setGasFormationVolumeFactor()

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

Initialize the function for the formation volume factor of dry gas.

Parameters
samplePointsA container of $(p_g, B_g)$ values

◆ setGasViscosity()

template<class Scalar >
void Opm::DryGasPvt< Scalar >::setGasViscosity ( unsigned  regionIdx,
const TabulatedOneDFunction mug 
)
inline

Initialize the viscosity of the gas phase.

This is a function of $(p_g)$...

◆ setMolarMasses()

template<class Scalar >
void Opm::DryGasPvt< Scalar >::setMolarMasses ( unsigned  ,
Scalar  ,
Scalar  ,
Scalar   
)
inline

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

◆ setNumRegions()

template<class Scalar >
void Opm::DryGasPvt< Scalar >::setNumRegions ( size_t  numRegions)
inline

◆ setReferenceDensities()

template<class Scalar >
void Opm::DryGasPvt< Scalar >::setReferenceDensities ( unsigned  regionIdx,
Scalar  ,
Scalar  rhoRefGas,
Scalar   
)
inline

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

◆ viscosity()

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

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

References Opm::DryGasPvt< Scalar >::saturatedViscosity().


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