20#ifndef OPM_AUTODIFF_VFPINJPROPERTIES_HPP_
21#define OPM_AUTODIFF_VFPINJPROPERTIES_HPP_
39 void addTable(
const VFPInjTable& new_table);
57 template <
class EvalWell>
58 EvalWell
bhp(
const int table_id,
60 const EvalWell& liquid,
61 const EvalWell& vapour,
62 const double&
thp)
const;
68 const VFPInjTable&
getTable(
const int table_id)
const;
73 bool hasTable(
const int table_id)
const;
79 return m_tables.empty();
93 double bhp(
int table_id,
97 const double&
thp)
const;
110 double thp(
int table_id,
112 const double& liquid,
113 const double& vapour,
114 const double&
bhp)
const;
118 std::map<int, std::reference_wrapper<const VFPInjTable>> m_tables;
Definition: VFPInjProperties.hpp:33
const VFPInjTable & getTable(const int table_id) const
Returns the table associated with the ID, or throws an exception if the table does not exist.
Definition: VFPInjProperties.cpp:81
EvalWell bhp(const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const double &thp) const
Linear interpolation of bhp as a function of the input parameters given as Evaluation Each entry corr...
Definition: VFPInjProperties.cpp:94
bool hasTable(const int table_id) const
Check whether there is table associated with ID.
Definition: VFPInjProperties.cpp:85
bool empty() const
Returns true if no vfp tables are in the current map.
Definition: VFPInjProperties.hpp:78
void addTable(const VFPInjTable &new_table)
Takes no ownership of data.
Definition: VFPInjProperties.cpp:89
double 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.
Definition: VFPInjProperties.cpp:49
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27