91 if (!instant_.name().empty())
95 "time='" + instant_.name() +
"'"
106 return writePolyGeometry(points_.get(), faces_.get());
112 if (!instant_.name().empty())
127 points_ = std::cref<pointField>(
points);
128 faces_ = std::cref<faceList>(faces);
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
bool parallel() const noexcept
Parallel output requested?
virtual bool open(const fileName &file, bool parallel=Pstream::parRun())
Open file for writing (creates parent directory).
virtual bool beginFile(std::string title="")
Write file header (non-collective)
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.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
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.
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)