Opm::SolventPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the "second" gas phase in the of ECL simulations with solvents. More...

#include <SolventPvt.hpp>

Public Types

using TabulatedOneDFunction = Tabulated1DFunction< Scalar >
 

Public Member Functions

 SolventPvt ()=default
 
 SolventPvt (const std::vector< Scalar > &solventReferenceDensity, const std::vector< TabulatedOneDFunction > &inverseSolventB, const std::vector< TabulatedOneDFunction > &solventMu, const std::vector< TabulatedOneDFunction > &inverseSolventBMu)
 
void setNumRegions (size_t numRegions)
 
void setReferenceDensity (unsigned regionIdx, Scalar rhoRefSolvent)
 Initialize the reference density of the solvent gas for a given PVT region. More...
 
void setSolventViscosity (unsigned regionIdx, const TabulatedOneDFunction &mug)
 Initialize the viscosity of the solvent gas phase. More...
 
void setSolventFormationVolumeFactor (unsigned regionIdx, const SamplingPoints &samplePoints)
 Initialize the function for the formation volume factor of solvent 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 viscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. More...
 
template<class Evaluation >
Evaluation diffusionCoefficient (const Evaluation &, const Evaluation &, unsigned) const
 
Scalar referenceDensity (unsigned regionIdx) const
 Return the reference density the solvent phase for a given PVT region. More...
 
template<class Evaluation >
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the formation volume factor [-] of the fluid phase. More...
 
const std::vector< Scalar > & solventReferenceDensity () const
 
const std::vector< TabulatedOneDFunction > & inverseSolventB () const
 
const std::vector< TabulatedOneDFunction > & solventMu () const
 
const std::vector< TabulatedOneDFunction > & inverseSolventBMu () const
 
bool operator== (const SolventPvt< Scalar > &data) const
 

Detailed Description

template<class Scalar>
class Opm::SolventPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of the "second" gas phase in the of ECL simulations with solvents.

Member Typedef Documentation

◆ TabulatedOneDFunction

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

Constructor & Destructor Documentation

◆ SolventPvt() [1/2]

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

◆ SolventPvt() [2/2]

template<class Scalar >
Opm::SolventPvt< Scalar >::SolventPvt ( const std::vector< Scalar > &  solventReferenceDensity,
const std::vector< TabulatedOneDFunction > &  inverseSolventB,
const std::vector< TabulatedOneDFunction > &  solventMu,
const std::vector< TabulatedOneDFunction > &  inverseSolventBMu 
)
inline

Member Function Documentation

◆ diffusionCoefficient()

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

◆ initEnd()

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

Finish initializing the oil phase PVT properties.

References Opm::SolventPvt< Scalar >::numRegions(), and Opm::SolventPvt< Scalar >::solventMu().

◆ inverseFormationVolumeFactor()

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

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

◆ inverseSolventB()

template<class Scalar >
const std::vector< TabulatedOneDFunction > & Opm::SolventPvt< Scalar >::inverseSolventB ( ) const
inline

◆ inverseSolventBMu()

template<class Scalar >
const std::vector< TabulatedOneDFunction > & Opm::SolventPvt< Scalar >::inverseSolventBMu ( ) const
inline

◆ numRegions()

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

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

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

◆ operator==()

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

◆ referenceDensity()

template<class Scalar >
Scalar Opm::SolventPvt< Scalar >::referenceDensity ( unsigned  regionIdx) const
inline

Return the reference density the solvent phase for a given PVT region.

◆ setNumRegions()

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

◆ setReferenceDensity()

template<class Scalar >
void Opm::SolventPvt< Scalar >::setReferenceDensity ( unsigned  regionIdx,
Scalar  rhoRefSolvent 
)
inline

Initialize the reference density of the solvent gas for a given PVT region.

◆ setSolventFormationVolumeFactor()

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

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

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

◆ setSolventViscosity()

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

Initialize the viscosity of the solvent gas phase.

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

◆ solventMu()

template<class Scalar >
const std::vector< TabulatedOneDFunction > & Opm::SolventPvt< Scalar >::solventMu ( ) const
inline

◆ solventReferenceDensity()

template<class Scalar >
const std::vector< Scalar > & Opm::SolventPvt< Scalar >::solventReferenceDensity ( ) const
inline

◆ viscosity()

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

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


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