Go to the documentation of this file.
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);
209 Ostream&
write(
const label value,
const label fieldWidth);
double doubleScalar
A typedef for double.
A class for handling words, derived from Foam::string.
A class for handling file names.
float floatScalar
A typedef for float.
static string mask()
The '*' mask appropriate for subDir.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
streamFormat format() const noexcept
Get the current stream format.
Ostream & writeBinaryHeader()
Write "C Binary" string for binary files (eg, geometry/measured)
A token holds an item read from Istream.
virtual Ostream & write(const char)
Writing single character does not make sense.
virtual Ostream & writeKeyword(const keyType &key)
void writeLabels(const UList< label > &list)
Write a list of integers.
~ensightFile()=default
Destructor.
A class for handling keywords in dictionaries.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
void beginParticleCoordinates(const label nparticles)
Begin a "particle coordinates" block (measured data)
virtual const fileName & name() const
Get the name of the stream.
void newline()
Add carriage return to ascii stream.
Ostream & writeUndef()
Write undef value.
static label subDirWidth()
Return current width of subDir and mask.
static string subDir(const label)
Consistent zero-padded numbers for subdirectories.
static bool allowUndef()
Return setting for whether 'undef' values are allowed in results.
static const char *const coordinates
The keyword "coordinates".
streamFormat
Data format (ascii | binary)
virtual bool write(const token &)
Writing token does not make sense.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
static bool isUndef(const UList< scalar > &field)
Check for any NaN in the field.
Output to file stream, using an OSstream.
static scalar undefValue(const scalar value)
Assign the value to represent undef in the results.
Ostream & writeString(const char *str)
Write C-string as "%79s" or as binary (max 80 chars)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
void beginPart(const label index)
Begin a part (0-based index internally).
void writeList(const UList< label > &field)
Write a list of integers as float values.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...