106 label executionIndex_;
166 inline bool always()
const;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
General time dependent execution controller. The execution parameters are given by the "Control" and ...
scalar interval() const
Return interval.
const Time & time() const
Return the Time.
static bool entriesPresent(const dictionary &dict, const word &prefix)
Identify if a timeControl object is present in the dictionary.
void read(const dictionary &dict)
Read from dictionary.
timeControls control() const
Return the control enumeration.
timeControls
The time control options.
@ ocClockTime
Use clock time for execution.
@ ocAlways
Always execute.
@ ocCpuTime
Use CPU time for execution.
@ ocRunTime
Use run-time for execution.
@ ocOnEnd
Execute on end of run.
@ ocAdjustableRunTime
Currently identical to "runTime".
@ ocWriteTime
Execution coupled to write-time.
@ ocTimeStep
Execution coupled to time-step (default)
~timeControl()=default
Destructor.
void clear()
Reset control to 'always' - ie, no intervention.
label executionIndex() const
Return the index of the previous execution.
const word & name() const
Return the name (prefix)
bool execute()
Flag to indicate whether to execute.
bool always() const
Return true if the control will always execute - ie, no intervention.
const word & type() const
Return the named control enumeration as its 'type'.
A class for handling words, derived from Foam::string.