34 namespace functionObjects
60 cpuTime0_(time_.elapsedCpuTime()),
61 clockTime0_(time_.elapsedClockTime())
92 writeCommented(
file(),
"Time");
93 writeTabbed(
file(),
"cpu");
94 writeTabbed(
file(),
"clock");
98 writeTabbed(
file(),
"cpu/step");
99 writeTabbed(
file(),
"clock/step");
121 const scalar
cpuTime(time_.elapsedCpuTime());
122 const scalar
clockTime(time_.elapsedClockTime());
124 file() <<
tab << time_.elapsedCpuTime();
125 file() <<
tab << time_.elapsedClockTime();
129 file() <<
tab << time_.elapsedCpuTime() - cpuTime0_;
130 file() <<
tab << time_.elapsedClockTime() - clockTime0_;
Specialisation of Foam::functionObject for a region and providing a reference to the region Foam::obj...
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void writeFileHeader(const label i)
Output file header information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual ~time()
Destructor.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
time(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool write()
Write the time.
defineTypeNameAndDebug(Qdot, 0)
Starts timing CPU usage and return elapsed time from start.
virtual bool execute()
Execute, currently does nothing.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~2...
virtual bool read(const dictionary &)
Read the controls.