34 namespace functionObjects
52 writeHeader(file(),
"Cloud information");
53 writeCommented(file(),
"Time");
54 writeTabbed(file(),
"nParcels");
55 writeTabbed(file(),
"mass");
62 Foam::functionObjects::cloudInfo::cloudInfo
90 Info<<
"applying to clouds:" <<
nl;
93 Info<<
" " << names()[i] <<
nl;
99 Info<<
"no clouds to be processed" <<
nl <<
endl;
124 scalar massInSystem =
133 << massInSystem <<
endl;
virtual bool execute()
Execute, currently does nothing.
virtual scalar massInSystem() const =0
Total mass in system.
virtual void resetNames(const wordList &names)
Reset the list of names from a wordList.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
functionObject base class for writing files
virtual ~cloudInfo()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
const word cloudName(propsDict.lookup("cloudName"))
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual label nParcels() const =0
Number of parcels.
virtual bool read(const dictionary &)
Read the controls.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
A cloud is a collection of lagrangian particles.
virtual bool write()
Write.
word name(const complex &)
Return a string representation of a complex.
Virtual abstract base class for templated KinematicCloud.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
addToRunTimeSelectionTable(functionObject, blendingFactor, dictionary)
virtual bool write()
Write function.
virtual void writeFileHeader(const label i)
File header information.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.