32 Foam::fileName Foam::functionObjects::logFile::filePathName()
const
37 return outputDir/(name_ +
".dat");
71 writeCommented(file_,
"Time");
74 writeTabbed(file_, titles[i]);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return const reference to name.
A class for handling file names.
logFile(const objectRegistry &obr, const word &prefix, const word &name)
Construct from objectRegistry, prefix and file name.
void writeTimeColumnHeaders(const wordList &titles)
Write the time and column headers.
functionObject base class for writing single files
fileName baseFileDir() const
Return the base directory for output.
const word prefix_
Prefix.
void initStream(Ostream &os) const
Initialise the output stream for writing.
const objectRegistry & fileObr_
Reference to the region objectRegistry.
Registry of regIOobjects.
const Time & time() const
Return time.
A class for handling words, derived from string.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.