40 #ifndef functionObjects_stopAt_H
41 #define functionObjects_stopAt_H
50 namespace functionObjects
131 virtual bool write();
static const List< word > & null()
Return a null List.
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 any number of values (e....
Abstract base-class for Time/database functionObjects.
const word & name() const
Return the name of this functionObject.
Abstract base class for stop conditions.
TypeName("stopAt")
Runtime type information.
virtual wordList fields() const
Return the list of fields required.
bool stopped_
Set true when the stop action has executed.
virtual ~stopAt()
Destructor.
virtual bool condition() const =0
Return true when the stop condition is achieved.
actionType
Enumeration defining the type of action.
@ nextWrite
stop the next time data are written
@ writeNow
write data and stop immediately
@ noWriteNow
stop immediately without writing data
static const NamedEnum< actionType, 3 > actionTypeNames_
Action type names.
void operator=(const stopAt &)=delete
Disallow default bitwise assignment.
stopAt(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
virtual bool execute()
Execute, check existence of stopAt file and take action.
virtual bool write()
Execute, check existence of stopAt file and take action.
actionType action_
The type of action.
virtual bool end()
Execute at the final time-loop, used for cleanup.
virtual bool read(const dictionary &)
Read the dictionary settings.
A class for handling words, derived from string.