Go to the documentation of this file.
51 #ifndef Foam_vtk_PatchMeshWriter_H
52 #define Foam_vtk_PatchMeshWriter_H
182 virtual bool beginFile(std::string title =
"");
Encapsulated combinations of output format options. This is primarily useful when defining the output...
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
void writePolysLegacy(const label pointOffset)
Write patch faces, legacy format.
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
static word ext(vtk::outputOptions opts)
File extension for given output type.
A class for handling words, derived from Foam::string.
A class for handling file names.
bool writeProcIDs()
Write processor ids as CellData. This is no-op in serial.
vtk::outputOptions opts() const
The output options in use.
patchMeshWriter(const patchMeshWriter &)=delete
No copy construct.
label nLocalPolys_
Local number of polys (faces)
Mesh consisting of general polyhedral cells.
bool parallel() const noexcept
Parallel output requested?
bool writeNeighIDs()
Write processor neighbour ids as CellData. This is no-op in serial.
const polyMesh & mesh_
Reference to the OpenFOAM mesh (or subset)
label nLocalVerts_
Local face vertices (connectivity) count. Sum of face sizes.
void operator=(const patchMeshWriter &)=delete
No copy assignment.
virtual bool beginFile(std::string title="")
Write file header (non-collective)
XML inline base64, base64Formatter.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
virtual ~patchMeshWriter()=default
Destructor.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Face) or Point values.
label nLocalPoints_
Local number of points.
label numberOfPoints_
The number of field points for the current Piece.
static bool & parRun() noexcept
Test if this a parallel run.
virtual bool writeGeometry()
Write patch topology.
const labelList & patchIDs() const noexcept
The patch IDs.
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
labelList patchIDs_
The selected patch ids.
label numberOfCells_
The number of field cells (faces) for the current Piece.
void writePoints()
Write patch points.
void writePatchIDs()
Write patch ids as CellData.
void writePolys(const label pointOffset)
Write patch faces.
word ext() const
File extension for current format type.