From 52fca6c91dd47f6b8394496dc34b128a84fedcd7 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 4 Apr 2022 09:53:09 +0200 Subject: [PATCH] use a relaxed (but not too relaxed) well tolerance when iter>6 also shut unsolvable wells during iterations as default Note however that getWellConvergence return false if a well is unsolvable i.e. it will cut the timestep and redo the iteration if the well is unsolvable and only shut it completly if the time step is below the MinTimeStepBeforeShuttingProblematicWellsInDays (default 0.01 days) --- opm/simulators/flow/BlackoilModelParametersEbos.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/simulators/flow/BlackoilModelParametersEbos.hpp b/opm/simulators/flow/BlackoilModelParametersEbos.hpp index 4a8631e2d..3fe292105 100644 --- a/opm/simulators/flow/BlackoilModelParametersEbos.hpp +++ b/opm/simulators/flow/BlackoilModelParametersEbos.hpp @@ -267,7 +267,7 @@ struct MaxInnerIterWells { }; template struct ShutUnsolvableWells { - static constexpr bool value = false; + static constexpr bool value = true; }; template struct AlternativeWellRateInit { @@ -275,7 +275,7 @@ struct AlternativeWellRateInit { }; template struct StrictOuterIterWells { - static constexpr int value = 99; + static constexpr int value = 6; }; template struct StrictInnerIterWells { @@ -297,12 +297,12 @@ struct EnableWellOperabilityCheckIter { template struct RelaxedWellFlowTol { using type = GetPropType; - static constexpr type value = 1; + static constexpr type value = 1e-3; }; template struct RelaxedPressureTolMsw { using type = GetPropType; - static constexpr type value = 0.5e5; + static constexpr type value = 1.0e4; }; template struct MaximumNumberOfWellSwitches {