48#ifndef Foam_vtk_surfaceWriter_H
49#define Foam_vtk_surfaceWriter_H
73 std::reference_wrapper<const pointField> points_;
76 std::reference_wrapper<const faceList> faces_;
137 virtual bool beginFile(std::string title =
"");
166 polyWriter::writeUniformValue<Type>(
nLocalPolys_, fieldName, val);
static bool & parRun() noexcept
Test if this a parallel run.
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
vtk::outputOptions opts() const noexcept
The output options in use.
bool parallel() const noexcept
Parallel output requested?
void writeTimeValue()
Write the currently set time as "TimeValue" FieldData.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
label nLocalPolys_
Local number of polys (faces)
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly) or Point values.
virtual void setTime(const instant &inst)
Define a time name/value for the output.
void piece(const pointField &points, const faceList &faces)
Reset point/face references to begin a new piece.
virtual ~surfaceWriter()=default
Destructor.
void writeTimeValue()
Write the currently set time as "TimeValue" FieldData.
virtual bool writeGeometry()
Write patch topology.
virtual bool beginFile(std::string title="")
Write file header (non-collective)
A class for handling words, derived from Foam::string.
@ INLINE_BASE64
XML inline base64, base64Formatter.