mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Limit timestep when we have THP constraints present.
Using 16 days as the current limit. Could be made a user parameter.
This commit is contained in:
@@ -116,6 +116,23 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
/// Return true if any well has a THP constraint.
|
||||
template<typename TypeTag>
|
||||
bool
|
||||
BlackoilWellModel<TypeTag>::
|
||||
hasTHPConstraints() const
|
||||
{
|
||||
for (const auto& well : well_container_) {
|
||||
if (well->wellHasTHPConstraints()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
void
|
||||
BlackoilWellModel<TypeTag>::
|
||||
|
||||
Reference in New Issue
Block a user