preCICE v3.2.0
|
Common class to generate the VTK XML-based formats. More...
#include <ExportXML.hpp>
Public Member Functions | |
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 |
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 (int index, double time) |
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 (int index, double time) |
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 |
std::string | parallelPieceFilenameFor (int index, int rank) const |
std::string | serialPieceFilename (int index) 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. | |
Additional Inherited Members | |
![]() | |
enum struct | ExportKind : bool { TimeWindows , Iterations } |
![]() | |
bool | isParallel () const |
std::string | formatIndex (int index) const |
bool | keepExport (int index) const |
void | writeSeriesFile (std::string_view filename) const |
void | recordExport (std::string filename, double time) |
![]() | |
std::string | _participantName |
std::string | _location |
const mesh::Mesh *const | _mesh |
ExportKind | _kind |
int | _frequency |
int | _rank |
int | _size |
std::vector< Record > | _records |
Common class to generate the VTK XML-based formats.
Definition at line 21 of file ExportXML.hpp.
precice::io::ExportXML::ExportXML | ( | std::string_view | participantName, |
std::string_view | location, | ||
const mesh::Mesh & | mesh, | ||
ExportKind | kind, | ||
int | frequency, | ||
int | rank, | ||
int | size ) |
Definition at line 23 of file ExportXML.cpp.
|
finaloverridevirtual |
Export the mesh and writes files.
[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.
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
private |
|
private |
Definition at line 194 of file ExportXML.cpp.
|
private |
|
finaloverridevirtual |
Implements precice::io::Export.
Definition at line 58 of file ExportXML.cpp.
|
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 |
|
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.
|
private |
|
static |
|
privatepure virtual |
Implemented in precice::io::ExportVTP, and precice::io::ExportVTU.
|
private |
Definition at line 346 of file ExportXML.cpp.
|
private |
Writes the primary file (called only by the primary rank)
Definition at line 110 of file ExportXML.cpp.
|
private |
Writes the sub file for each rank.
Definition at line 154 of file ExportXML.cpp.
|
static |
|
static |
|
static |
Definition at line 292 of file ExportXML.cpp.
|
mutableprivate |
Definition at line 53 of file ExportXML.hpp.
|
private |
List of names of all scalar data on mesh.
Definition at line 56 of file ExportXML.hpp.
|
private |
List of names of all vector data on mesh.
Definition at line 59 of file ExportXML.hpp.