adding a function setGuideRatesWithPotentials() to WellCollection

it only handles the calculation based on wellPotentials though.

Or it should also give each well a value for wells does not specify a
guide rates? which will be some value same for all the wells?
This commit is contained in:
Kai Bao
2017-03-16 10:50:34 +01:00
parent 5125929a66
commit dff247d975
2 changed files with 144 additions and 0 deletions

View File

@@ -146,6 +146,12 @@ namespace Opm
// The strategy may need to be adjusted when more complicated multi-layered group control situation applied, not sure about thatyet.
bool groupTargetConverged(const std::vector<double>& well_rates) const;
/// Setting the guide rates with well potentials
void setGuideRatesWithPotentials(const Wells* wells,
const PhaseUsage& phase_usage,
const std::vector<double>& well_potentials) const;
private:
// To account for the possibility of a forest
std::vector<std::shared_ptr<WellsGroupInterface> > roots_;