21#ifndef OPM_AUTODIFF_VFPHELPERS_HPP_
22#define OPM_AUTODIFF_VFPHELPERS_HPP_
45T getFlo(
const VFPProdTable& table,
56T getFlo(
const VFPInjTable& table,
66T getWFR(
const VFPProdTable& table,
76T getGFR(
const VFPProdTable& table,
85 InterpData() : ind_{0, 0}, inv_dist_(0.0), factor_(0.0) {}
103 VFPEvaluation() : value(0.0), dthp(0.0), dwfr(0.0), dgfr(0.0), dalq(0.0), dflo(0.0) {};
142 const bool use_vfpexplicit);
155const T& getTable(
const std::map<
int, std::reference_wrapper<const T>>&
tables,
int table_id);
161bool hasTable(
const std::map<
int, std::reference_wrapper<const T>>&
tables,
int table_id) {
170template <
typename TYPE,
typename TABLE>
180double findTHP(
const std::vector<double>&
bhp_array,
Definition AquiferInterface.hpp:35
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27
Helper struct for linear interpolation.
Definition VFPHelpers.hpp:84
An "ADB-like" structure with a single value and a set of derivatives.
Definition VFPHelpers.hpp:102