General time dependent execution controller. The default to execute every time-step. More...
Public Types | |
enum | timeControls { timeStep, writeTime, outputTime, adjustableRunTime, runTime, clockTime, cpuTime, none } |
The time control options. More... | |
Public Member Functions | |
timeControl (const Time &, const dictionary &, const word &prefix) | |
Construct from Time object and dictionary. More... | |
timeControl (const timeControl &)=delete | |
Disallow default bitwise copy construction. More... | |
~timeControl () | |
Destructor. More... | |
void | read (const dictionary &) |
Read from dictionary. More... | |
const Time & | time () const |
Return Time. More... | |
bool | execute () |
Flag to indicate whether to execute. More... | |
timeControls | control () const |
Return control. More... | |
scalar | interval () const |
Return interval. More... | |
label | executionIndex () const |
Return the index of the previous execution. More... | |
void | operator= (const timeControl &)=delete |
Disallow default bitwise assignment. More... | |
General time dependent execution controller. The default to execute every time-step.
Definition at line 49 of file timeControl.H.
|
strong |
The time control options.
Definition at line 54 of file timeControl.H.
timeControl | ( | const Time & | t, |
const dictionary & | dict, | ||
const word & | prefix | ||
) |
Construct from Time object and dictionary.
Definition at line 55 of file timeControl.C.
References Foam::read().
|
delete |
Disallow default bitwise copy construction.
~timeControl | ( | ) |
Destructor.
Definition at line 74 of file timeControl.C.
void read | ( | const dictionary & | dict | ) |
Read from dictionary.
Definition at line 80 of file timeControl.C.
References Foam::endl(), dictionary::found(), IOWarningInFunction, dictionary::lookup(), dictionary::lookupOrDefault(), Foam::nl, and runTime.
|
inline |
Return Time.
Definition at line 28 of file timeControlI.H.
bool execute | ( | ) |
Flag to indicate whether to execute.
Definition at line 140 of file timeControl.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::nl, Foam::returnReduce(), and runTime.
|
inline |
Return control.
Definition at line 34 of file timeControlI.H.
|
inline |
Return interval.
Definition at line 40 of file timeControlI.H.
|
inline |
Return the index of the previous execution.
Definition at line 46 of file timeControlI.H.
|
delete |
Disallow default bitwise assignment.