Go to the documentation of this file.
52 #ifndef Foam_vtk_InternalMeshWriter_H
53 #define Foam_vtk_InternalMeshWriter_H
103 void writeCellsLegacy(
const label pointOffset);
107 void writeCellsConnectivity(
const label pointOffset);
111 void writeCellsFaces(
const label pointOffset);
180 virtual bool beginFile(std::string title =
"");
Encapsulated combinations of output format options. This is primarily useful when defining the output...
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
The output options in use.
void writeCellIDs()
Write cell ids as CellData.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell or Point values.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
Mesh consisting of general polyhedral cells.
bool writeProcIDs()
Write processor ids as CellData. This is no-op in serial.
bool parallel() const noexcept
Parallel output requested?
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
const vtuCells & vtuCells_
The volume cells (internalMesh)
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
XML inline base64, base64Formatter.
static int debug
Debug information.
virtual bool beginFile(std::string title="")
Write file header (non-collective)
static word ext(vtk::outputOptions opts)
File extension for given output type.
static bool & parRun() noexcept
Test if this a parallel run.
virtual ~internalMeshWriter()=default
Destructor.
A deep-copy description of an OpenFOAM volume mesh in data structures suitable for VTK UnstructuredGr...
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
label numberOfPoints_
The number of field points for the current Piece.
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
label numberOfCells_
The number of field cells for the current Piece.
void writePointIDs()
Write point ids as PointData.
Write an OpenFOAM volume (internal) geometry and internal fields as a vtu file or a legacy vtk file.
word ext() const
File extension for current format type.
virtual bool writeGeometry()
Write mesh topology.
const polyMesh & mesh_
Reference to the OpenFOAM mesh (or subset)