preCICE v3.1.2
|
Common class to generate the VTK XML-based formats. More...
#include <ExportXML.hpp>
Public Member Functions | |
void | doExport (const std::string &name, const std::string &location, const mesh::Mesh &mesh) override |
Does export. Has to be implemented in subclass. | |
Public Member Functions inherited from precice::io::Export | |
virtual | ~Export ()=default |
Export ()=default | |
Export (const Export &)=delete | |
Export (Export &&)=delete | |
Export & | operator= (const Export &)=delete |
Export & | operator= (Export &&)=delete |
Static Public Member Functions | |
static void | writeVertex (const Eigen::VectorXd &position, std::ostream &outFile) |
static void | writeLine (const mesh::Edge &edge, std::ostream &outFile) |
static void | writeTriangle (const mesh::Triangle &triangle, std::ostream &outFile) |
static void | writeTetrahedron (const mesh::Tetrahedron &tetra, std::ostream &outFile) |
Private Member Functions | |
virtual std::string | getVTKFormat () const =0 |
virtual std::string | getParallelExtension () const =0 |
virtual std::string | getPieceExtension () const =0 |
virtual std::string | getPieceAttributes (const mesh::Mesh &mesh) const =0 |
void | processDataNamesAndDimensions (const mesh::Mesh &mesh) |
Stores scalar and vector data names in string vectors Needed for writing primary file and sub files. | |
void | writeParallelFile (const std::string &name, const std::string &location, const mesh::Mesh &mesh) const |
Writes the primary file (called only by the primary rank) | |
virtual void | writeParallelCells (std::ostream &out) const =0 |
void | writeParallelData (std::ostream &out) const |
void | writeSubFile (const std::string &name, const std::string &location, const mesh::Mesh &mesh) const |
Writes the sub file for each rank. | |
void | exportPoints (std::ostream &outFile, const mesh::Mesh &mesh) const |
virtual void | exportConnectivity (std::ostream &outFile, const mesh::Mesh &mesh) const =0 |
void | exportData (std::ostream &outFile, const mesh::Mesh &mesh) const |
void | exportGradient (const mesh::PtrData data, const int dataDim, std::ostream &outFile) const |
Private Attributes | |
logging::Logger | _log {"io::ExportXML"} |
std::vector< std::string > | _scalarDataNames |
List of names of all scalar data on mesh. | |
std::vector< std::string > | _vectorDataNames |
List of names of all vector data on mesh. | |
Common class to generate the VTK XML-based formats.
Definition at line 24 of file ExportXML.hpp.
|
overridevirtual |
Does export. Has to be implemented in subclass.
[in] | name | Filename (without path). |
[in] | location | Location (path without filename). |
[in] | mesh | Mesh to be exported. |
Implements precice::io::Export.
Definition at line 23 of file ExportXML.cpp.
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
private |
|
private |
Definition at line 157 of file ExportXML.cpp.
|
private |
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
private |
Stores scalar and vector data names in string vectors Needed for writing primary file and sub files.
Definition at line 40 of file ExportXML.cpp.
|
static |
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
private |
Definition at line 306 of file ExportXML.cpp.
|
private |
Writes the primary file (called only by the primary rank)
Definition at line 68 of file ExportXML.cpp.
|
private |
Writes the sub file for each rank.
Definition at line 123 of file ExportXML.cpp.
|
static |
|
static |
|
static |
Definition at line 252 of file ExportXML.cpp.
|
mutableprivate |
Definition at line 48 of file ExportXML.hpp.
|
private |
List of names of all scalar data on mesh.
Definition at line 51 of file ExportXML.hpp.
|
private |
List of names of all vector data on mesh.
Definition at line 54 of file ExportXML.hpp.