36#ifndef Foam_ensightFile_H
37#define Foam_ensightFile_H
60 static bool allowUndef_;
63 static scalar undefValue_;
69 static string dirFmt_;
97 return NullObjectRef<ensightFile>();
133 static string mask();
136 static string subDir(
const label);
191 virtual Ostream&
write(
const char* buf, std::streamsize count);
209 Ostream&
write(
const label value,
const label fieldWidth);
streamFormat format() const noexcept
Get the current stream format.
streamFormat
Data format (ascii | binary)
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
Output to file stream, using an OSstream.
virtual const fileName & name() const
Read/write access to the name of the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Ostream & writeBinaryHeader()
Write "C Binary" string for binary files (eg, geometry/measured)
static const char *const coordinates
The keyword "coordinates".
static bool isUndef(const UList< scalar > &field)
Check for any NaN in the field.
virtual Ostream & writeKeyword(const keyType &key)
virtual Ostream & write(const char)
Writing single character does not make sense.
void beginPart(const label index)
Begin a part (0-based index internally).
static bool allowUndef()
Return setting for whether 'undef' values are allowed in results.
static label subDirWidth()
Return current width of subDir and mask.
void writeList(const UList< label > &field)
Write a list of integers as float values.
void writeLabels(const UList< label > &list)
Write a list of integers.
Ostream & writeUndef()
Write undef value.
static const ensightFile & null()
Return a null ensightFile.
static scalar undefValue(const scalar value)
Assign the value to represent undef in the results.
static string subDir(const label)
Consistent zero-padded numbers for subdirectories.
virtual bool write(const token &)
Writing token does not make sense.
void beginParticleCoordinates(const label nparticles)
Begin a "particle coordinates" block (measured data)
Ostream & writeString(const char *str)
Write C-string as "%79s" or as binary (max 80 chars)
void newline()
Add carriage return to ascii stream.
static string mask()
The '*' mask appropriate for subDir.
~ensightFile()=default
Destructor.
A class for handling file names.
A class for handling keywords in dictionaries.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
double doubleScalar
A typedef for double.
float floatScalar
A typedef for float.