opm-common
Loading...
Searching...
No Matches
Opm::ConstantRsDeadOilPvt< Scalar > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of dead oil with constant dissolved gas (RSCONST keyword). More...

#include <ConstantRsDeadOilPvt.hpp>

Public Types

using TabulatedOneDFunction = Tabulated1DFunction<Scalar>

Public Member Functions

void initFromState (const EclipseState &eclState, const Schedule &schedule)
 Initialize the oil parameters via the data specified by the PVDO ECL keyword with additional constant Rs from RSCONST.
void setNumRegions (std::size_t numRegions)
void setVapPars (const Scalar, const Scalar)
void setReferenceDensities (unsigned regionIdx, Scalar rhoRefOil, Scalar rhoRefGas, Scalar)
 Initialize the reference densities of all fluids for a given PVT region.
void setConstantRs (Scalar rsConst)
 Set the constant Rs value (global for all regions).
void setBubblePointPressure (Scalar pbub)
 Set the bubble point pressure (global for all regions).
void setInverseOilFormationVolumeFactor (unsigned regionIdx, const TabulatedOneDFunction &invBo)
 Initialize the function for the oil formation volume factor.
void setOilViscosity (unsigned regionIdx, const TabulatedOneDFunction &muo)
 Initialize the viscosity of the oil phase.
void initEnd ()
 Finish initializing the oil 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 oil given a set of parameters.
Scalar hVap (unsigned) const
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.
template<class Evaluation>
Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of oil given a pressure.
template<class Evaluation>
Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &) const
 Returns the formation volume factor [-] of the fluid phase.
template<class FluidState, class LhsEval = typename FluidState::ValueType>
std::pair< LhsEval, LhsEval > inverseFormationVolumeFactorAndViscosity (const FluidState &fluidState, unsigned regionIdx)
 Returns the formation volume factor [-] and viscosity [Pa s] of the fluid phase.
template<class Evaluation>
Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
 Returns the formation volume factor [-] of oil.
template<class Evaluation>
Evaluation saturatedGasDissolutionFactor (unsigned, const Evaluation &, const Evaluation &pressure) const
 Returns the constant gas dissolution factor $R_s$ [m^3/m^3] of the oil phase.
template<class Evaluation>
Evaluation saturatedGasDissolutionFactor (unsigned, const Evaluation &, const Evaluation &pressure, const Evaluation &, const Evaluation &) const
 Returns the constant gas dissolution factor $R_s$ [m^3/m^3] of the oil phase.
template<class Evaluation>
Evaluation saturationPressure (unsigned, const Evaluation &, const Evaluation &) const
 Returns the bubble point pressure [Pa] from RSCONST.
template<class Evaluation>
Evaluation diffusionCoefficient (const Evaluation &, const Evaluation &, unsigned) const
Scalar oilReferenceDensity (unsigned regionIdx) const
Scalar gasReferenceDensity (unsigned regionIdx) const
Scalar constantRs () const
Scalar bubblePointPressure () const
const std::vector< TabulatedOneDFunction > & inverseOilB () const
const std::vector< TabulatedOneDFunction > & oilMu () const
const std::vector< TabulatedOneDFunction > & inverseOilBMu () const

Detailed Description

template<class Scalar>
class Opm::ConstantRsDeadOilPvt< Scalar >

This class represents the Pressure-Volume-Temperature relations of dead oil with constant dissolved gas (RSCONST keyword).

RSCONST provides two global values: constant Rs and constant bubble point pressure. Oil properties (Bo, μo) come from PVDO tables and are independent of Rs.

Member Function Documentation

◆ inverseFormationVolumeFactor()

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

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

Rs is ignored - Bo depends only on pressure via PVDO table.

◆ saturatedGasDissolutionFactor() [1/2]

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

Returns the constant gas dissolution factor $R_s$ [m^3/m^3] of the oil phase.

Same value for all regions. Enforces that pressure must be >= bubble point pressure.

◆ saturatedGasDissolutionFactor() [2/2]

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

Returns the constant gas dissolution factor $R_s$ [m^3/m^3] of the oil phase.

Same value for all regions. Enforces that pressure must be >= bubble point pressure.

◆ saturatedInverseFormationVolumeFactor()

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

Returns the formation volume factor [-] of oil.

Uses PVDO table directly.

◆ saturatedViscosity()

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

Returns the dynamic viscosity [Pa s] of oil given a pressure.

Uses PVDO table directly.

◆ saturationPressure()

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

Returns the bubble point pressure [Pa] from RSCONST.

Same value for all regions.

◆ viscosity()

template<class Scalar>
template<class Evaluation>
Evaluation Opm::ConstantRsDeadOilPvt< 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.

Rs is ignored - viscosity depends only on pressure via PVDO table.


The documentation for this class was generated from the following files:
  • opm/material/fluidsystems/blackoilpvt/ConstantRsDeadOilPvt.hpp
  • opm/material/fluidsystems/blackoilpvt/ConstantRsDeadOilPvt.cpp