From 63332125517c97eace3ea845cf7209ca59fa19a8 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 27 Jun 2019 15:29:51 +0100 Subject: [PATCH] Added minDeltaT option to automatic time-step control --- src/finiteVolume/cfdTools/general/include/createTimeControls.H | 3 +++ src/finiteVolume/cfdTools/general/include/readTimeControls.H | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/finiteVolume/cfdTools/general/include/createTimeControls.H b/src/finiteVolume/cfdTools/general/include/createTimeControls.H index fc26ec7ad..4639d5c35 100644 --- a/src/finiteVolume/cfdTools/general/include/createTimeControls.H +++ b/src/finiteVolume/cfdTools/general/include/createTimeControls.H @@ -35,6 +35,9 @@ bool adjustTimeStep = scalar maxCo = runTime.controlDict().lookupOrDefault("maxCo", 1.0); +scalar minDeltaT = + runTime.controlDict().lookupOrDefault("minDeltaT", SMALL); + scalar maxDeltaT = runTime.controlDict().lookupOrDefault("maxDeltaT", GREAT); diff --git a/src/finiteVolume/cfdTools/general/include/readTimeControls.H b/src/finiteVolume/cfdTools/general/include/readTimeControls.H index c8224d742..edaf285b1 100644 --- a/src/finiteVolume/cfdTools/general/include/readTimeControls.H +++ b/src/finiteVolume/cfdTools/general/include/readTimeControls.H @@ -35,6 +35,9 @@ adjustTimeStep = maxCo = runTime.controlDict().lookupOrDefault("maxCo", 1.0); +minDeltaT = + runTime.controlDict().lookupOrDefault("minDeltaT", GREAT); + maxDeltaT = runTime.controlDict().lookupOrDefault("maxDeltaT", GREAT);