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,
69 const double& explicit_wfr,
70 const double& explicit_gfr,
71 const bool use_expvfp)
const;
85 double bhp(
int table_id,
91 const double& explicit_wfr,
92 const double& explicit_gfr,
93 const bool use_expvfp)
const;
107 double thp(
int table_id,
109 const double& liquid,
110 const double& vapour,
112 const double& alq)
const;
118 const VFPProdTable&
getTable(
const int table_id)
const;
123 bool hasTable(
const int table_id)
const;
129 return m_tables.empty();
136 const double wfr,
const double gfr,
const double alq)
const;
139 std::vector<double> bhpwithflo(
const std::vector<double>& flos,
145 const double dp)
const;
148 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:101
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
double minimumBHP(const int table_id, const double thp, const double wfr, const double gfr, const double alq) const
Returns minimum bhp for given thp, wfr, gfr and alq.
Definition VFPProdProperties.cpp:142
void addTable(const VFPProdTable &new_table)
Takes no ownership of data.
Definition VFPProdProperties.cpp:157
bool hasTable(const int table_id) const
Check whether there is table associated with ID.
Definition VFPProdProperties.cpp:105
EvalWell bhp(const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const double &thp, const double &alq, const double &explicit_wfr, const double &explicit_gfr, const bool use_expvfp) const
Linear interpolation of bhp as a function of the input parameters given as Evalutions Each entry corr...
Definition VFPProdProperties.cpp:162
bool empty() const
Returns true if no vfp tables are in the current map.
Definition VFPProdProperties.hpp:128
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27