48#ifndef Foam_vtk_lineWriter_H
49#define Foam_vtk_lineWriter_H
74 std::reference_wrapper<const pointField> points_;
77 std::reference_wrapper<const edgeList> edges_;
86 lineWriter(
const lineWriter&) =
delete;
89 void operator=(
const lineWriter&) =
delete;
138 virtual bool beginFile(std::string title =
"");
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
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(scalar timeValue)
Write "TimeValue" FieldData (name as per Catalyst output).
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Line) or Point values.
void piece(const pointField &points, const edgeList &edges)
Reset point/edge references to begin a new piece.
virtual void setTime(const instant &inst)
Define a time name/value for the output.
bool writeProcIDs()
Write processor ids for each line as CellData or for each point as PointData, depending on isPointDat...
lineWriter(const pointField &pts, const edgeList &edges, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64), and open the file for writing.
lineWriter(const pointField &pts, const edgeList &edges, const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
Construct from components (default format INLINE_BASE64).
lineWriter(const pointField &pts, const edgeList &edges, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun())
Construct from components and open the file for writing.
void writeTimeValue()
Write the currently set time as "TimeValue" FieldData.
virtual bool writeGeometry()
Write patch topology.
virtual ~lineWriter()=default
Destructor.
virtual bool beginFile(std::string title="")
Write file header (non-collective).
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 nLocalLines_
Local number of lines (edges).
void writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.
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.
List< edge > edgeList
List of edge.
vectorField pointField
pointField is a vectorField.