Go to the documentation of this file.
48 #ifndef foamVtkPatchWriter_H
49 #define foamVtkPatchWriter_H
80 bool useNearCellValue_;
83 label numberOfPoints_;
109 void writePolysLegacy(
const label pointOffset);
113 void writePolys(
const label pointOffset);
134 const bool useNearCellValue =
false
168 const bool useNearCellValue,
197 virtual bool beginFile(std::string title =
"");
243 template<
class Type,
template<
class>
class PatchField>
250 template<
class Type,
template<
class>
class PatchField>
Encapsulated combinations of output format options. This is primarily useful when defining the output...
bool parallel() const
Parallel output requested?
label ListType::const_reference val
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell (Face) or Point values.
A class for handling words, derived from Foam::string.
A class for handling file names.
vtk::outputOptions opts() const
The output options in use.
static word ext(vtk::outputOptions opts)
File extension for given output type.
static bool & parRun()
Is this a parallel run?
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
virtual bool writeGeometry()
Write patch topology.
virtual ~patchWriter()=default
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const labelList & patchIDs() const
The patch IDs.
bool writeNeighIDs()
Write processor neighbour ids as CellData. This is no-op in serial.
XML inline base64, base64Formatter.
Mesh data needed to do the Finite Volume discretisation.
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
void writePatchIDs()
Write patch ids as CellData.
void write(const GeometricField< Type, PatchField, pointMesh > &field)
Write point field.
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
bool writeProcIDs()
Write processor ids as CellData. This is no-op in serial.
Generic GeometricField class.
word ext() const
File extension for current format type.
autoPtr< volPointInterpolation > pInterp
virtual bool beginFile(std::string title="")
Write file header (non-collective)