50#ifndef Foam_vtk_patchWriter_H
51#define Foam_vtk_patchWriter_H
76 bool useNearCellValue_;
98 const bool useNearCellValue =
false
102 useNearCellValue_(useNearCellValue)
117 useNearCellValue_(false)
133 useNearCellValue_(false)
148 return useNearCellValue_;
155 bool old(useNearCellValue_);
156 useNearCellValue_ = on;
164 template<
class Type,
template<
class>
class PatchField>
171 template<
class Type,
template<
class>
class PatchField>
205 const
bool useNearCellValue,
211 useNearCellValue_(useNearCellValue)
224 #include "foamVtkPatchWriter.txx"
Generic GeometricField class.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
Inter-processor communications stream.
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
A class for handling file names.
Mesh consisting of general polyhedral cells.
vtk::outputOptions opts() const noexcept
The output options in use.
bool parallel() const noexcept
Parallel output requested?
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
const labelList & patchIDs() const noexcept
The patch IDs.
patchMeshWriter(const patchMeshWriter &)=delete
No copy construct.
void write(const GeometricField< Type, PatchField, volMesh > &field)
Write volume field.
virtual ~patchWriter()=default
Destructor.
void write(const GeometricField< Type, fvPatchField, volMesh > &field, const PrimitivePatchInterpolation< primitivePatch > *pInterp)
Write volume field with point interpolation.
void operator=(const patchWriter &)=delete
No copy assignment.
patchWriter(const polyMesh &mesh, const labelUList &patchIDs, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64), and open the file for writing.
patchWriter(const polyMesh &mesh, const labelUList &patchIDs, const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64, const bool useNearCellValue=false)
Construct from components (default format INLINE_BASE64).
void write(const GeometricField< Type, fvPatchField, volMesh > &field, const PrimitivePatchInterpolation< primitivePatch > &pInterp)
Write volume field with point interpolation.
patchWriter(const polyMesh &mesh, const labelUList &patchIDs, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default format INLINE_BASE64), and open the file for writing.
void write(const GeometricField< Type, PatchField, pointMesh > &field)
Write point field.
bool useCellValue(bool on) noexcept
Select use of patch internal field values.
patchWriter(const patchWriter &)=delete
No copy construct.
bool useCellValue() const noexcept
Use patch internal field values?
autoPtr< volPointInterpolation > pInterp
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
@ INLINE_BASE64
XML inline base64, base64Formatter.
UList< label > labelUList
A UList of labels.
#define FOAM_DEPRECATED_FOR(since, replacement)