mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user