Go to the documentation of this file.
32 namespace functionObjects
80 writeFileHeader(file());
91 perTimeStep_ =
dict.getOrDefault(
"perTimeStep",
false);
106 writeCurrentTime(file());
108 const scalar cpuTimeNow(time_.elapsedCpuTime());
109 const scalar clockTimeNow(time_.elapsedClockTime());
113 <<
tab << clockTimeNow;
118 <<
tab << (cpuTimeNow - cpuTime0_)
119 <<
tab << (clockTimeNow - clockTime0_);
121 cpuTime0_ = cpuTimeNow;
122 clockTime0_ = clockTimeNow;
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
bool read(const char *buf, int32_t &val)
Same as readInt32.
Virtual base class for function objects with a reference to Time.
virtual void writeFileHeader(Ostream &os)
Output file header information.
timeInfo(const timeInfo &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read.
word name(const complex &c)
Return string representation of complex.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
virtual bool read(const dictionary &dict)
Read the controls.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
static bool master(const label communicator=0)
Am I the master process.
virtual bool execute()
Execute, does nothing.
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
defineTypeNameAndDebug(ObukhovLength, 0)
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
virtual bool write()
Write the timeInfo.