20#ifndef OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
21#define OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
62 template <
class EvalWell>
65 const EvalWell& liquid,
109 const double& liquid,
112 const double& alq)
const;
129 return m_tables.empty();
135 std::vector<double> bhpwithflo(
const std::vector<double>&
flos,
141 const double dp)
const;
144 std::map<int, std::reference_wrapper<const VFPProdTable>> m_tables;
Definition AquiferInterface.hpp:35
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
void addTable(const VFPProdTable &new_table)
Takes no ownership of data.
Definition VFPProdProperties.cpp:141
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:146
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