55#ifndef Foam_vtk_seriesWriter_H
56#define Foam_vtk_seriesWriter_H
92 bool removeDuplicates();
222 const
bool checkFiles = false,
223 const scalar restartTime = ROOTVGREAT
242 const scalar restartTime = ROOTVGREAT
271#include "foamVtkSeriesWriterI.H"
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A HashTable with keys but without contents that is similar to std::unordered_set.
A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the ...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A class for handling file names.
Provides a means of accumulating and generating VTK file series.
seriesWriter()=default
Construct an empty series.
seriesWriter(seriesWriter &&)=default
Move construct.
static word suffix(const fileName &file, char sep='_')
Extract the time-varying ending of files.
seriesWriter & operator=(seriesWriter &&)=default
Move assignment.
bool append(const fileNameInstant &inst)
Append the specified file instant.
bool empty() const noexcept
True if there are no data sets.
void sort()
Sort by time value and by file name.
label load(const fileName &seriesName, const bool checkFiles=false, const scalar restartTime=ROOTVGREAT)
Clear contents and reload by parsing the specified file.
bool removeNewer(const scalar timeValue)
Remove entries that are greater_equal the time value.
seriesWriter & operator=(const seriesWriter &)=default
Copy assignment.
static fileName base(const fileName &outputName, char sep='_')
Extract the base name for a file series.
~seriesWriter()=default
Destructor.
label size() const noexcept
The number of data sets.
label scan(const fileName &seriesName, const scalar restartTime=ROOTVGREAT)
Clear contents and scan directory for files.
void clear()
Clear entries.
seriesWriter(const seriesWriter &)=default
Copy construct.
static Ostream & print(Ostream &os, const fileName &seriesName, const UList< instant > &series, const char sep='_')
Print file series (JSON format) for specified time instances.
A class for handling words, derived from Foam::string.
word outputName("finiteArea-edges.obj")
OBJstream os(runTime.globalPath()/outputName)