Abstract base class for stop conditions. More...
Public Types | |
enum | actionType { noWriteNow, writeNow, nextWrite } |
Enumeration defining the type of action. More... | |
Public Member Functions | |
TypeName ("stopAt") | |
Runtime type information. More... | |
stopAt (const word &name, const Time &runTime, const dictionary &) | |
Construct from Time and dictionary. More... | |
stopAt (const stopAt &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~stopAt () |
Destructor. More... | |
virtual bool | read (const dictionary &) |
Read the dictionary settings. More... | |
virtual bool | execute () |
Execute, check existence of stopAt file and take action. More... | |
virtual bool | write () |
Execute, check existence of stopAt file and take action. More... | |
virtual bool | end () |
Execute at the final time-loop, used for cleanup. More... | |
void | operator= (const stopAt &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from functionObject | |
ClassName ("functionObject") | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
functionObject (const functionObject &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~functionObject () |
Destructor. More... | |
const word & | name () const |
Return the name of this functionObject. More... | |
virtual bool | executeAtStart () const |
Return true if the functionObject should be executed at the start. More... | |
virtual scalar | timeToNextWrite () |
Called by Time::adjustTimeStep(). Allows the functionObject to. More... | |
virtual void | updateMesh (const mapPolyMesh &mpm) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &mesh) |
Update for changes of mesh. More... | |
void | operator= (const functionObject &)=delete |
Disallow default bitwise assignment. More... | |
Protected Member Functions | |
virtual bool | condition () const =0 |
Return true when the stop condition is achieved. More... | |
Protected Attributes | |
const Time & | time_ |
Reference to the Time. More... | |
actionType | action_ |
The type of action. More... | |
bool | stopped_ |
Set true when the stop action has executed. More... | |
Static Protected Attributes | |
static const NamedEnum< actionType, 3 > | actionTypeNames_ |
Action type names. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from functionObject | |
static autoPtr< functionObject > | New (const word &name, const Time &, const dictionary &) |
Select from dictionary, based on its "type" entry. More... | |
Public Attributes inherited from functionObject | |
Switch | log |
Switch write log to Info. More... | |
Switch | executeAtStart_ |
Switch write log to Info. More... | |
Static Public Attributes inherited from functionObject | |
static bool | postProcess |
Global post-processing mode switch. More... | |
Abstract base class for stop conditions.
Currently the following actions are supported:
|
strong |
stopAt | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 62 of file stopAt.C.
Referenced by NamedEnum< compressibleField, 8 >::names().
|
protectedpure virtual |
Return true when the stop condition is achieved.
TypeName | ( | "stopAt" | ) |
Runtime type information.
|
virtual |
Read the dictionary settings.
Reimplemented from functionObject.
Reimplemented in stopAtFile, and stopAtClockTime.
Definition at line 83 of file stopAt.C.
References dictionary::found(), and dictionary::lookup().
Referenced by stopAtClockTime::read(), and stopAtFile::read().
|
virtual |
Execute, check existence of stopAt file and take action.
Implements functionObject.
Definition at line 98 of file stopAt.C.
References Foam::endl(), Foam::Info, Time::nextWrite, Time::noWriteNow, Foam::reduce(), Foam::type(), and Time::writeNow.
|
virtual |
Execute, check existence of stopAt file and take action.
Implements functionObject.
|
virtual |
Execute at the final time-loop, used for cleanup.
Reimplemented from functionObject.
Reimplemented in stopAtFile.
|
delete |
Disallow default bitwise assignment.
|
staticprotected |
Action type names.
Definition at line 79 of file stopAt.H.
Referenced by NamedEnum< compressibleField, 8 >::names().
|
protected |
|
protected |