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;
virtual OFstream & file()
Return access to the file (if only 1)
defineTypeNameAndDebug(ObukhovLength, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
constexpr char tab
The tab '\t' character(0x09)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read the controls.
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
virtual void writeFileHeader(Ostream &os)
Output file header information.
timeInfo(const timeInfo &)=delete
No copy construct.
virtual bool execute()
Execute, does nothing.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual bool read(const dictionary &dict)
Read.
virtual bool write()
Write the timeInfo.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
Base class for writing single files from the function objects.
Virtual base class for function objects with a reference to Time.
static constexpr const zero Zero
Global zero (0)
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.