36 namespace functionObjects
52 void Foam::functionObjects::stopAtFile::removeFile()
const 54 bool fileExists =
isFile(stopAtFileFile_);
55 reduce(fileExists, orOp<bool>());
65 bool Foam::functionObjects::stopAtFile::condition()
const 67 return isFile(stopAtFileFile_);
80 stopAt(name, runTime, dict),
81 stopAtFileFile_(
"$FOAM_CASE/" + name)
83 stopAtFileFile_.expand();
105 stopAtFileFile_.expand();
virtual bool end()
Execute at the final time-loop, used for cleanup.
stopAtFile(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
Inter-processor communication reduction functions.
virtual bool read(const dictionary &)
Read the dictionary settings.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool isFile(const fileName &, const bool checkVariants=true, const bool followLink=true)
Does the name exist as a file in the file system?
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
static bool master(const label communicator=0)
Am I the master process.
virtual ~stopAtFile()
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual bool read(const dictionary &)
Read the dictionary settings.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
defineTypeNameAndDebug(Qdot, 0)
Abstract base class for stop conditions.
bool rm(const fileName &)
Remove a file, returning true if successful otherwise false.