|
Peano
|
VTU Writer. More...
#include <VTUTextFileWriter.h>


Data Structures | |
| class | CellDataWriter |
| class | CellWriter |
| Writes the element data. More... | |
| class | VertexDataWriter |
| class | VertexWriter |
| This is the vertex writer you have to create to plot the vertices. More... | |
Public Member Functions | |
| VTUTextFileWriter (const std::string &fileName, const std::string &indexFileName, tarch::plotter::PVDTimeSeriesWriter::IndexFileMode modeFile, double timeStamp, const int precision=6) | |
| virtual | ~VTUTextFileWriter () |
| virtual bool | isOpen () override |
| virtual bool | writeToFile () override |
| virtual void | clear () override |
| Clear the writer, i.e. | |
| virtual VertexWriter * | createVertexWriter () override |
| Caller has to destroy this instance manually. | |
| virtual CellWriter * | createCellWriter () 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. | |
| 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 static, as I have to know the unknown identifiers, e.g. | |
Public Member Functions inherited from tarch::plotter::griddata::unstructured::UnstructuredGridWriter | |
| virtual | ~UnstructuredGridWriter ()=default |
Private Member Functions | |
| void | validateDataWriterIdentifier (const std::string &identifier) const |
Private Attributes | |
| const std::string | _dataType |
| bool | _writtenToFile |
| int | _numberOfVertices |
| Total number of vertices. | |
| int | _numberOfCells |
| Total number of cells. | |
| std::string | _vertexDescription |
| std::string | _cellDescription |
| std::string | _vertexDataDescription |
| std::string | _cellDataDescription |
| std::string | _parallelVertexDataDescription |
| std::string | _parallelCellDataDescription |
| std::string | _fileName |
Static Private Attributes | |
| static tarch::logging::Log | _log |
| Logging device. | |
| static const std::string | HEADER |
VTU Writer.
Output for vtk files (paraview) as text files. We write unstructured vtk (vtu) files here.
!! Usage
!!! Thread-safety
The plotter is not thread-safe and shall never be thread-safe: It is the responsibility of the using system to implement thread-safe calls. For Peano, this is the mappings where some events could occur simultaneously.
Definition at line 52 of file VTUTextFileWriter.h.
| tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::VTUTextFileWriter | ( | const std::string & | fileName, |
| const std::string & | indexFileName, | ||
| tarch::plotter::PVDTimeSeriesWriter::IndexFileMode | modeFile, | ||
| double | timeStamp, | ||
| const int | precision = 6 ) |
|
virtual |
|
overridevirtual |
Clear the writer, i.e.
erase all the data. However, as the writer does not track how many vertex and cell writers you've created, it's up to you to ensure that none of these instances is left.
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
Referenced by peano4.output.Makefile.Makefile::__init__().

|
overridevirtual |
Caller has to destroy this instance manually.
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Do not create more than one cell writer.
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Do not create more than one vertex writer.
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
private |
| void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::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 static, as I have to know the unknown identifiers, e.g.
|
overridevirtual |
| filename | Name of output file. Should be unique for each thread/rank combination |
| parallelMetaFilename | Meta file giving an overview over all files written simultaneously |
Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter.
|
private |
Definition at line 79 of file VTUTextFileWriter.h.
|
private |
Definition at line 77 of file VTUTextFileWriter.h.
|
private |
Definition at line 62 of file VTUTextFileWriter.h.
|
private |
Definition at line 83 of file VTUTextFileWriter.h.
|
staticprivate |
Logging device.
Definition at line 58 of file VTUTextFileWriter.h.
|
private |
Total number of cells.
Definition at line 74 of file VTUTextFileWriter.h.
|
private |
Total number of vertices.
Definition at line 69 of file VTUTextFileWriter.h.
|
private |
Definition at line 81 of file VTUTextFileWriter.h.
|
private |
Definition at line 80 of file VTUTextFileWriter.h.
|
private |
Definition at line 78 of file VTUTextFileWriter.h.
|
private |
Definition at line 76 of file VTUTextFileWriter.h.
|
private |
Definition at line 64 of file VTUTextFileWriter.h.
|
staticprivate |
Definition at line 60 of file VTUTextFileWriter.h.