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