Add option for explicit vfp lookup for problmatic wells

This commit is contained in:
Tor Harald Sandve
2022-02-22 15:25:10 +01:00
parent b3a9253de1
commit b1b23a57de
11 changed files with 86 additions and 12 deletions

View File

@@ -345,12 +345,19 @@ VFPEvaluation bhp(const VFPProdTable& table,
const double liquid,
const double vapour,
const double thp,
const double alq)
const double alq,
const double explicit_wfr,
const double explicit_gfr,
const bool vfpexplicit)
{
//Find interpolation variables
double flo = detail::getFlo(table, aqua, liquid, vapour);
double wfr = detail::getWFR(table, aqua, liquid, vapour);
double gfr = detail::getGFR(table, aqua, liquid, vapour);
if (vfpexplicit) {
wfr = explicit_wfr;
gfr = explicit_gfr;
}
//First, find the values to interpolate between
//Recall that flo is negative in Opm, so switch sign.