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