84#ifndef Foam_surfaceWriters_vtkWriter_H
85#define Foam_surfaceWriters_vtkWriter_H
122 const bool writeNormal_;
125 autoPtr<Foam::vtk::surfaceWriter> writer_;
132 fileName writeTemplate
134 const word& fieldName,
135 const Field<Type>& localValues
185 virtual void close();
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
Abstract definition of a meshed surface defined by faces and points.
surfaceWriter()
Default construct.
A surfaceWriter for VTK legacy (.vtk) or XML (.vtp) format.
virtual void endTime()
End time step. Clears existing backend.
declareSurfaceWriterWriteMethod(symmTensor)
declareSurfaceWriterWriteMethod(sphericalTensor)
virtual void beginTime(const Time &t)
Begin time step. Clears existing backend.
declareSurfaceWriterWriteMethod(tensor)
declareSurfaceWriterWriteMethod(label)
virtual void close()
Finish output, clears backend.
TypeNameNoDebug("vtk")
Declare type-name, virtual type (without debug switch).
declareSurfaceWriterWriteMethod(scalar)
vtkWriter()
Default construct.
virtual ~vtkWriter()
Destructor. Calls close().
declareSurfaceWriterWriteMethod(vector)
virtual fileName write()
Write surface geometry to file.
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 surface writers.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
List< face > faceList
List of faces.
vectorField pointField
pointField is a vectorField.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
#define declareSurfaceWriterWriteMethod(Type)
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.