Add THP support in the denseAD well model

Tested on a set of modified SPE1DECK with VFP for injectors and
producers
This commit is contained in:
Tor Harald Sandve
2016-09-09 11:33:34 +02:00
parent 0c21f2e3de
commit 3d86cc3668
7 changed files with 244 additions and 106 deletions

View File

@@ -23,6 +23,8 @@
#include <opm/parser/eclipse/EclipseState/Tables/VFPProdTable.hpp>
#include <opm/core/wells.h>
#include <opm/autodiff/AutoDiffBlock.hpp>
#include <opm/material/densead/Math.hpp>
#include <opm/material/densead/Evaluation.hpp>
#include <vector>
#include <map>
@@ -99,6 +101,15 @@ public:
const ADB& thp,
const ADB& alq) const;
typedef DenseAd::Evaluation<double, /*size=*/6> EvalWell;
EvalWell bhp(const int table_id,
const EvalWell& aqua,
const EvalWell& liquid,
const EvalWell& vapour,
const double& thp,
const double& alq) const;
/**
* Linear interpolation of bhp as a function of the input parameters
* @param table_id Table number to use