Opm::VFPInjProperties< Scalar > Class Template Reference

#include <VFPInjProperties.hpp>

Inheritance diagram for Opm::VFPInjProperties< Scalar >:
Inheritance graph

Public Member Functions

void addTable (const VFPInjTable &new_table)
 
template<class EvalWell >
EvalWell bhp (const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const Scalar thp) const
 
const VFPInjTable & getTable (const int table_id) const
 
bool hasTable (const int table_id) const
 
bool empty () const
 
Scalar bhp (const int table_id, const Scalar aqua, const Scalar liquid, const Scalar vapour, const Scalar thp) const
 
Scalar thp (const int table_id, const Scalar aqua, const Scalar liquid, const Scalar vapour, const Scalar bhp) const
 

Protected Attributes

std::map< int, std::reference_wrapper< const VFPInjTable > > m_tables
 

Member Function Documentation

◆ addTable()

template<class Scalar >
void Opm::VFPInjProperties< Scalar >::addTable ( const VFPInjTable &  new_table)

Takes no ownership of data.

◆ bhp() [1/2]

template<class Scalar >
template<class EvalWell >
EvalWell Opm::VFPInjProperties< Scalar >::bhp ( const int  table_id,
const EvalWell &  aqua,
const EvalWell &  liquid,
const EvalWell &  vapour,
const Scalar  thp 
) const

Linear interpolation of bhp as a function of the input parameters given as Evaluation Each entry corresponds typically to one well.

Parameters
table_idTable number to use. A negative entry (e.g., -1) will indicate that no table is used, and the corresponding BHP will be calculated as a constant -1e100.
aquaWater phase
liquidOil phase
vapourGas phase
thpTubing head pressure
Returns
The bottom hole pressure, interpolated/extrapolated linearly using the above parameters from the values in the input table, for each entry in the input ADB objects.

◆ bhp() [2/2]

template<class Scalar >
Scalar Opm::VFPInjProperties< Scalar >::bhp ( const int  table_id,
const Scalar  aqua,
const Scalar  liquid,
const Scalar  vapour,
const Scalar  thp 
) const

Linear interpolation of bhp as a function of the input parameters

Parameters
table_idTable number to use
aquaWater phase
liquidOil phase
vapourGas phase
thpTubing head pressure
Returns
The bottom hole pressure, interpolated/extrapolated linearly using the above parameters from the values in the input table.

◆ empty()

template<class Scalar >
bool Opm::VFPInjProperties< Scalar >::empty ( ) const
inline

Returns true if no vfp tables are in the current map

References Opm::VFPInjProperties< Scalar >::m_tables.

◆ getTable()

template<class Scalar >
const VFPInjTable & Opm::VFPInjProperties< Scalar >::getTable ( const int  table_id) const

Returns the table associated with the ID, or throws an exception if the table does not exist

◆ hasTable()

template<class Scalar >
bool Opm::VFPInjProperties< Scalar >::hasTable ( const int  table_id) const

Check whether there is table associated with ID

◆ thp()

template<class Scalar >
Scalar Opm::VFPInjProperties< Scalar >::thp ( const int  table_id,
const Scalar  aqua,
const Scalar  liquid,
const Scalar  vapour,
const Scalar  bhp 
) const

Linear interpolation of thp as a function of the input parameters

Parameters
table_idTable number to use
aquaWater phase
liquidOil phase
vapourGas phase
bhpBottom hole pressure
Returns
The tubing hole pressure, interpolated/extrapolated linearly using the above parameters from the values in the input table.

Member Data Documentation

◆ m_tables

template<class Scalar >
std::map<int, std::reference_wrapper<const VFPInjTable> > Opm::VFPInjProperties< Scalar >::m_tables
protected

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