Opm::WaterPvtThermal< Scalar, enableBrine > Class Template Reference

This class implements temperature dependence of the PVT properties of water. More...

#include <WaterPvtThermal.hpp>

Public Types

using TabulatedOneDFunction = Tabulated1DFunction< Scalar >
 
using IsothermalPvt = WaterPvtMultiplexer< Scalar, false, enableBrine >
 

Public Member Functions

 WaterPvtThermal ()
 
 WaterPvtThermal (IsothermalPvt *isothermalPvt, const std::vector< Scalar > &viscrefPress, const std::vector< Scalar > &watdentRefTemp, const std::vector< Scalar > &watdentCT1, const std::vector< Scalar > &watdentCT2, const std::vector< Scalar > &watJTRefPres, const std::vector< Scalar > &watJTC, const std::vector< Scalar > &pvtwRefPress, const std::vector< Scalar > &pvtwRefB, const std::vector< Scalar > &pvtwCompressibility, const std::vector< Scalar > &pvtwViscosity, const std::vector< Scalar > &pvtwViscosibility, const std::vector< TabulatedOneDFunction > &watvisctCurves, const std::vector< TabulatedOneDFunction > &internalEnergyCurves, bool enableThermalDensity, bool enableJouleThomson, bool enableThermalViscosity, bool enableInternalEnergy)
 
 WaterPvtThermal (const WaterPvtThermal &data)
 
 ~WaterPvtThermal ()
 
void setNumRegions (size_t numRegions)
 Set the number of PVT-regions considered by this object. More...
 
void initEnd ()
 Finish initializing the thermal part of the water phase PVT properties. More...
 
bool enableThermalDensity () const
 Returns true iff the density of the water phase is temperature dependent. More...
 
bool enableJouleThomsony () const
 Returns true iff Joule-Thomson effect for the water phase is active. More...
 
bool enableThermalViscosity () const
 Returns true iff the viscosity of the water phase is temperature dependent. More...
 
size_t numRegions () const
 
template<class Evaluation >
Evaluation internalEnergy (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltconcentration) const
 Returns the specific internal energy [J/kg] of water given a set of parameters. More...
 
template<class Evaluation >
Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltconcentration) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. More...
 
template<class Evaluation >
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltconcentration) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
const IsothermalPvtisoThermalPvt () const
 
const Scalar waterReferenceDensity (unsigned regionIdx) const
 
const std::vector< Scalar > & viscrefPress () const
 
const std::vector< Scalar > & watdentRefTemp () const
 
const std::vector< Scalar > & watdentCT1 () const
 
const std::vector< Scalar > & watdentCT2 () const
 
const std::vector< Scalar > & pvtwRefPress () const
 
const std::vector< Scalar > & pvtwRefB () const
 
const std::vector< Scalar > & pvtwCompressibility () const
 
const std::vector< Scalar > & pvtwViscosity () const
 
const std::vector< Scalar > & pvtwViscosibility () const
 
const std::vector< TabulatedOneDFunction > & watvisctCurves () const
 
const std::vector< TabulatedOneDFunctioninternalEnergyCurves () const
 
bool enableInternalEnergy () const
 
const std::vector< Scalar > & watJTRefPres () const
 
const std::vector< Scalar > & watJTC () const
 
bool operator== (const WaterPvtThermal< Scalar, enableBrine > &data) const
 
WaterPvtThermal< Scalar, enableBrine > & operator= (const WaterPvtThermal< Scalar, enableBrine > &data)
 

Detailed Description

template<class Scalar, bool enableBrine>
class Opm::WaterPvtThermal< Scalar, enableBrine >

This class implements temperature dependence of the PVT properties of water.

Note that this only implements the temperature part, i.e., it requires the isothermal properties as input.

Member Typedef Documentation

◆ IsothermalPvt

template<class Scalar , bool enableBrine>
using Opm::WaterPvtThermal< Scalar, enableBrine >::IsothermalPvt = WaterPvtMultiplexer<Scalar, false, enableBrine>

◆ TabulatedOneDFunction

template<class Scalar , bool enableBrine>
using Opm::WaterPvtThermal< Scalar, enableBrine >::TabulatedOneDFunction = Tabulated1DFunction<Scalar>

Constructor & Destructor Documentation

◆ WaterPvtThermal() [1/3]

template<class Scalar , bool enableBrine>
Opm::WaterPvtThermal< Scalar, enableBrine >::WaterPvtThermal ( )
inline

◆ WaterPvtThermal() [2/3]

template<class Scalar , bool enableBrine>
Opm::WaterPvtThermal< Scalar, enableBrine >::WaterPvtThermal ( IsothermalPvt isothermalPvt,
const std::vector< Scalar > &  viscrefPress,
const std::vector< Scalar > &  watdentRefTemp,
const std::vector< Scalar > &  watdentCT1,
const std::vector< Scalar > &  watdentCT2,
const std::vector< Scalar > &  watJTRefPres,
const std::vector< Scalar > &  watJTC,
const std::vector< Scalar > &  pvtwRefPress,
const std::vector< Scalar > &  pvtwRefB,
const std::vector< Scalar > &  pvtwCompressibility,
const std::vector< Scalar > &  pvtwViscosity,
const std::vector< Scalar > &  pvtwViscosibility,
const std::vector< TabulatedOneDFunction > &  watvisctCurves,
const std::vector< TabulatedOneDFunction > &  internalEnergyCurves,
bool  enableThermalDensity,
bool  enableJouleThomson,
bool  enableThermalViscosity,
bool  enableInternalEnergy 
)
inline

◆ WaterPvtThermal() [3/3]

template<class Scalar , bool enableBrine>
Opm::WaterPvtThermal< Scalar, enableBrine >::WaterPvtThermal ( const WaterPvtThermal< Scalar, enableBrine > &  data)
inline

◆ ~WaterPvtThermal()

template<class Scalar , bool enableBrine>
Opm::WaterPvtThermal< Scalar, enableBrine >::~WaterPvtThermal ( )
inline

Member Function Documentation

◆ enableInternalEnergy()

template<class Scalar , bool enableBrine>
bool Opm::WaterPvtThermal< Scalar, enableBrine >::enableInternalEnergy ( ) const
inline

◆ enableJouleThomsony()

template<class Scalar , bool enableBrine>
bool Opm::WaterPvtThermal< Scalar, enableBrine >::enableJouleThomsony ( ) const
inline

Returns true iff Joule-Thomson effect for the water phase is active.

◆ enableThermalDensity()

template<class Scalar , bool enableBrine>
bool Opm::WaterPvtThermal< Scalar, enableBrine >::enableThermalDensity ( ) const
inline

Returns true iff the density of the water phase is temperature dependent.

Referenced by Opm::WaterPvtThermal< Scalar, enableBrine >::inverseFormationVolumeFactor(), and Opm::WaterPvtThermal< Scalar, enableBrine >::operator==().

◆ enableThermalViscosity()

template<class Scalar , bool enableBrine>
bool Opm::WaterPvtThermal< Scalar, enableBrine >::enableThermalViscosity ( ) const
inline

Returns true iff the viscosity of the water phase is temperature dependent.

Referenced by Opm::WaterPvtThermal< Scalar, enableBrine >::operator==(), and Opm::WaterPvtThermal< Scalar, enableBrine >::viscosity().

◆ initEnd()

template<class Scalar , bool enableBrine>
void Opm::WaterPvtThermal< Scalar, enableBrine >::initEnd ( )
inline

Finish initializing the thermal part of the water phase PVT properties.

◆ internalEnergy()

template<class Scalar , bool enableBrine>
template<class Evaluation >
Evaluation Opm::WaterPvtThermal< Scalar, enableBrine >::internalEnergy ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  saltconcentration 
) const
inline

Returns the specific internal energy [J/kg] of water given a set of parameters.

References Opm::WaterPvtThermal< Scalar, enableBrine >::inverseFormationVolumeFactor(), and Opm::WaterPvtThermal< Scalar, enableBrine >::waterReferenceDensity().

◆ internalEnergyCurves()

template<class Scalar , bool enableBrine>
const std::vector< TabulatedOneDFunction > Opm::WaterPvtThermal< Scalar, enableBrine >::internalEnergyCurves ( ) const
inline

◆ inverseFormationVolumeFactor()

template<class Scalar , bool enableBrine>
template<class Evaluation >
Evaluation Opm::WaterPvtThermal< Scalar, enableBrine >::inverseFormationVolumeFactor ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  saltconcentration 
) const
inline

◆ isoThermalPvt()

template<class Scalar , bool enableBrine>
const IsothermalPvt * Opm::WaterPvtThermal< Scalar, enableBrine >::isoThermalPvt ( ) const
inline

◆ numRegions()

template<class Scalar , bool enableBrine>
size_t Opm::WaterPvtThermal< Scalar, enableBrine >::numRegions ( ) const
inline

◆ operator=()

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

◆ operator==()

◆ pvtwCompressibility()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::pvtwCompressibility ( ) const
inline

◆ pvtwRefB()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::pvtwRefB ( ) const
inline

◆ pvtwRefPress()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::pvtwRefPress ( ) const
inline

◆ pvtwViscosibility()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::pvtwViscosibility ( ) const
inline

◆ pvtwViscosity()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::pvtwViscosity ( ) const
inline

◆ setNumRegions()

template<class Scalar , bool enableBrine>
void Opm::WaterPvtThermal< Scalar, enableBrine >::setNumRegions ( size_t  numRegions)
inline

Set the number of PVT-regions considered by this object.

References Opm::WaterPvtThermal< Scalar, enableBrine >::numRegions().

◆ viscosity()

template<class Scalar , bool enableBrine>
template<class Evaluation >
Evaluation Opm::WaterPvtThermal< Scalar, enableBrine >::viscosity ( unsigned  regionIdx,
const Evaluation &  temperature,
const Evaluation &  pressure,
const Evaluation &  saltconcentration 
) const
inline

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

References Opm::WaterPvtThermal< Scalar, enableBrine >::enableThermalViscosity(), and Opm::WaterPvtMultiplexer< Scalar, enableThermal, enableBrine >::viscosity().

◆ viscrefPress()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::viscrefPress ( ) const
inline

◆ watdentCT1()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::watdentCT1 ( ) const
inline

◆ watdentCT2()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::watdentCT2 ( ) const
inline

◆ watdentRefTemp()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::watdentRefTemp ( ) const
inline

◆ waterReferenceDensity()

template<class Scalar , bool enableBrine>
const Scalar Opm::WaterPvtThermal< Scalar, enableBrine >::waterReferenceDensity ( unsigned  regionIdx) const
inline

◆ watJTC()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::watJTC ( ) const
inline

◆ watJTRefPres()

template<class Scalar , bool enableBrine>
const std::vector< Scalar > & Opm::WaterPvtThermal< Scalar, enableBrine >::watJTRefPres ( ) const
inline

◆ watvisctCurves()

template<class Scalar , bool enableBrine>
const std::vector< TabulatedOneDFunction > & Opm::WaterPvtThermal< Scalar, enableBrine >::watvisctCurves ( ) const
inline

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