35 namespace functionObjects
85 if (
dict.found(
"action"))
87 action_ = actionTypeNames_.read(
dict.lookup(
"action"));
98 bool stopCondition = condition();
105 case actionType::noWriteNow :
111 <<
"): stopping now without writing"
117 case actionType::writeNow :
123 <<
"): stopping now after writing"
129 case actionType::nextWrite :
135 <<
"): stopping after next write"
Inter-processor communication reduction functions.
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.