adding a non-const wellCollection() in WellsManager.
For the WellModel from the simulator to use. Not decided totally, well_collection might need to be updated during the simualtion due to the update the target of wells.
This commit is contained in:
parent
36bedfcf67
commit
4214cfec83
@ -373,6 +373,12 @@ namespace Opm
|
|||||||
return well_collection_;
|
return well_collection_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WellCollection& WellsManager::wellCollection() {
|
||||||
|
return well_collection_;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool WellsManager::conditionsMet(const std::vector<double>& well_bhp,
|
bool WellsManager::conditionsMet(const std::vector<double>& well_bhp,
|
||||||
const std::vector<double>& well_reservoirrates_phase,
|
const std::vector<double>& well_reservoirrates_phase,
|
||||||
const std::vector<double>& well_surfacerates_phase)
|
const std::vector<double>& well_surfacerates_phase)
|
||||||
|
@ -114,6 +114,7 @@ namespace Opm
|
|||||||
|
|
||||||
/// Access the well group hierarchy.
|
/// Access the well group hierarchy.
|
||||||
const WellCollection& wellCollection() const;
|
const WellCollection& wellCollection() const;
|
||||||
|
WellCollection& wellCollection();
|
||||||
|
|
||||||
/// Checks if each condition is met, applies well controls where needed
|
/// Checks if each condition is met, applies well controls where needed
|
||||||
/// (that is, it either changes the active control of violating wells, or shuts
|
/// (that is, it either changes the active control of violating wells, or shuts
|
||||||
|
Loading…
Reference in New Issue
Block a user