51 fileName baseDir = fileObr_.time().globalPath()/outputPrefix;
54 if (isA<polyMesh>(fileObr_))
56 const polyMesh& mesh = refCast<const polyMesh>(fileObr_);
59 baseDir = baseDir/mesh.
name();
69 return baseFileDir()/prefix_/fileObr_.time().
name();
115 os <<
setw(1) <<
"#" <<
setw(1) <<
' '
116 <<
setf(ios_base::left) <<
setw(charWidth() - 2) << str.c_str();
126 os <<
tab <<
setw(charWidth()) << str.c_str();
136 os <<
setw(1) <<
"#" <<
setw(1) <<
' '
137 <<
setf(ios_base::left) <<
setw(charWidth() - 2) << str.c_str() <<
nl;
143 os <<
setw(charWidth()) << fileObr_.time().name();
const word & name() const
Return name.
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
static unsigned int defaultPrecision()
Return the default precision.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual int width() const =0
Get width of output field.
A class for handling file names.
word name() const
Return file name (part beyond last /)
fileName baseFileDir() const
Return the base directory for output.
void writeTime(Ostream &os) const
Write the current time to stream.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
label charWidth() const
Return width of character stream output.
Omanip< int > valueWidth(const label offset=0) const
Return the value width when writing to stream with optional offset.
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
static const word outputPrefix
Directory prefix.
void initStream(Ostream &os) const
Initialise the output stream for writing.
static label addChars
Additional characters for writing.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
fileName baseTimeDir() const
Return the base directory for the current time value.
writeFile(const objectRegistry &obr, const word &prefix)
Construct from objectRegistry and prefix.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
A class for handling words, derived from string.
Smanip< ios_base::fmtflags > setf(const ios_base::fmtflags flags)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Omanip< int > setw(const int i)
IOstream & scientific(IOstream &io)
void offset(label &lst, const label o)