34 namespace functionObjects
44 bool Foam::functionObjects::stopAtEmptyClouds::condition()
const
58 const HashTable<const polyMesh*> meshes =
63 const HashTable<const parcelCloud*> clouds =
64 meshIter()->lookupClass<parcelCloud>();
70 if (
returnReduce(cloudIter()->nParcels(), sumOp<label>()) != 0)
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
label timeIndex() const
Return current time index.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual label startTimeIndex() const
Return start time index.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
const Time & time_
Reference to time.
Stops the run when all parcel clouds are empty.
stopAtEmptyClouds(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~stopAtEmptyClouds()
Destructor.
Abstract base class for stop conditions.
virtual bool read(const dictionary &)
Read the dictionary settings.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
word name(const bool)
Return a word representation of a bool.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)