Opm::VFPInjProperties Class Reference

#include <VFPInjProperties.hpp>

Public Types

typedef AutoDiffBlock< double > ADB
 

Public Member Functions

 VFPInjProperties ()
 
 VFPInjProperties (const VFPInjTable *inj_table)
 
 VFPInjProperties (const std::map< int, VFPInjTable > &inj_tables)
 
ADB bhp (const std::vector< int > &table_id, const Wells &wells, const ADB &qs, const ADB &thp) const
 
ADB bhp (const std::vector< int > &table_id, const ADB &aqua, const ADB &liquid, const ADB &vapour, const ADB &thp) const
 
double bhp (int table_id, const double &aqua, const double &liquid, const double &vapour, const double &thp) const
 
double thp (int table_id, const double &aqua, const double &liquid, const double &vapour, const double &bhp) const
 
const VFPInjTable * getTable (const int table_id) const
 
bool empty () const
 

Member Typedef Documentation

Constructor & Destructor Documentation

Opm::VFPInjProperties::VFPInjProperties ( )

Empty constructor

Opm::VFPInjProperties::VFPInjProperties ( const VFPInjTable *  inj_table)
explicit

Constructor Takes no ownership of data.

Parameters
inj_tableA single VFPINJ table
Opm::VFPInjProperties::VFPInjProperties ( const std::map< int, VFPInjTable > &  inj_tables)
explicit

Constructor Takes no ownership of data.

Parameters
inj_tablesA map of different VFPINJ tables.

Member Function Documentation

ADB Opm::VFPInjProperties::bhp ( const std::vector< int > &  table_id,
const Wells &  wells,
const ADB qs,
const ADB thp 
) const

Linear interpolation of bhp as function of the input parameters.

Parameters
table_idTable number to use
wellsWells structure with information about wells in qs
qsFlow quantities
thpTubing head pressure
Returns
The bottom hole pressure, interpolated/extrapolated linearly using the above parameters from the values in the input table.

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::addWellControlEq(), and Opm::BlackoilModelBase< Grid, Implementation >::updateWellControls().

ADB Opm::VFPInjProperties::bhp ( const std::vector< int > &  table_id,
const ADB aqua,
const ADB liquid,
const ADB vapour,
const ADB thp 
) const

Linear interpolation of bhp as a function of the input parameters given as ADBs 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.
double Opm::VFPInjProperties::bhp ( int  table_id,
const double &  aqua,
const double &  liquid,
const double &  vapour,
const double &  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.
bool Opm::VFPInjProperties::empty ( ) const
inline

Returns true if no vfp tables are in the current map

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::isVFPActive().

const VFPInjTable* Opm::VFPInjProperties::getTable ( const int  table_id) const
double Opm::VFPInjProperties::thp ( int  table_id,
const double &  aqua,
const double &  liquid,
const double &  vapour,
const double &  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.

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::updateWellState().


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