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