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

@@ -298,6 +298,13 @@ namespace Opm {
restarts = 0;
}
// further restrict time step size if we are in
// prediction mode with THP constraints.
if (solver.model().wellModel().hasTHPConstraints()) {
const double maxPredictionTHPTimestep = 16.0 * unit::day;
dtEstimate = std::min(dtEstimate, maxPredictionTHPTimestep);
}
if (timestepVerbose_) {
std::ostringstream ss;
substepReport.reportStep(ss);