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_);
81 stopAtFileFile_(
"$FOAM_CASE/" +
name)
103 if (
dict.readIfPresent(
"file", stopAtFileFile_))
105 stopAtFileFile_.expand();
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Inter-processor communication reduction functions.
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool master(const label communicator=0)
Am I the master process.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Stops the run when the specified file is created in the case directory and optionally write results b...
virtual ~stopAtFile()
Destructor.
virtual bool end()
Execute at the final time-loop, used for cleanup.
virtual bool read(const dictionary &)
Read the dictionary settings.
stopAtFile(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
Abstract base class for stop conditions.
virtual bool read(const dictionary &)
Read the dictionary settings.
string & expand(const bool allowEmpty=false)
Expand initial tildes and all occurrences of environment variables.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
bool isFile(const fileName &, const bool checkVariants=true, const bool followLink=true)
Does the name exist as a file in the file system?
bool rm(const fileName &)
Remove a file, returning true if successful otherwise false.
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)