opm-simulators
Loading...
Searching...
No Matches
Opm::EQUIL::Miscibility::RsConst< FluidSystem > Class Template Reference

Type that implements "constant dissolved gas-oil ratio" (Rs) from RSCONST keyword. More...

#include <EquilibrationHelpers.hpp>

Inheritance diagram for Opm::EQUIL::Miscibility::RsConst< FluidSystem >:
Opm::EQUIL::Miscibility::RsFunction< FluidSystem::Scalar >

Public Types

using Scalar = typename FluidSystem::Scalar

Public Member Functions

 RsConst (const Scalar rs_constant, const Scalar pb_constant)
 Constructor.
Scalar operator() (const Scalar depth, const Scalar press, const Scalar temp, const Scalar satGas=0.0) const override
 Function call - returns constant Rs if pressure above bubble point.
Scalar bubblePoint () const
 Get the constant bubble point pressure.
Scalar constantRs () const
 Get the constant Rs value.
bool isConstantRs () const
Scalar satRs (const Scalar press, const Scalar temp) const
Public Member Functions inherited from Opm::EQUIL::Miscibility::RsFunction< FluidSystem::Scalar >
virtual Scalar operator() (const Scalar depth, const Scalar press, const Scalar temp, const Scalar sat=0.0) const=0
 Function call operator.

Detailed Description

template<class FluidSystem>
class Opm::EQUIL::Miscibility::RsConst< FluidSystem >

Type that implements "constant dissolved gas-oil ratio" (Rs) from RSCONST keyword.

This is a global constant value for dead oil. Oil should use PVDO tables, and gas phase should not be active. Simulation terminates if pressure falls below bubble point.

Constructor & Destructor Documentation

◆ RsConst()

template<class FluidSystem>
Opm::EQUIL::Miscibility::RsConst< FluidSystem >::RsConst ( const Scalar rs_constant,
const Scalar pb_constant )

Constructor.

Parameters
[in]rs_constantConstant Rs value from RSCONST
[in]pb_constantConstant bubble point from RSCONST

Member Function Documentation

◆ operator()()

template<class FluidSystem>
FluidSystem::Scalar Opm::EQUIL::Miscibility::RsConst< FluidSystem >::operator() ( const Scalar depth,
const Scalar press,
const Scalar temp,
const Scalar satGas = 0.0 ) const
override

Function call - returns constant Rs if pressure above bubble point.

Should ensure undersaturated PVT calculation is always used.


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