45#ifndef Foam_vtk_coordSetWriter_H
46#define Foam_vtk_coordSetWriter_H
109 void writeVertsLegacy();
117 void writeLinesLegacy();
185 virtual bool beginFile(std::string title =
"");
218 const word& fieldName,
232 #include "foamVtkCoordSetWriter.txx"
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
Write as points/lines, optionally with fields, as a vtp file or a legacy vtk file.
virtual bool open(const fileName &file, bool parallel=false)
Open file for writing. Non-parallel only.
void piece(const UPtrList< const pointField > &points)
Reset point references to begin a new piece.
void setElementType(const elemOutputType elemOutput)
Define preferred element type.
virtual void setTime(const instant &inst)
Define a time name/value for the output.
coordSetWriter(const UPtrList< const pointField > &pts, const fileName &file, bool paralel=false)
Construct from components (default format INLINE_BASE64), and open the file for writing.
coordSetWriter(const coordSetWriter &)=delete
No copy construct.
coordSetWriter(const UPtrList< const pointField > &pts, const vtk::outputOptions opts, const fileName &file, bool paralel=false)
Construct from components and open the file for writing.
void operator=(const coordSetWriter &)=delete
No copy assignment.
elemOutputType
Types of element output.
bool writeProcIDs()
Write processor ids for each line as CellData or for each point as PointData, depending on isPointDat...
virtual ~coordSetWriter()=default
Destructor.
coordSetWriter(const UPtrList< const pointField > &pts, const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
Construct from components (default format INLINE_BASE64).
void writePointData(const word &fieldName, const UPtrList< const Field< Type > > &fieldPtrs)
Write primitive field of PointData.
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).
vtk::outputOptions opts() const noexcept
The output options in use.
bool parallel() const noexcept
Parallel output requested?
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...
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
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.