functionObjects/setTimeStep: Compatibility with 'adjustableRunTime'

setTimeStep is now compatible with a 'writeControl adjustableRunTime;'
setting in the systemControlDict. If 'adjustableRunTime' is selected
then the time-step values set by this function object will not be
exactly as specified, but write intervals will be matched exactly.

All function object time adjustment is now done during the execute
methods, so the specific setTimeStep hooks have been removed.
This commit is contained in:
Will Bainbridge
2021-01-22 19:18:51 +00:00
parent ac56655601
commit 2caad45a9b
7 changed files with 17 additions and 65 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -272,9 +272,6 @@ public:
//- Called when Time::run() determines that the time-loop exits
bool end();
//- Override the time-step value
bool setTimeStep();
//- Return the time to the next write
scalar timeToNextWrite();