Go to the documentation of this file.
39 namespace functionObjects
93 if (writeToFile() &&
names().size())
95 Info<<
"applying to clouds:" <<
nl;
99 writeFileHeader(files(cloudi));
105 Info<<
"no clouds to be processed" <<
nl <<
endl;
128 const label nTotParcels =
131 const scalar totMass =
134 const scalar Dmax =
cloud.Dmax();
135 const scalar D10 =
cloud.Dij(1, 0);
136 const scalar D32 =
cloud.Dij(3, 2);
139 <<
" number of parcels : " << nTotParcels <<
nl
140 <<
" mass in system : " << totMass <<
nl
141 <<
" maximum diameter : " << Dmax <<
nl
142 <<
" D10 diameter : " << D10 <<
nl
143 <<
" D32 diameter : " << D32 <<
nl
148 auto&
os = files(cloudi);
150 writeCurrentTime(
os);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual bool execute()
Execute, currently does nothing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
virtual void writeFileHeader(Ostream &os) const
File header information.
virtual void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
virtual bool read(const dictionary &dict)
Read.
Virtual abstract base class for templated KinematicCloud.
cloudInfo(const cloudInfo &)=delete
No copy construct.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const Type & lookupObject(const word &name, const bool recursive=false) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Inter-processor communication reduction functions.
functionObject base class for creating, maintaining and writing log files e.g. integrated or averaged...
virtual void resetNames(const wordList &names)
Reset the list of names from a wordList.
virtual bool read(const dictionary &dict)
Read the controls.
A cloud is a registry collection of lagrangian particles.
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual bool write()
Write.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
virtual label nParcels() const
Number of parcels for the hosting cloud.
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.