Go to the documentation of this file.
32 namespace functionObjects
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.
virtual OFstream & file()
static constexpr const zero Zero
bool read(const char *buf, int32_t &val)
Virtual base class for function objects with a reference to Time.
virtual void writeFileHeader(Ostream &os)
static bool master(const label communicator=worldComm)
timeInfo(const timeInfo &)=delete
virtual bool read(const dictionary &dict)
virtual bool read(const dictionary &dict)
virtual bool read(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void writeCommented(Ostream &os, const string &str) const
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
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