adding computeWellPotentialWithTHP() to compute well potential

in an iterative way. When VFP interpolation is performed, the bhp and
rates are coupled together. Some iteration will be required to get the
consistent bhp and well potential.
This commit is contained in:
Kai Bao
2017-03-31 16:33:20 +02:00
parent 182c5897c8
commit a8ae9276c5
2 changed files with 145 additions and 110 deletions

View File

@@ -375,6 +375,14 @@ enum WellVariablePositions {
std::vector<double>& well_flux) const;
double leastStrictBhpFromBhpLimits(const int well_index) const;
// TODO: maybe it should be improved to be calculate general rates for THP control later
template<typename Simulator>
std::vector<double>
computeWellPotentialWithTHP(const Simulator& ebosSimulator,
const int well_index,
const double initial_bhp, // bhp from BHP constraints
const std::vector<double>& initial_potential) const;
};