adding computeWellPotentialWithTHP() to StandardWell

it is not clear at the moment how all the well potentials related will
work with MS wells. For the moment, keep the well poentials related only
in StandardWell.

By theory, they should be very similar, while some dependence on certain
member variables makes some small refactoring work necessary.
This commit is contained in:
Kai Bao
2017-07-24 14:48:57 +02:00
parent c3cc4021fa
commit 1d34c9dc6e
4 changed files with 257 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ namespace Opm
// TODO: for this kind of function, maybe can make a function with parameter perf
const std::vector<int>& saturationTableNumber() const;
const double wsolvent() const;
double wsolvent() const;
virtual bool getWellConvergence(Simulator& ebosSimulator,
const std::vector<double>& B_avg,
@@ -197,6 +197,10 @@ namespace Opm
virtual void applySolutionWellState(const BVector& x, const ModelParameters& param,
WellState& well_state) const = 0;
void computeWellPotentials(const Simulator& ebosSimulator,
const WellState& well_state,
std::vector<double>& well_potentials) const;
protected:
// TODO: some variables shared by all the wells should be made static
// well name
@@ -255,6 +259,10 @@ namespace Opm
const VFPProperties* vfp_properties_;
double gravity_;
bool wellHasTHPConstraints() const;
double mostStrictBhpFromBhpLimits() const;
};
}