20 #ifndef OPM_AUTODIFF_VFPINJPROPERTIES_HPP_ 21 #define OPM_AUTODIFF_VFPINJPROPERTIES_HPP_ 33 template<
class Scalar>
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 Scalar
thp)
const;
68 const VFPInjTable&
getTable(
const int table_id)
const;
73 bool hasTable(
const int table_id)
const;
80 return m_tables.empty();
94 Scalar
bhp(
const int table_id,
98 const Scalar
thp)
const;
111 Scalar
thp(
const int table_id,
115 const Scalar
bhp)
const;
119 std::map<int, std::reference_wrapper<const VFPInjTable>> m_tables;
Definition: VFPInjProperties.hpp:34
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Scalar thp(const int table_id, const Scalar aqua, const Scalar liquid, const Scalar vapour, const Scalar bhp) const
Linear interpolation of thp as a function of the input parameters.
Definition: VFPInjProperties.cpp:50
void addTable(const VFPInjTable &new_table)
Takes no ownership of data.
Definition: VFPInjProperties.cpp:96
bool empty() const
Returns true if no vfp tables are in the current map.
Definition: VFPInjProperties.hpp:78
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:84
EvalWell bhp(const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const Scalar thp) const
Linear interpolation of bhp as a function of the input parameters given as Evaluation Each entry corr...
Definition: VFPInjProperties.cpp:103
bool hasTable(const int table_id) const
Check whether there is table associated with ID.
Definition: VFPInjProperties.cpp:90