48 #ifndef Foam_vtk_lagrangianWriter_H 49 #define Foam_vtk_lagrangianWriter_H 62 template<
class Type>
class IOField;
81 const word cloudName_;
84 label numberOfPoints_;
143 bool useVerts =
false 188 virtual bool beginFile(std::string title =
"");
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
bool parallel() const noexcept
Parallel output requested?
bool beginParcelData()
Begin parcel (PointData) output section.
A class for handling file names.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
bool endParcelData()
Explicitly end parcel (PointData) output and switch to PIECE state.
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data). These output formats are structured as DECLARED, FIELD_DATA, PIECE followed by any CELL_DATA or POINT_DATA.
virtual ~lagrangianWriter()=default
Destructor.
static bool & parRun() noexcept
Test if this a parallel run.
vtk::outputOptions opts() const noexcept
The output options in use.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
const word cloudName(propsDict.get< word >("cloud"))
word ext() const
File extension for current format type.
A class for handling words, derived from Foam::string.
void write(const IOField< Type > &field)
Write the IOField.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
Mesh data needed to do the Finite Volume discretisation.
label writeFields(const wordList &fieldNames, bool verbose=true)
Write IOFields.
XML inline base64, base64Formatter.
Write lagrangian (cloud) positions and fields (as PointData) in VTP format. Legacy VTK format is inte...
virtual bool beginFile(std::string title="")
Write file header (non-collective)
A primitive field of type <T> with automated input and output.
virtual bool writeGeometry()
Write cloud positions.