|
Peano
|
Abstract base class for a patch plotter. More...
#include <PatchWriter.h>

Data Structures | |
| class | CellDataWriter |
| A writer for scalar data on elements. More... | |
| class | VertexDataWriter |
| A writer for scalar data on points (vertices). More... | |
Public Member Functions | |
| virtual | ~PatchWriter ()=default |
| virtual bool | writeToFile ()=0 |
| virtual bool | isOpen ()=0 |
| virtual void | clear ()=0 |
| Clear the writer, i.e. | |
| virtual int | plotPatch (const tarch::la::Vector< 2, double > &offset, const tarch::la::Vector< 2, double > &size)=0 |
| virtual int | plotPatch (const tarch::la::Vector< 3, double > &offset, const tarch::la::Vector< 3, double > &size)=0 |
| virtual CellDataWriter * | createCellDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerCell, const std::string &description)=0 |
| Create cell data writer. | |
| virtual CellDataWriter * | createCellDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerCell, const std::string &description, const std::string &metaData)=0 |
| Create cell data writer. | |
| virtual CellDataWriter * | createCellDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerCell, const std::string &description, const std::string &metaData, double *mapping)=0 |
| Create writer. | |
| virtual VertexDataWriter * | createVertexDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerVertex, const std::string &description)=0 |
| Create vertex data writer. | |
| virtual VertexDataWriter * | createVertexDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerVertex, const std::string &description, const std::string &metaData)=0 |
| Create vertex data writer. | |
| virtual VertexDataWriter * | createVertexDataWriter (const std::string &identifier, int unknownsPerAxis, int recordsPerVertex, const std::string &description, const std::string &metaData, double *mapping)=0 |
| Create writer. | |
Abstract base class for a patch plotter.
Patch plotters are either wrappers around existing plotters or real plotters. This is their abstract interface.
Definition at line 26 of file PatchWriter.h.
|
virtualdefault |
|
pure virtual |
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.
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
Referenced by peano4.api.output.Makefile.Makefile::__init__().

|
pure virtual |
Create cell data writer.
Wrapper around createCellDataWriter(std::string, int, int, std::string, std::string, double*) with default values. Please consult description of the more elaborate routine for details.
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Create cell data writer.
Wrapper around createCellDataWriter(std::string, int, int, std::string, std::string, double*) with default values. Please consult description of the more elaborate routine for details.
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Create writer.
Caller has to destroy this instance manually.
| identifier | Name of your data. I recommend to stick to C++ identifier rules for this one, i.e. no fancy chars and no spaces |
| unknownsPerAxis | We plot a (logically) Cartesian piece of data. This is the number of unknowns per axis |
| recordsPerVertex | Number of entries stores per unknown. Data is, by default, written as AoS |
| description | This is a description of the data. Should be a one-liner. |
| metaData | Further meta data without prescribed semantics. Can be a longer text block. |
| mapping | Array of positions within a unit cube/square. It is an AoS of vectors within the unit square which distorts all the plotting points within the logical Cartesian mesh imposed over the unit cube. By default, all data are Cartesian and spaced out equidistantly, i.e. if you have 4x4 data points per cell, then you get a chess board pattern of 16 smaller cubes over the cell in 2d. However, you might prefer something like Gauss Lobatto nodes, and then the data are not spaced out uniformly anymore. |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Create vertex data writer.
Wrapper around createVertexDataWriter(std::string, int, int, std::string, std::string, double*) with default values. Please consult description of the more elaborate routine for details.
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Create vertex data writer.
Wrapper around createVertexDataWriter(std::string, int, int, std::string, std::string, double*) with default values. Please consult description of the more elaborate routine for details.
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Create writer.
Caller has to destroy this instance manually.
| identifier | Name of your data. I recommend to stick to C++ identifier rules for this one, i.e. no fancy chars and no spaces |
| unknownsPerAxis | We plot a (logically) Cartesian piece of data. This is the number of unknowns per axis |
| recordsPerVertex | Number of entries stores per unknown. Data is, by default, written as AoS |
| description | This is a description of the data. Should be a one-liner. |
| metaData | Further meta data without prescribed semantics. Can be a longer text block. |
| mapping | Array of positions within a unit cube/square. It is an AoS of vectors within the unit square which distorts all the plotting points within the logical Cartesian mesh imposed over the unit cube. By default, all data are Cartesian and spaced out equidistantly, i.e. if you have 4x4 data points per cell, then you get a chess board pattern of 16 smaller cubes over the cell in 2d. However, you might prefer something like Gauss Lobatto nodes, and then the data are not spaced out uniformly anymore. |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.
|
pure virtual |
Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter.