mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add method for getting the surfacevolume well connection rate
changed wellpointer from unique to shared to make it accecible from outside the wellmodel add method for surfacevolume well connection rate
This commit is contained in:
@@ -358,6 +358,22 @@ namespace Opm {
|
||||
well->addCellRates(rate, elemIdx);
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
typename BlackoilWellModel<TypeTag>::WellInterfacePtr
|
||||
BlackoilWellModel<TypeTag>::
|
||||
well(const std::string& wellName) const
|
||||
{
|
||||
for (const auto& well : well_container_) {
|
||||
if (well->name() == wellName) {
|
||||
return well;
|
||||
}
|
||||
}
|
||||
OPM_THROW(std::invalid_argument, "The well with name " + wellName + " is not in the well Container");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template<typename TypeTag>
|
||||
void
|
||||
BlackoilWellModel<TypeTag>::
|
||||
|
||||
Reference in New Issue
Block a user