34 namespace functionObjects
84 if (
dict.found(
"action"))
86 action_ = actionTypeNames_.read(
dict.lookup(
"action"));
97 bool stopCondition = condition();
104 case actionType::noWriteNow :
110 <<
"): stopping now without writing"
116 case actionType::writeNow :
122 <<
"): stopping now after writing"
128 case actionType::nextWrite :
134 <<
"): stopping after next write"
Macros for easy insertion into run-time selection tables.
Initialise the NamedEnum HashTable from the static list of names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
@ nextWrite
stop the next time data are written
@ writeNow
set endTime to stop immediately w/ writing
@ noWriteNow
set endTime to stop immediately w/o writing
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Abstract base class for stop conditions.
virtual ~stopAt()
Destructor.
actionType
Enumeration defining the type of action.
static const NamedEnum< actionType, 3 > actionTypeNames_
Action type names.
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.
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.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.