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"
A tuple of integers comprising start, size, total.
IntType total() const noexcept
The total size.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
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.
const vtk::vtuCells & vtuCells_
The volume cells (internalMesh).
internalMeshWriter(const polyMesh &mesh, const vtk::vtuCells &cells, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64),.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell or Point values.
void writePointIDs()
Write point ids as PointData.
void operator=(const internalMeshWriter &)=delete
No copy assignment.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
static word ext(vtk::outputOptions opts)
File extension for given output type.
bool writeProcIDs()
Write processor ids as CellData. This is no-op in serial.
internalMeshWriter(const internalMeshWriter &)=delete
File extension for given output type.
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
OffsetRange< label > cellSlab_
Slab addressing for field cells of the current Piece.
word ext() const
File extension for current format type.
internalMeshWriter(const polyMesh &mesh, const vtk::vtuCells &cells, const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
Construct from components (default format INLINE_BASE64),.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
static int debug
Debug information.
virtual ~internalMeshWriter()=default
Destructor.
label nTotalPoints() const noexcept
Total number of field points for the current Piece.
virtual bool writeGeometry()
Write mesh topology.
const polyMesh & mesh_
Reference to the OpenFOAM mesh (or subset).
label nTotalCells() const noexcept
Total number of field cells for the current Piece.
internalMeshWriter(const polyMesh &mesh, const vtk::vtuCells &cells, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64),.
OffsetRange< label > pointSlab_
Slab addressing for field points of the current Piece.
void writeCellIDs()
Write cell ids as CellData.
virtual bool beginFile(std::string title="")
Write file header (non-collective).
Encapsulated combinations of output format options. This is primarily useful when defining the output...
A deep-copy description of an OpenFOAM volume mesh in data structures suitable for VTK UnstructuredGr...
A class for handling words, derived from Foam::string.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
@ UNSTRUCTURED_GRID
"UnstructuredGrid"
@ INLINE_BASE64
XML inline base64, base64Formatter.