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:
Atgeirr Flø Rasmussen
2018-11-22 11:01:58 +01:00
parent 7f677154b4
commit 9167d08839
4 changed files with 30 additions and 2 deletions

View File

@@ -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>::