49 #ifndef Foam_vtk_polyWriter_H 50 #define Foam_vtk_polyWriter_H 101 const label nCellValues,
102 const word& fieldName,
123 void writeLinesLegacy(
const edgeList& edges,
const label pointOffset);
127 void writeLines(
const edgeList& edges,
const label pointOffset);
131 void writePolysLegacy(
const faceList& faces,
const label pointOffset);
135 void writePolys(
const faceList& faces,
const label pointOffset);
bool parallel() const noexcept
Parallel output requested?
A class for handling file names.
label nLocalVerts_
Local number of vertices (points)
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data). These output formats are structured as DECLARED, FIELD_DATA, PIECE followed by any CELL_DATA or POINT_DATA.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
virtual bool writeGeometry()
Dummy write mesh topology method - Fatal if called.
static bool & parRun() noexcept
Test if this a parallel run.
vtk::outputOptions opts() const noexcept
The output options in use.
label numberOfPoints_
The number of field points for the current Piece.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
label nLocalLines_
Local number of lines (edges)
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
word ext() const
File extension for current format type.
A class for handling words, derived from Foam::string.
label nLocalPoints_
Local number of points.
void writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
virtual ~polyWriter()=default
Destructor.
bool writePolyGeometry(const pointField &points, const faceList &faces)
Low-level write face/point topology. Normally used by writeGeometry() in a derived class...
label nLocalPolys_
Local number of polys (faces)
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
XML inline base64, base64Formatter.
bool writeLineGeometry(const pointField &points, const edgeList &edges)
Low-level write edge/point topology. Normally used by writeGeometry() in a derived class...
label numberOfCells_
The number of field cells (edges or faces) for the current Piece.