49#ifndef Foam_vtk_polyWriter_H
50#define Foam_vtk_polyWriter_H
101 const label nCellValues,
102 const word& fieldName,
123 void writeLinesLegacy(
const edgeList& edges,
const label pointOffset);
127 void writeLines(
const edgeList& edges,
const label pointOffset);
131 void writePolysLegacy(
const faceList& faces,
const label pointOffset);
135 void writePolys(
const faceList& faces,
const label pointOffset);
138 polyWriter(
const polyWriter&) =
delete;
141 void operator=(
const polyWriter&) =
delete;
256 #include "foamVtkPolyWriter.txx"
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.
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...
label nLocalLines_
Local number of lines (edges).
label nLocalPolys_
Local number of polys (faces).
bool writeLineGeometry(const pointField &points, const edgeList &edges)
Low-level write edge/point topology. Normally used by writeGeometry() in a derived class.
bool writePolyGeometry(const pointField &points, const faceList &faces)
Low-level write face/point topology. Normally used by writeGeometry() in a derived class.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
label numberOfPoints_
The number of field points for the current Piece.
label nLocalPoints_
Local number of points.
label nLocalVerts_
Local number of vertices (points).
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.
label numberOfCells_
The number of field cells (edges or faces) for the current Piece.
polyWriter(const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
Construct from components (default format INLINE_BASE64).
polyWriter(const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun())
Construct from components and open the file for writing.
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
virtual ~polyWriter()=default
Destructor.
word ext() const
File extension for current format type.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
void writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.
polyWriter(const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64), and open the file for writing.
virtual bool writeGeometry()
Dummy write mesh topology method - Fatal if called.
A class for handling words, derived from Foam::string.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
@ INLINE_BASE64
XML inline base64, base64Formatter.
List< edge > edgeList
List of edge.
List< face > faceList
List of faces.
vectorField pointField
pointField is a vectorField.