![]() |
Peano
|
Writes time series in vtk/vtu format. More...
#include <PVDTimeSeriesWriter.h>
Public Types | |
enum class | IndexFileMode { CreateNew , AppendNewData , NoIndexFile } |
Static Public Member Functions | |
static void | createEmptyIndexFile (const std::string &dataFile) |
static void | appendNewData (const std::string &snapshotFileName, const std::string &dataFile, double timeStamp) |
static double | getLatestTimeStepInIndexFile (std::string dataFile) |
Static Private Member Functions | |
static std::tuple< double, int, std::vector< std::string > > | parseFile (const std::string &filename, bool createBackup=true) |
static void | writeFile (const std::string &filename, const std::vector< std::string > &lines) |
static void | addFileTail (std::vector< std::string > &lines) |
static void | removeFileTail (std::vector< std::string > &lines) |
static std::string | createFileEntry (const std::string &snapshotFileName, double timestamp, int partCounter) |
Writes time series in vtk/vtu format.
According to the VTK spec, time series are solely written serially, i.e. you may use this class on any rank, but it only writes out data on Peano's global master.
Please note that this file format does not work with VTK files. It only works with the XML variants of the writer.
Definition at line 25 of file PVDTimeSeriesWriter.h.
|
strong |
Definition at line 44 of file PVDTimeSeriesWriter.h.
|
staticprivate |
Definition at line 41 of file PVDTimeSeriesWriter.cpp.
|
static |
Definition at line 116 of file PVDTimeSeriesWriter.cpp.
References tarch::la::equals(), and logDebug.
Referenced by tarch::plotter::griddata::unstructured::vtk::VTKBinaryFileWriter::VTKBinaryFileWriter(), tarch::plotter::griddata::unstructured::vtk::VTKTextFileWriter::VTKTextFileWriter(), and tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::VTUTextFileWriter().
|
static |
dataFile | First file entry to insert. Pass an empty string if you don't want Peano to add a file into the original index file. |
Definition at line 27 of file PVDTimeSeriesWriter.cpp.
Referenced by tarch::plotter::griddata::unstructured::vtk::VTKBinaryFileWriter::VTKBinaryFileWriter(), tarch::plotter::griddata::unstructured::vtk::VTKTextFileWriter::VTKTextFileWriter(), and tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::VTUTextFileWriter().
|
staticprivate |
Definition at line 110 of file PVDTimeSeriesWriter.cpp.
References logDebug.
|
static |
Definition at line 16 of file PVDTimeSeriesWriter.cpp.
References logDebug, and parseFile().
Referenced by tarch::plotter::griddata::unstructured::vtk::VTKBinaryFileWriter::VTKBinaryFileWriter(), tarch::plotter::griddata::unstructured::vtk::VTKTextFileWriter::VTKTextFileWriter(), and tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::VTUTextFileWriter().
|
staticprivate |
Definition at line 57 of file PVDTimeSeriesWriter.cpp.
References tarch::la::equals(), and tarch::la::smaller().
Referenced by getLatestTimeStepInIndexFile().
|
staticprivate |
Definition at line 46 of file PVDTimeSeriesWriter.cpp.
|
staticprivate |
lines | content without the tail of the format, i.e. the closing brackets |
Definition at line 98 of file PVDTimeSeriesWriter.cpp.
References logError.