41 #ifndef Foam_ensightCase_H 42 #define Foam_ensightCase_H 90 const std::unique_ptr<options> options_;
93 mutable std::unique_ptr<OFstream> os_;
102 mutable bool changed_;
151 scalar writeTimeset()
const;
158 const scalar timeCorrection = 0
163 void noteGeometry(
const bool moving)
const;
173 const char* ensightType
180 const char* ensightType
212 const word& caseName,
220 const word& caseName,
232 static word padded(
const int nwidth,
const label value);
276 void setTime(const scalar t, const label index);
302 const
bool isPointData = false
328 inline
Ostream& operator()() const;
341 const scalar timeValue
359 const
UList<scalar>& times
376 const
UList<scalar>& times,
432 word
padded(
const label i)
const;
435 label width() const
noexcept {
return width_; }
438 bool overwrite() const
noexcept {
return overwrite_; }
448 void width(
const label i);
451 void overwrite(
bool on)
noexcept { overwrite_ = on; }
static void printTimeset(OSstream &os, const label ts, const scalar timeValue)
Print time-set for ensight case file with a single time.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Generic output stream using a standard (STL) stream.
A class for handling file names.
static void writeHeader(Ostream &os, const word &fieldName)
autoPtr< ensightFile > newCloudData(const word &cloudName, const word &varName) const
Open stream for new cloud data file (on master), with current index.
static word padded(const int nwidth, const label value)
Stringified zero-padded integer value.
Supports writing of ensight cases as well as providing common factory methods to open new files...
Specialized Ensight output with extra geometry file header.
void nextTime(const scalar t)
Set time for time-set 1, using next available index.
void rewind() const
Rewind the output stream (master only).
Lookup type of boundary radiation properties.
Configuration options for the ensightCase.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const word cloudName(propsDict.get< word >("cloud"))
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
A class for handling words, derived from Foam::string.
static const char * geometryName
The name for geometry files: "geometry".
IOstreamOption::streamFormat format() const
The output file format (ascii/binary)
A HashTable similar to std::unordered_map.
const fileName & path() const noexcept
The nominal path to the case file.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool separateCloud() const
Write clouds into their own directory instead in "data" directory.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const ensightCase::options & option() const
Reference to the case options.
autoPtr< ensightGeoFile > newGeometry(bool moving=false) const
Open stream for new geometry file (on master).
OBJstream os(runTime.globalPath()/outputName)
bool nodeValues() const
Force use of values per node instead of per element.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
void write() const
Write the case file.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
~ensightCase()=default
Destructor.
streamFormat
Data format (ascii | binary)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
static const char * dataDirName
The name for data subdirectory: "data".
const word & mask() const
The output '*' mask.
Ostream & printInfo(Ostream &os) const
Print some general information.
autoPtr< ensightFile > newCloud(const word &cloudName) const
Open stream for new cloud positions (on master).
autoPtr< ensightFile > newPointData(const word &varName) const
Open stream for new data file (on master), with current index and marking as containing POINT_DATA...
void setTime(const scalar t, const label index)
Set current index and time for time-set 1.