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