32namespace 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;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Virtual base class for function objects with a reference to Time.
Writes the run time (time-step), cpuTime and clockTime - optionally with cpuTime and clockTime change...
virtual bool read(const dictionary &dict)
Read the controls.
virtual void writeFileHeader(Ostream &os)
Output file header information.
virtual bool execute()
Execute, does nothing.
virtual bool write()
Write the timeInfo.
Base class for writing single files from the function objects.
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
virtual OFstream & file()
Return access to the file (if only 1)
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
splitCell * master() const
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
constexpr char tab
The tab '\t' character(0x09)