Improved initial deltaT controls

This commit is contained in:
Hrvoje Jasak 2019-07-01 18:13:23 +01:00
parent 011589a375
commit e2bffde2aa

View file

@ -36,11 +36,15 @@ if (adjustTimeStep)
{ {
runTime.setDeltaT runTime.setDeltaT
( (
min Foam::min
(
runTime.deltaT().value(),
Foam::min
( (
maxCo*runTime.deltaT().value()/CoNum, maxCo*runTime.deltaT().value()/CoNum,
maxDeltaT maxDeltaT
) )
)
); );
} }
} }