Opm::Co2GasPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the gas phase for CO2. More...

#include <Co2GasPvt.hpp>

Public Types

using BinaryCoeffBrineCO2 = BinaryCoeff::Brine_CO2< Scalar, H2O, CO2 >
 The binary coefficients for brine and CO2 used by this fluid system. More...
 

Public Member Functions

 Co2GasPvt ()=default
 
 Co2GasPvt (const std::vector< Scalar > &gasReferenceDensity)
 
 Co2GasPvt (size_t numRegions, Scalar T_ref=288.71, Scalar P_ref=101325)
 
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 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 &temperature, const Evaluation &pressure, 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, const Evaluation &temperature, 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 &temperature, 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_vw$ [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 &temperature, const Evaluation &pressure, unsigned) const
 
const Scalar gasReferenceDensity (unsigned regionIdx) const
 
bool operator== (const Co2GasPvt< Scalar > &data) const
 

Detailed Description

template<class Scalar>
class Opm::Co2GasPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the gas phase for CO2.

Member Typedef Documentation

◆ BinaryCoeffBrineCO2

template<class Scalar >
using Opm::Co2GasPvt< Scalar >::BinaryCoeffBrineCO2 = BinaryCoeff::Brine_CO2<Scalar, H2O, CO2>

The binary coefficients for brine and CO2 used by this fluid system.

Constructor & Destructor Documentation

◆ Co2GasPvt() [1/3]

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

◆ Co2GasPvt() [2/3]

template<class Scalar >
Opm::Co2GasPvt< Scalar >::Co2GasPvt ( const std::vector< Scalar > &  gasReferenceDensity)
inline

◆ Co2GasPvt() [3/3]

template<class Scalar >
Opm::Co2GasPvt< Scalar >::Co2GasPvt ( size_t  numRegions,
Scalar  T_ref = 288.71,
Scalar  P_ref = 101325 
)
inline

Member Function Documentation

◆ diffusionCoefficient()

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

◆ gasReferenceDensity()

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

◆ initEnd()

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

Finish initializing the oil phase PVT properties.

◆ internalEnergy()

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

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

References Opm::CO2< Scalar, CO2Tables >::gasInternalEnergy().

◆ inverseFormationVolumeFactor()

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

◆ numRegions()

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

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

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

◆ operator==()

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

◆ saturatedInverseFormationVolumeFactor()

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

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

References Opm::CO2< Scalar, CO2Tables >::gasDensity().

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

◆ saturatedOilVaporizationFactor() [1/2]

template<class Scalar >
template<class Evaluation >
Evaluation Opm::Co2GasPvt< 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::Co2GasPvt< 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::Co2GasPvt< Scalar >::saturatedViscosity ( unsigned  ,
const Evaluation &  temperature,
const Evaluation &  pressure 
) const
inline

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

References Opm::CO2< Scalar, CO2Tables >::gasViscosity().

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

◆ saturatedWaterVaporizationFactor() [1/2]

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

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

◆ saturatedWaterVaporizationFactor() [2/2]

template<class Scalar >
template<class Evaluation = Scalar>
Evaluation Opm::Co2GasPvt< 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::Co2GasPvt< 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 [-]

◆ setNumRegions()

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

◆ setReferenceDensities()

template<class Scalar >
void Opm::Co2GasPvt< 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::Co2GasPvt< 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::Co2GasPvt< Scalar >::saturatedViscosity().


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