20#ifndef OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
21#define OPM_AUTODIFF_VFPPRODPROPERTIES_HPP_
43 void addTable(
const VFPProdTable& new_table);
65 template <
class EvalWell>
66 EvalWell
bhp(
const int table_id,
68 const EvalWell& liquid,
69 const EvalWell& vapour,
72 const Scalar explicit_wfr,
73 const Scalar explicit_gfr,
74 const bool use_expvfp)
const;
91 Scalar
bhp(
const int table_id,
97 const Scalar explicit_wfr,
98 const Scalar explicit_gfr,
99 const bool use_expvfp)
const;
116 Scalar
thp(
const int table_id,
122 const Scalar explicit_wfr,
123 const Scalar explicit_gfr,
124 const bool use_expvfp)
const;
130 const VFPProdTable&
getTable(
const int table_id)
const;
135 bool hasTable(
const int table_id)
const;
142 return m_tables.empty();
149 const Scalar wfr,
const Scalar gfr,
const Scalar alq)
const;
153 std::vector<Scalar> bhpwithflo(
const std::vector<Scalar>& flos,
159 const Scalar dp)
const;
162 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:38
bool empty() const
Returns true if no vfp tables are in the current map.
Definition VFPProdProperties.hpp:140
Scalar minimumBHP(const int table_id, const Scalar thp, const Scalar wfr, const Scalar gfr, const Scalar alq) const
Returns minimum bhp for given thp, wfr, gfr and alq.
Definition VFPProdProperties.cpp:143
void addTable(const VFPProdTable &new_table)
Takes no ownership of data.
Definition VFPProdProperties.cpp:157
Scalar thp(const int table_id, const Scalar aqua, const Scalar liquid, const Scalar vapour, const Scalar bhp, const Scalar alq, const Scalar explicit_wfr, const Scalar explicit_gfr, const bool use_expvfp) const
Linear interpolation of thp as a function of the input parameters.
Definition VFPProdProperties.cpp:36
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 Scalar thp, const Scalar alq, const Scalar explicit_wfr, const Scalar 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:165
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:99
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:45