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_;
147 void writeHeader()
const;
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,
270 void setTime(const scalar t, const label index);
296 const
bool isPointData = false
322 inline
Ostream& operator()() const;
335 const scalar timeValue
353 const
UList<scalar>& times
370 const
UList<scalar>& times,
429 label width() const
noexcept {
return width_; }
432 bool overwrite() const
noexcept {
return overwrite_; }
442 void width(
const label i);
445 void overwrite(
bool on)
noexcept { overwrite_ = on; }
448 void separateCloud(
bool on)
noexcept { separateCloud_ = on; }
460 void nodeValues(
bool on)
noexcept { nodeValues_ = on; }
A HashTable similar to std::unordered_map.
streamFormat
Data format (ascii | binary)
A HashTable to objects of type <T> with a label key.
Generic output stream using a standard (STL) 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...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Configuration options for the ensightCase.
bool nodeValues() const noexcept
Forced use of values per node instead of per element.
label width() const noexcept
Return current width of mask and padded.
void separateCloud(bool on) noexcept
Write clouds into their own directory instead in "data" directory.
bool overwrite() const noexcept
Remove existing directory and sub-directories on creation.
bool separateCloud() const noexcept
Write clouds into their own directory instead in "data" directory.
const word & mask() const noexcept
The '*' mask appropriate for sub-directories.
void overwrite(bool on) noexcept
Remove existing directory and sub-directories on creation.
IOstreamOption::streamFormat format() const noexcept
Ascii/Binary file output.
Supports writing of ensight cases as well as providing common factory methods to open new files.
const word & mask() const
The output '*' mask.
autoPtr< ensightFile > newCloud(const word &cloudName) const
Open stream for new cloud positions (on master).
static const char * dataDirName
The name for data subdirectory: "data".
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
void write() const
Write the case file.
autoPtr< ensightFile > newPointData(const word &varName) const
Ostream & printInfo(Ostream &os) const
Print some general information.
const fileName & path() const noexcept
The nominal path to the case file.
word padded(const label i) const
Consistent zero-padded integer value.
bool nodeValues() const
Force use of values per node instead of per element.
autoPtr< ensightGeoFile > newGeometry(bool moving=false) const
Open stream for new geometry file (on master).
void setTime(const scalar t, const label index)
Set current index and time for time-set 1.
~ensightCase()=default
Destructor.
autoPtr< ensightFile > newCloudData(const word &cloudName, const word &varName) const
Open stream for new cloud data file (on master), with current index.
static const char * geometryName
The name for geometry files: "geometry".
void rewind() const
Rewind the output stream (master only).
bool separateCloud() const
Write clouds into their own directory instead in "data" directory.
void nextTime(const scalar t)
Set time for time-set 1, using next available index.
const ensightCase::options & option() const
Reference to the case options.
IOstreamOption::streamFormat format() const
The output file format (ascii/binary)
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...
Specialized Ensight output with extra geometry file header.
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
Lookup type of boundary radiation properties.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const word cloudName(propsDict.get< word >("cloud"))