Go to the documentation of this file.
51 #ifndef foamVtkPatchMeshWriter_H
52 #define foamVtkPatchMeshWriter_H
183 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.
bool parallel() const
Parallel output requested?
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.
static bool & parRun()
Test if this a parallel run, or allow modify access.
patchMeshWriter(const patchMeshWriter &)=delete
No copy construct.
label nLocalFaces_
Local number of faces.
Mesh consisting of general polyhedral cells.
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.
const labelList & patchIDs() const
The patch IDs.
label numberOfPoints_
The number of field points for the current Piece.
virtual bool writeGeometry()
Write patch topology.
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.