20 #ifndef OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
21 #define OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
43 void addTable(
const VFPProdTable& new_table);
62 template <
class EvalWell>
63 EvalWell
bhp(
const int table_id,
65 const EvalWell& liquid,
66 const EvalWell& vapour,
68 const double& alq)
const;
82 double bhp(
int table_id,
87 const double& alq)
const;
101 double thp(
int table_id,
103 const double& liquid,
104 const double& vapour,
106 const double& alq)
const;
112 const VFPProdTable&
getTable(
const int table_id)
const;
117 bool hasTable(
const int table_id)
const;
123 return m_tables.empty();
129 std::vector<double> bhpwithflo(
const std::vector<double>& flos,
135 const double dp)
const;
138 std::map<int, std::reference_wrapper<const VFPProdTable>> m_tables;
Class which linearly interpolates BHP as a function of rate, tubing head pressure,...
Definition: VFPProdProperties.hpp:37
const VFPProdTable & getTable(const int table_id) const
Returns the table associated with the ID, or throws an exception if the table does not exist.
Definition: VFPProdProperties.cpp:98
double thp(int table_id, const double &aqua, const double &liquid, const double &vapour, const double &bhp, const double &alq) const
Linear interpolation of thp as a function of the input parameters.
Definition: VFPProdProperties.cpp:37
void addTable(const VFPProdTable &new_table)
Takes no ownership of data.
Definition: VFPProdProperties.cpp:138
bool hasTable(const int table_id) const
Check whether there is table associated with ID.
Definition: VFPProdProperties.cpp:102
EvalWell bhp(const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const double &thp, const double &alq) const
Linear interpolation of bhp as a function of the input parameters given as Evalutions Each entry corr...
Definition: VFPProdProperties.cpp:143
bool empty() const
Returns true if no vfp tables are in the current map.
Definition: VFPProdProperties.hpp:122
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27