solver: Make time-step fractional increase available externally

This commit is contained in:
Will Bainbridge
2023-01-27 13:18:06 +00:00
parent 0f24197be1
commit 0543521992
4 changed files with 25 additions and 2 deletions

View File

@ -74,7 +74,14 @@ void Foam::adjustDeltaT(Time& runTime, const PtrList<solver>& solvers)
if (transient && deltaT < rootVGreat)
{
runTime.setDeltaT(min(1.2*runTime.deltaTValue(), deltaT));
runTime.setDeltaT
(
min
(
solver::maxIncreaseDeltaT*runTime.deltaTValue(),
deltaT
)
);
Info<< "deltaT = " << runTime.deltaTValue() << endl;
}
}