preCICE v3.2.0
|
Writes polygonal, or triangle meshes to vtk files. More...
#include <ExportVTK.hpp>
Public Member Functions | |
ExportVTK (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 |
Perform writing to VTK file. | |
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 | initializeWriting (std::ofstream &filestream) |
static void | writeHeader (std::ostream &outFile) |
static void | writeVertex (const Eigen::VectorXd &position, std::ostream &outFile) |
static void | writeLine (int vertexIndices[2], std::ostream &outFile) |
static void | writeTriangle (int vertexIndices[3], std::ostream &outFile) |
static void | writeTetrahedron (int vertexIndices[4], std::ostream &outFile) |
Private Member Functions | |
void | openFile (std::ofstream &outFile, const std::string &filename) const |
void | exportMesh (std::ofstream &outFile, const mesh::Mesh &mesh) |
void | exportData (std::ofstream &outFile, const mesh::Mesh &mesh) |
void | exportGradient (std::ofstream &outFile, const mesh::Mesh &mesh) |
Private Attributes | |
logging::Logger | _log {"io::ExportVTK"} |
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 |
Writes polygonal, or triangle meshes to vtk files.
Definition at line 16 of file ExportVTK.hpp.
precice::io::ExportVTK::ExportVTK | ( | std::string_view | participantName, |
std::string_view | location, | ||
const mesh::Mesh & | mesh, | ||
ExportKind | kind, | ||
int | frequency, | ||
int | rank, | ||
int | size ) |
Definition at line 20 of file ExportVTK.cpp.
|
finaloverridevirtual |
Perform writing to VTK file.
Implements precice::io::Export.
Definition at line 30 of file ExportVTK.cpp.
|
private |
|
private |
|
private |
|
finaloverridevirtual |
Implements precice::io::Export.
Definition at line 59 of file ExportVTK.cpp.
|
static |
|
private |
|
static |
Definition at line 268 of file ExportVTK.cpp.
|
static |
Definition at line 310 of file ExportVTK.cpp.
|
static |
Definition at line 299 of file ExportVTK.cpp.
|
static |
Definition at line 288 of file ExportVTK.cpp.
|
static |
Definition at line 276 of file ExportVTK.cpp.
|
mutableprivate |
Definition at line 54 of file ExportVTK.hpp.