Common class to generate the VTK XML-based formats.
More...
#include <ExportXML.hpp>
|
| | ExportXML (std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size) |
| void | doExport (int index, double time) final override |
| | Export the mesh and writes files.
|
| void | exportSeries () const final override |
| virtual | ~Export ()=default |
| | Export (std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size) |
| | Export (const Export &)=delete |
| | Export (Export &&)=delete |
| Export & | operator= (const Export &)=delete |
| Export & | operator= (Export &&)=delete |
Common class to generate the VTK XML-based formats.
Definition at line 21 of file ExportXML.hpp.
◆ ExportXML()
| precice::io::ExportXML::ExportXML |
( |
std::string_view | participantName, |
|
|
std::string_view | location, |
|
|
const mesh::Mesh & | mesh, |
|
|
ExportKind | kind, |
|
|
int | frequency, |
|
|
int | rank, |
|
|
int | size ) |
◆ doExport()
| void precice::io::ExportXML::doExport |
( |
int | index, |
|
|
double | time ) |
|
finaloverridevirtual |
Export the mesh and writes files.
- Parameters
-
| [in] | index | the index of this iteration or time window |
| [in] | time | the associated time of this time window |
Implements precice::io::Export.
Definition at line 33 of file ExportXML.cpp.
◆ exportConnectivity()
| virtual void precice::io::ExportXML::exportConnectivity |
( |
std::ostream & | outFile, |
|
|
const mesh::Mesh & | mesh ) const |
|
privatepure virtual |
◆ exportData()
| void precice::io::ExportXML::exportData |
( |
std::ostream & | outFile, |
|
|
const mesh::Mesh & | mesh ) const |
|
private |
◆ exportGradient()
| void precice::io::ExportXML::exportGradient |
( |
const mesh::PtrData | data, |
|
|
const int | dataDim, |
|
|
std::ostream & | outFile ) const |
|
private |
◆ exportPoints()
| void precice::io::ExportXML::exportPoints |
( |
std::ostream & | outFile, |
|
|
const mesh::Mesh & | mesh ) const |
|
private |
◆ exportSeries()
| void precice::io::ExportXML::exportSeries |
( |
| ) |
const |
|
finaloverridevirtual |
◆ getParallelExtension()
| virtual std::string precice::io::ExportXML::getParallelExtension |
( |
| ) |
const |
|
privatepure virtual |
◆ getPieceAttributes()
| virtual std::string precice::io::ExportXML::getPieceAttributes |
( |
const mesh::Mesh & | mesh | ) |
const |
|
privatepure virtual |
◆ getPieceExtension()
| virtual std::string precice::io::ExportXML::getPieceExtension |
( |
| ) |
const |
|
privatepure virtual |
◆ getVTKFormat()
| virtual std::string precice::io::ExportXML::getVTKFormat |
( |
| ) |
const |
|
privatepure virtual |
◆ parallelPieceFilenameFor()
| std::string precice::io::ExportXML::parallelPieceFilenameFor |
( |
int | index, |
|
|
int | rank ) const |
|
private |
◆ processDataNamesAndDimensions()
| void precice::io::ExportXML::processDataNamesAndDimensions |
( |
const mesh::Mesh & | mesh | ) |
|
|
private |
Stores scalar and vector data names in string vectors Needed for writing primary file and sub files.
Definition at line 67 of file ExportXML.cpp.
◆ serialPieceFilename()
| std::string precice::io::ExportXML::serialPieceFilename |
( |
int | index | ) |
const |
|
private |
◆ writeLine()
| void precice::io::ExportXML::writeLine |
( |
const mesh::Edge & | edge, |
|
|
std::ostream & | outFile ) |
|
static |
◆ writeParallelCells()
| virtual void precice::io::ExportXML::writeParallelCells |
( |
std::ostream & | out | ) |
const |
|
privatepure virtual |
◆ writeParallelData()
| void precice::io::ExportXML::writeParallelData |
( |
std::ostream & | out | ) |
const |
|
private |
◆ writeParallelFile()
| void precice::io::ExportXML::writeParallelFile |
( |
int | index, |
|
|
double | time ) |
|
private |
Writes the primary file (called only by the primary rank)
Definition at line 110 of file ExportXML.cpp.
◆ writeSubFile()
| void precice::io::ExportXML::writeSubFile |
( |
int | index, |
|
|
double | time ) |
|
private |
Writes the sub file for each rank.
Definition at line 154 of file ExportXML.cpp.
◆ writeTetrahedron()
| void precice::io::ExportXML::writeTetrahedron |
( |
const mesh::Tetrahedron & | tetra, |
|
|
std::ostream & | outFile ) |
|
static |
◆ writeTriangle()
| void precice::io::ExportXML::writeTriangle |
( |
const mesh::Triangle & | triangle, |
|
|
std::ostream & | outFile ) |
|
static |
◆ writeVertex()
| void precice::io::ExportXML::writeVertex |
( |
const Eigen::VectorXd & | position, |
|
|
std::ostream & | outFile ) |
|
static |
◆ _log
◆ _scalarDataNames
| std::vector<std::string> precice::io::ExportXML::_scalarDataNames |
|
private |
List of names of all scalar data on mesh.
Definition at line 56 of file ExportXML.hpp.
◆ _vectorDataNames
| std::vector<std::string> precice::io::ExportXML::_vectorDataNames |
|
private |
List of names of all vector data on mesh.
Definition at line 59 of file ExportXML.hpp.
The documentation for this class was generated from the following files: