Wrapper around functionObjects to add time control. More...
Public Types | |
enum | controlMode { TIME, TRIGGER, TIME_OR_TRIGGER, TIME_AND_TRIGGER } |
Public Member Functions | |
TypeName ("timeControl") | |
timeControl (const word &name, const Time &runTime, const dictionary &dict) | |
const dictionary & | dict () const |
const Foam::timeControl & | executeControl () const |
const Foam::timeControl & | writeControl () const |
const functionObject & | filter () const |
virtual bool | execute () |
virtual bool | execute (const label subIndex) |
virtual bool | write () |
virtual bool | end () |
virtual bool | adjustTimeStep () |
virtual bool | filesModified () const |
virtual bool | read (const dictionary &) |
virtual void | updateMesh (const mapPolyMesh &mpm) |
virtual void | movePoints (const polyMesh &mesh) |
![]() | |
timeFunctionObject (const word &name, const Time &runTime) | |
virtual | ~timeFunctionObject ()=default |
const Time & | time () const |
objectRegistry & | storedObjects () |
const objectRegistry & | storedObjects () const |
![]() | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
autoPtr< functionObject > | clone () const |
virtual | ~functionObject ()=default |
virtual const word & | type () const =0 |
const word & | name () const noexcept |
bool | useNamePrefix () const noexcept |
bool | useNamePrefix (bool on) noexcept |
Static Public Member Functions | |
static bool | entriesPresent (const dictionary &dict) |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
Static Public Attributes | |
static const Enum< controlMode > | controlModeNames_ |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
Additional Inherited Members | |
![]() | |
bool | log |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
timeFunctionObject (const timeFunctionObject &)=delete | |
void | operator= (const timeFunctionObject &)=delete |
![]() | |
word | scopedName (const word &name) const |
![]() | |
const Time & | time_ |
Wrapper around functionObjects to add time control.
The function object can be limited to operate within a time range using the timeStart and timEnd options. All objects are read (and the OutputFilter allocated) on construction. However, if a timeEnd is supplied, the object will call the 'end' function of the filter at the timeEnd time and destroy the filter. Any other callback (execute(), write(), timeSet() etc) will only operate if within the timeStart, timeEnd time range. Note that the time range uses 0.5 * deltaT as a comparison tolerance to account for precision errors.
Definition at line 72 of file timeControlFunctionObject.H.
|
strong |
Enumerator | |
---|---|
TIME | |
TRIGGER | |
TIME_OR_TRIGGER | |
TIME_AND_TRIGGER |
Definition at line 81 of file timeControlFunctionObject.H.
timeControl | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Definition at line 439 of file timeControlFunctionObject.C.
TypeName | ( | "timeControl" | ) |
|
inline |
Definition at line 23 of file timeControlFunctionObjectI.H.
|
inline |
Definition at line 30 of file timeControlFunctionObjectI.H.
|
inline |
Definition at line 37 of file timeControlFunctionObjectI.H.
|
inline |
Definition at line 44 of file timeControlFunctionObjectI.H.
|
static |
Definition at line 466 of file timeControlFunctionObject.C.
References dict, and timeControl::entriesPresent().
Referenced by multiRegion::read(), and functionObjectList::read().
|
virtual |
Implements functionObject.
Definition at line 486 of file timeControlFunctionObject.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 501 of file timeControlFunctionObject.C.
|
virtual |
Implements functionObject.
Definition at line 513 of file timeControlFunctionObject.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 531 of file timeControlFunctionObject.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 542 of file timeControlFunctionObject.C.
References Foam::expressions::patchExpr::debug, TimeState::deltaTValue(), Foam::endl(), Foam::labelMax, Foam::log(), Foam::mag(), Foam::max(), Foam::min(), timeControl::ocAdjustableRunTime, and WarningInFunction.
|
virtual |
Reimplemented from functionObject.
Definition at line 795 of file timeControlFunctionObject.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 777 of file timeControlFunctionObject.C.
References dict.
|
virtual |
Reimplemented from functionObject.
Definition at line 801 of file timeControlFunctionObject.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 810 of file timeControlFunctionObject.C.
References mesh.
|
static |
Definition at line 89 of file timeControlFunctionObject.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.