Added minDeltaT option to automatic time-step control, 2
This commit is contained in:
parent
6333212551
commit
3fdcd79b67
1 changed files with 7 additions and 3 deletions
|
@ -38,11 +38,15 @@ if (adjustTimeStep)
|
||||||
|
|
||||||
runTime.setDeltaT
|
runTime.setDeltaT
|
||||||
(
|
(
|
||||||
min
|
Foam::max
|
||||||
|
(
|
||||||
|
minDeltaT,
|
||||||
|
Foam::min
|
||||||
(
|
(
|
||||||
deltaTFact*runTime.deltaT().value(),
|
deltaTFact*runTime.deltaT().value(),
|
||||||
maxDeltaT
|
maxDeltaT
|
||||||
)
|
)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "deltaT = " << runTime.deltaT().value() << endl;
|
Info<< "deltaT = " << runTime.deltaT().value() << endl;
|
||||||
|
|
Reference in a new issue