My Project
Opm::DryHumidGasPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the gas phase with vaporized water. More...

#include <DryHumidGasPvt.hpp>

Public Types

using TabulatedTwoDFunction = UniformXTabulated2DFunction< Scalar >
 
using TabulatedOneDFunction = Tabulated1DFunction< Scalar >
 

Public Member Functions

 DryHumidGasPvt (const std::vector< Scalar > &gasReferenceDensity, const std::vector< Scalar > &waterReferenceDensity, const std::vector< TabulatedTwoDFunction > &inverseGasB, const std::vector< TabulatedOneDFunction > &inverseSaturatedGasB, const std::vector< TabulatedTwoDFunction > &gasMu, const std::vector< TabulatedTwoDFunction > &inverseGasBMu, const std::vector< TabulatedOneDFunction > &inverseSaturatedGasBMu, const std::vector< TabulatedOneDFunction > &saturatedWaterVaporizationFactorTable, const std::vector< TabulatedOneDFunction > &saturationPressure, Scalar vapPar1)
 
void setNumRegions (size_t numRegions)
 
void setReferenceDensities (unsigned regionIdx, Scalar, Scalar rhoRefGas, Scalar rhoRefWater)
 Initialize the reference densities of all fluids for a given PVT region.
 
void setSaturatedGasWaterVaporizationFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the oil vaporization factor $R_v$. 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 ()
 Finish initializing the gas phase PVT properties.
 
unsigned numRegions () const
 Return the number of PVT regions which are considered by this PVT-object.
 
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.
 
template<class Evaluation >
Evaluation viscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &, const Evaluation &Rvw) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
 
template<class Evaluation >
Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of oil saturated gas at a given pressure.
 
template<class Evaluation >
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &, const Evaluation &Rvw) const
 Returns the formation volume factor [-] of the fluid phase.
 
template<class Evaluation >
Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the formation volume factor [-] of water saturated gas at a given pressure.
 
template<class Evaluation >
Evaluation saturatedWaterVaporizationFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the water vaporization factor $R_vw$ [m^3/m^3] of the water phase.
 
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.
 
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.
 
template<class Evaluation >
Evaluation saturationPressure (unsigned regionIdx, const Evaluation &, const Evaluation &Rw) const
 Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the water component. More...
 
template<class Evaluation >
Evaluation diffusionCoefficient (const Evaluation &, const Evaluation &, unsigned) const
 
const Scalar gasReferenceDensity (unsigned regionIdx) const
 
const Scalar waterReferenceDensity (unsigned regionIdx) const
 
const std::vector< TabulatedTwoDFunction > & inverseGasB () const
 
const std::vector< TabulatedOneDFunction > & inverseSaturatedGasB () const
 
const std::vector< TabulatedTwoDFunction > & gasMu () const
 
const std::vector< TabulatedTwoDFunction > & inverseGasBMu () const
 
const std::vector< TabulatedOneDFunction > & inverseSaturatedGasBMu () const
 
const std::vector< TabulatedOneDFunction > & saturatedWaterVaporizationFactorTable () const
 
const std::vector< TabulatedOneDFunction > & saturationPressure () const
 
Scalar vapPar1 () const
 
bool operator== (const DryHumidGasPvt< Scalar > &data) const
 

Detailed Description

template<class Scalar>
class Opm::DryHumidGasPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the gas phase with vaporized water.

Member Function Documentation

◆ saturationPressure()

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

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

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

◆ setGasViscosity()

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

Initialize the viscosity of the gas phase.

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

◆ setInverseGasFormationVolumeFactor()

template<class Scalar >
void Opm::DryHumidGasPvt< 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.

◆ setSaturatedGasViscosity()

template<class Scalar >
void Opm::DryHumidGasPvt< 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...

◆ setSaturatedGasWaterVaporizationFactor()

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

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

Parameters
samplePointsA container of (x,y) values.

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