Go to the documentation of this file.
89 const std::unique_ptr<options> options_;
92 mutable std::unique_ptr<OFstream> os_;
101 mutable bool changed_;
150 scalar writeTimeset()
const;
157 const scalar timeCorrection = 0
162 void noteGeometry(
const bool moving)
const;
172 const char* ensightType
179 const char* ensightType
211 const word& caseName,
219 const word& caseName,
269 void setTime(
const scalar t,
const label index);
295 const bool isPointData =
false
390 void width(
const label i);
IOstream::streamFormat format() const
The output file format (ascii/binary)
const word & mask() const
The '*' mask appropriate for sub-directories.
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
IOstream::streamFormat format() const
Ascii/Binary file output.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
void nextTime(const scalar t)
Set time for time-set 1, using next available index.
word padded(const label i) const
Consistent zero-padded integer value.
const word & mask() const
The output '*' mask.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
label width() const
Return current width of mask and padded.
A class for handling file names.
~ensightCase()=default
Destructor.
void setTime(const scalar t, const label index)
Set current index and time for time-set 1.
Ostream & printInfo(Ostream &os) const
Print some general information.
void write() const
Write the case file.
const fileName & path() const
The nominal path to the case file.
void rewind() const
Rewind the output stream (master only).
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.
options(IOstream::streamFormat format=IOstream::BINARY)
Construct with the specified format (default is binary)
bool nodeValues() const
Force use of values per node instead of per element.
static const char * dataDirName
The name for data subdirectory: "data".
bool separateCloud() const
Write clouds into their own directory instead in "data" directory.
bool overwrite() const
Remove existing directory and sub-directories on creation.
Lookup type of boundary radiation properties.
Ostream & operator()() const
Output stream (master only).
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
A HashTable similar to std::unordered_map.
Supports writing of ensight cases as well as providing common factory methods to open new files.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
autoPtr< ensightGeoFile > newGeometry(bool moving=false) const
Open stream for new geometry file (on master).
const ensightCase::options & option() const
Reference to the case options.
Configuration options for the ensightCase.
bool nodeValues() const
Force use of values per node instead of per element.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
autoPtr< ensightFile > newCloud(const word &cloudName) const
Open stream for new cloud positions (on master).
An instant of time. Contains the time value and name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< ensightFile > newPointData(const word &varName) const
word padded(const label i) const
Consistent zero-padded integer value.
bool separateCloud() const
Write clouds into their own directory instead in "data" directory.
static const char * geometryName
The name for geometry files: "geometry".