Opm::BrineCo2Pvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the liquid phase for a CO2-Brine system. More...

#include <BrineCo2Pvt.hpp>

Public Types

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

Public Member Functions

 BrineCo2Pvt ()=default
 
 BrineCo2Pvt (const std::vector< Scalar > &brineReferenceDensity, const std::vector< Scalar > &co2ReferenceDensity, const std::vector< Scalar > &salinity)
 
 BrineCo2Pvt (const std::vector< Scalar > &salinity, Scalar T_ref=288.71, Scalar P_ref=101325)
 
void setNumRegions (size_t numRegions)
 
void setReferenceDensities (unsigned regionIdx, Scalar rhoRefBrine, Scalar rhoRefCO2, Scalar)
 Initialize the reference densities of all fluids for a given PVT region. More...
 
void initEnd ()
 Finish initializing the oil phase PVT properties. More...
 
void setEnableDissolvedGas (bool yesno)
 Specify whether the PVT model should consider that the CO2 component can dissolve in the brine phase. More...
 
unsigned numRegions () const
 Return the number of PVT regions which are considered by this PVT-object. More...
 
template<class Evaluation >
Evaluation internalEnergy (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs) 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
 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 &Rs) 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 brine saturated with CO2 at a given pressure. More...
 
template<class Evaluation >
Evaluation saturationPressure (unsigned, const Evaluation &, const Evaluation &) const
 Returns the saturation pressure of the brine phase [Pa] depending on its mass fraction of the gas component. More...
 
template<class Evaluation >
Evaluation saturatedGasDissolutionFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &, const Evaluation &) const
 Returns the gas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase. More...
 
template<class Evaluation >
Evaluation saturatedGasDissolutionFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns thegas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase. More...
 
const Scalar oilReferenceDensity (unsigned regionIdx) const
 
const Scalar gasReferenceDensity (unsigned regionIdx) const
 
const Scalar salinity (unsigned regionIdx) const
 
bool operator== (const BrineCo2Pvt< Scalar > &data) const
 
template<class Evaluation >
Evaluation diffusionCoefficient (const Evaluation &temperature, const Evaluation &pressure, unsigned) const
 

Detailed Description

template<class Scalar>
class Opm::BrineCo2Pvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the liquid phase for a CO2-Brine system.

Member Typedef Documentation

◆ BinaryCoeffBrineCO2

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

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

◆ Brine

template<class Scalar >
using Opm::BrineCo2Pvt< Scalar >::Brine = ::Opm::Brine<Scalar, H2O>

◆ CO2

template<class Scalar >
using Opm::BrineCo2Pvt< Scalar >::CO2 = ::Opm::CO2<Scalar, CO2Tables>

◆ H2O

template<class Scalar >
using Opm::BrineCo2Pvt< Scalar >::H2O = SimpleHuDuanH2O<Scalar>

Constructor & Destructor Documentation

◆ BrineCo2Pvt() [1/3]

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

◆ BrineCo2Pvt() [2/3]

template<class Scalar >
Opm::BrineCo2Pvt< Scalar >::BrineCo2Pvt ( const std::vector< Scalar > &  brineReferenceDensity,
const std::vector< Scalar > &  co2ReferenceDensity,
const std::vector< Scalar > &  salinity 
)
inline

◆ BrineCo2Pvt() [3/3]

template<class Scalar >
Opm::BrineCo2Pvt< Scalar >::BrineCo2Pvt ( const std::vector< Scalar > &  salinity,
Scalar  T_ref = 288.71,
Scalar  P_ref = 101325 
)
inline

Member Function Documentation

◆ diffusionCoefficient()

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

◆ gasReferenceDensity()

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

◆ initEnd()

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

Finish initializing the oil phase PVT properties.

◆ internalEnergy()

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

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

◆ inverseFormationVolumeFactor()

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

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

◆ numRegions()

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

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

Referenced by Opm::BrineCo2Pvt< Scalar >::setNumRegions().

◆ oilReferenceDensity()

template<class Scalar >
const Scalar Opm::BrineCo2Pvt< Scalar >::oilReferenceDensity ( unsigned  regionIdx) const
inline

◆ operator==()

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

◆ salinity()

template<class Scalar >
const Scalar Opm::BrineCo2Pvt< Scalar >::salinity ( unsigned  regionIdx) const
inline

◆ saturatedGasDissolutionFactor() [1/2]

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

Returns thegas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase.

◆ saturatedGasDissolutionFactor() [2/2]

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

Returns the gas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase.

◆ saturatedInverseFormationVolumeFactor()

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

Returns the formation volume factor [-] of brine saturated with CO2 at a given pressure.

◆ saturatedViscosity()

template<class Scalar >
template<class Evaluation >
Evaluation Opm::BrineCo2Pvt< 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::Brine< Scalar, H2O >::liquidViscosity().

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

◆ saturationPressure()

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

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

Parameters
Rs

◆ setEnableDissolvedGas()

template<class Scalar >
void Opm::BrineCo2Pvt< Scalar >::setEnableDissolvedGas ( bool  yesno)
inline

Specify whether the PVT model should consider that the CO2 component can dissolve in the brine phase.

By default, dissolved co2 is considered.

◆ setNumRegions()

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

◆ setReferenceDensities()

template<class Scalar >
void Opm::BrineCo2Pvt< Scalar >::setReferenceDensities ( unsigned  regionIdx,
Scalar  rhoRefBrine,
Scalar  rhoRefCO2,
Scalar   
)
inline

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

◆ viscosity()

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

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

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


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