General time dependent execution controller. The execution parameters are given by the "Control" and (optionally) the "Interval", with the default being to execute every time-step. More...
Public Types | |
enum | timeControls { ocNone = 0, ocAlways, ocTimeStep, ocWriteTime, ocRunTime, ocAdjustableRunTime, ocClockTime, ocCpuTime, ocOnEnd } |
Public Member Functions | |
timeControl (const Time &runTime, const word &prefix="") | |
timeControl (const Time &runTime, const dictionary &dict, const word &prefix) | |
~timeControl ()=default | |
void | read (const dictionary &dict) |
const Time & | time () const |
const word & | name () const |
const word & | type () const |
void | clear () |
timeControls | control () const |
bool | always () const |
bool | execute () |
scalar | interval () const |
label | executionIndex () const |
Static Public Member Functions | |
static bool | entriesPresent (const dictionary &dict, const word &prefix) |
General time dependent execution controller. The execution parameters are given by the "Control" and (optionally) the "Interval", with the default being to execute every time-step.
For example, an "execute" control every tenth write time:
executeControl writeTime; executeInterval 10;
See Foam::functionObject for a list of known selection types.
Definition at line 57 of file timeControl.H.
enum timeControls |
Definition at line 62 of file timeControl.H.
|
explicit |
Definition at line 50 of file timeControl.C.
timeControl | ( | const Time & | runTime, |
const dictionary & | dict, | ||
const word & | prefix | ||
) |
Definition at line 65 of file timeControl.C.
References dict, and Foam::blockMeshTools::read().
|
default |
|
static |
Definition at line 80 of file timeControl.C.
References dict.
Referenced by timeControl::entriesPresent().
void read | ( | const dictionary & | dict | ) |
Definition at line 102 of file timeControl.C.
References dict, Foam::endl(), dictionary::found(), dictionary::get(), dictionary::getOrDefault(), IOWarningInFunction, Foam::nl, and error::warnAboutAge().
|
inline |
Definition at line 24 of file timeControlI.H.
|
inline |
Definition at line 30 of file timeControlI.H.
|
inline |
Definition at line 36 of file timeControlI.H.
void clear | ( | ) |
Definition at line 93 of file timeControl.C.
References timeControl::ocAlways.
|
inline |
Definition at line 42 of file timeControlI.H.
|
inline |
Definition at line 48 of file timeControlI.H.
bool execute | ( | ) |
Definition at line 163 of file timeControl.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::returnReduce().
|
inline |
Definition at line 58 of file timeControlI.H.
|
inline |
Definition at line 64 of file timeControlI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.