Go to the documentation of this file.
48 #ifndef Foam_vtk_fileWriter_H
49 #define Foam_vtk_fileWriter_H
129 inline std::ofstream&
os() noexcept;
144 const
word& fieldName,
188 const
word& fieldName,
198 const
word& fieldName,
243 inline
bool legacy() const;
246 inline
bool parallel() const noexcept;
270 virtual
bool beginFile(std::
string title = "");
337 #include "foamVtkFileWriterI.H"
Encapsulated combinations of output format options. This is primarily useful when defining the output...
virtual bool writeGeometry()=0
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
A class for handling words, derived from Foam::string.
A class for handling file names.
vtk::outputOptions opts() const
void beginDataArray(const word &fieldName, const label nValues)
@ CELL_DATA
Inside CellData.
bool enter_CellData(label nEntries, label nFields)
const fileName & output() const noexcept
void writeTimeValue(scalar timeValue)
virtual bool beginCellData(label nFields=0)=0
void writeUniform(const word &fieldName, const Type &val, const label nValues)
vtk::fileTag contentType() const
label nPointData() const noexcept
std::ofstream & os() noexcept
bool beginFieldData(label nFields=0)
virtual bool beginFile(std::string title="")
bool notState(outputState test) const noexcept
static const Enum< outputState > stateNames
autoPtr< vtk::formatter > format_
label nCellData() const noexcept
bool parallel() const noexcept
@ FIELD_DATA
Inside FieldData.
bool open(const fileName &file, bool parallel=Pstream::parRun())
virtual bool beginPointData(label nFields=0)=0
vtk::fileTag contentType_
bool enter_PointData(label nEntries, label nFields)
bool isState(outputState test) const noexcept
void checkFormatterValidity() const
void writeBasicField(const word &fieldName, const UList< Type > &field)
@ DECLARED
File contents declared (VTKFile header written)
const word & state() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
@ PIECE
Inside Piece (after geometry write)
Ostream & reportBadState(Ostream &, outputState expected) const
Inter-processor communications stream.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool writeProcIDs(const label nValues)
@ POINT_DATA
Inside PointData.
vtk::formatter & format()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void beginPoints(const label nPoints)