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);
bool parallel() const noexcept
Parallel output requested?
A class for handling file names.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
static bool & parRun() noexcept
Test if this a parallel run.
vtk::outputOptions opts() const noexcept
The output options in use.
void writeTimeValue(scalar timeValue)
Write "TimeValue" FieldData (name as per Catalyst output)
Encapsulated combinations of output format options. This is primarily useful when defining the output...
virtual bool beginFile(std::string title="")
Write file header (non-collective)
A class for handling words, derived from Foam::string.
virtual ~surfaceWriter()=default
Destructor.
void piece(const pointField &points, const faceList &faces)
Reset point/face references to begin a new piece.
bool writeProcIDs()
Write processor ids for each poly as CellData (no-op in serial)
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
virtual void setTime(const instant &inst)
Define a time name/value for the output.
label nLocalPolys_
Local number of polys (faces)
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
XML inline base64, base64Formatter.
virtual bool writeGeometry()
Write patch topology.
void writeTimeValue()
Write the currently set time as "TimeValue" FieldData.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly) or Point values.