91 virtual bool isOpen()
override;
99 virtual void clear()
override;
112 const std::string& metaDataFilename,
113 const std::vector< std::string >& files
169 virtual void close()
override;
230 virtual int plotLine(
int vertexIndex[2])
override;
234 virtual int plotPoint(
int vertexIndex)
override;
236 virtual void close()
override;
284 virtual void close()
override;
289 virtual void plotCell(
int index,
double* values,
int numberOfValues )
override;
339 virtual void close()
override;
344 virtual void plotVertex(
int index,
double* values,
int numberOfValues )
override;
A writer for data on elements.
A writer for scalar data on points (vertices).
This is the vertex writer you have to create to plot the vertices.
double getMaxValue() const
VTUTextFileWriter & _myWriter
Underlying VTU writer.
friend class VTUTextFileWriter
The father class is a friend.
const std::string _identifier
Only required for assertions.
CellDataWriter(const CellDataWriter ©)
virtual void close() override
If you close your writer, each cell/vertex has to be assigned a value, i.e.
virtual void plotCell(int index, double value) override
Write data for one cell.
std::ostringstream _out
Output stream.
int _lastWriteCommandCellNumber
Is set to -1 in the beginning and then incremented by each data plot call.
CellDataWriter(const std::string &dataIdentifier, VTUTextFileWriter &writer, int recordsPerCell, std::string dataType)
double getMinValue() const
const std::string _dataType
virtual ~CellDataWriter()
virtual void assignRemainingCellsDefaultValues() override
std::ostringstream _offsetsOut
Output stream.
const std::string _dataType
VTUTextFileWriter & _myWriter
Underlying VTU writer.
CellWriter(const CellWriter &writer)
friend class VTUTextFileWriter
The father class is a friend.
CellWriter(VTUTextFileWriter &writer, std::string datatype)
virtual int plotPoint(int vertexIndex) override
virtual int plotQuadrangle(int vertexIndex[4]) override
virtual int plotHexahedron(int vertexIndex[8]) override
virtual int plotTriangle(int vertexIndex[3]) override
int _currentCellNumber
Counter for the elements written.
std::ostringstream _connectivityOut
Output stream.
virtual void close() override
std::ostringstream _typesOut
Output stream.
virtual int plotLine(int vertexIndex[2]) override
friend class VTUTextFileWriter
The father class is a friend.
VertexDataWriter(const VertexDataWriter ©)
double getMinValue() const
VTUTextFileWriter & _myWriter
Underlying VTU writer.
VertexDataWriter(const std::string &dataIdentifier, VTUTextFileWriter &writer, int recordsPerVertex, std::string dataType)
virtual void close() override
std::ostringstream _out
Output stream.
virtual void plotVertex(int index, double value) override
Write data for one cell.
virtual ~VertexDataWriter()
int _lastWriteCommandVertexNumber
const std::string _dataType
virtual void assignRemainingVerticesDefaultValues() override
double getMaxValue() const
This is the vertex writer you have to create to plot the vertices.
virtual int plotVertex(const tarch::la::Vector< 2, double > &position) override
friend class VTUTextFileWriter
The father class is a friend.
virtual void close() override
VertexWriter(VTUTextFileWriter &writer, std::string datatype)
VTUTextFileWriter & _myWriter
Underlying VTU writer.
const std::string _dataType
either "float" or "double" depending on _precision
std::ostringstream _out
Output stream.
VertexWriter(const VertexWriter &writer)
Do not copy a vertex writer.
int _currentVertexNumber
Counter for the vertices written.
std::string _cellDataDescription
virtual VertexDataWriter * createVertexDataWriter(const std::string &identifier, int recordsPerVertex) override
Caller has to destroy this instance manually.
void writeMetaDataFileForParallelSnapshot(const std::string &metaDataFilename, const std::vector< std::string > &files)
This can be called on any writer (if there are multiple ones in a parallel run), but it cannot be sta...
static tarch::logging::Log _log
Logging device.
void validateDataWriterIdentifier(const std::string &identifier) const
int _numberOfCells
Total number of cells.
static const std::string HEADER
std::string _vertexDataDescription
std::string _parallelCellDataDescription
virtual bool writeToFile() override
const std::string _dataType
virtual ~VTUTextFileWriter()
std::string _vertexDescription
virtual VertexWriter * createVertexWriter() override
Caller has to destroy this instance manually.
virtual CellDataWriter * createCellDataWriter(const std::string &identifier, int recordsPerCell) override
Caller has to destroy this instance manually.
std::string _cellDescription
std::string _parallelVertexDataDescription
virtual bool isOpen() override
virtual CellWriter * createCellWriter() override
Caller has to destroy this instance manually.
VTUTextFileWriter(const std::string &fileName, const std::string &indexFileName, tarch::plotter::PVDTimeSeriesWriter::IndexFileMode modeFile, double timeStamp, const int precision=6)
int _numberOfVertices
Total number of vertices.
virtual void clear() override
Clear the writer, i.e.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.