Go to the documentation of this file.
49 #ifndef foamVtkSurfaceWriter_H
50 #define foamVtkSurfaceWriter_H
76 std::reference_wrapper<const pointField> points_;
79 std::reference_wrapper<const faceList> faces_;
82 label numberOfPoints_;
111 void writePolysLegacy(
const label pointOffset);
115 void writePolys(
const label pointOffset);
180 virtual bool beginFile(std::string title =
"");
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)
virtual ~surfaceWriter()=default
Destructor.
void piece(const pointField &points, const faceList &faces)
Reset point, face references to begin a new piece.
bool parallel() const
Parallel output requested?
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
A class for handling words, derived from Foam::string.
A class for handling file names.
vtk::outputOptions opts() const
The output options in use.
void writeTimeValue()
Write the currently set time as "TimeValue" FieldData.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
void writeTimeValue(scalar timeValue)
Write "TimeValue" FieldData (name as per Catalyst output)
static bool & parRun()
Test if this a parallel run, or allow modify access.
virtual bool writeGeometry()
Write patch topology.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Face) or Point values.
virtual void setTime(const instant &inst)
Define a time name/value for the output.
void write(const word &fieldName, const UList< Type > &field)
Write a list of Cell (Face) or Point values.
XML inline base64, base64Formatter.
static word ext(vtk::outputOptions opts)
File extension for given output type.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
An instant of time. Contains the time value and name.
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
word ext() const
File extension for current format type.