39 const word startTimeName =
63 filePtrs_.setSize(names_.size());
121 <<
"Request for files() can only be done by the master process"
134 <<
"Request for file(i) can only be done by the master process"
138 if (!filePtrs_.set(i))
141 <<
"File pointer at index " << i <<
" not allocated"
Output to file stream, using an OSstream.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual bool read()
Re-read model coefficients if they have changed.
virtual dimensionedScalar startTime() const
Return start time.
static word timeName(const scalar t, const int precision=precision_)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Type & value() const
Return const reference to value.
Watches for presence of the named trigger file in the case directory and signals a simulation stop (o...
functionObject base class for creating, maintaining and writing log files e.g. integrated or averaged...
virtual void resetNames(const wordList &names)
Reset the list of names from a wordList.
virtual void createFiles()
Create the output file.
PtrList< OFstream > filePtrs_
File pointer.
PtrList< OFstream > & files()
Return access to the files.
virtual void resetName(const word &name)
Reset the list of names to a single name entry.
wordList names_
File names.
const wordList & names() const
Return const access to the names.
virtual bool write()
Write function.
Base class for writing single files from the function objects.
virtual autoPtr< OFstream > createFile(const word &name, scalar timeValue) const
Return autoPtr to a new file for a given time.
void initStream(Ostream &os) const
Initialise the output stream for writing.
virtual void resetFile(const word &name)
Reset internal file pointer to new file with new name.
const objectRegistry & fileObr_
Reference to the region objectRegistry.
Registry of regIOobjects.
const Time & time() const noexcept
Return time registry.
splitCell * master() const
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define forAll(list, i)
Loop across all elements in list.