Opm::Equil::Miscibility::RsSatAtContact Class Reference

#include <EquilibrationHelpers.hpp>

Inheritance diagram for Opm::Equil::Miscibility::RsSatAtContact:
Inheritance graph

Public Member Functions

 RsSatAtContact (const BlackoilPropertiesInterface &props, const int cell, const double p_contact, const double T_contact)
 
double operator() (const double, const double press, const double temp, const double sat_gas=0.0) const
 

Detailed Description

Class that implements "dissolved gas-oil ratio" (Rs) as function of depth and pressure as follows:

  1. The Rs at the gas-oil contact is equal to the saturated Rs value, Rs_sat_contact.
  2. The Rs elsewhere is equal to Rs_sat_contact, but constrained to the saturated value as given by the local pressure.

This should yield Rs-values that are constant below the contact, and decreasing above the contact.

Constructor & Destructor Documentation

Opm::Equil::Miscibility::RsSatAtContact::RsSatAtContact ( const BlackoilPropertiesInterface props,
const int  cell,
const double  p_contact,
const double  T_contact 
)
inline

Constructor.

Parameters
[in]propsproperty object
[in]cellany cell in the pvt region
[in]p_contactoil pressure at the contact
[in]T_contacttemperature at the contact

References Opm::BlackoilPhases::Liquid, Opm::BlackoilPhases::MaxNumPhases, Opm::BlackoilPropertiesInterface::phaseUsage(), and Opm::BlackoilPhases::Vapour.

Member Function Documentation

double Opm::Equil::Miscibility::RsSatAtContact::operator() ( const double  ,
const double  press,
const double  temp,
const double  sat_gas = 0.0 
) const
inlinevirtual

Function call.

Parameters
[in]depthDepth at which to calculate RS value.
[in]pressPressure at which to calculate RS value.
[in]tempTemperature at which to calculate RS value.
Returns
Dissolved gas-oil ratio (RS) at depth depth and pressure press.

Implements Opm::Equil::Miscibility::RsFunction.


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