preCICE v3.2.0
Loading...
Searching...
No Matches
ExportVTP.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Core>
4#include <iosfwd>
5#include <string>
6#include <vector>
7#include "io/ExportXML.hpp"
8#include "logging/Logger.hpp"
9
10namespace precice::mesh {
11class Mesh;
12class Edge;
13class Triangle;
14} // namespace precice::mesh
15
16namespace precice::io {
17
24class ExportVTP : public ExportXML {
25public:
27 std::string_view participantName,
28 std::string_view location,
29 const mesh::Mesh &mesh,
30 ExportKind kind,
31 int frequency,
32 int rank,
33 int size);
34
35private:
36 mutable logging::Logger _log{"io::ExportVTP"};
37
38 std::string getVTKFormat() const override;
39 std::string getParallelExtension() const override;
40 std::string getPieceExtension() const override;
41 std::string getPieceAttributes(const mesh::Mesh &mesh) const override;
42
43 void writeParallelCells(std::ostream &out) const override;
44
45 void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override;
46};
47
48} // namespace precice::io
ExportVTP(std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
Definition ExportVTP.cpp:10
logging::Logger _log
Definition ExportVTP.hpp:36
std::string getVTKFormat() const override
Definition ExportVTP.cpp:21
std::string getPieceAttributes(const mesh::Mesh &mesh) const override
Definition ExportVTP.cpp:36
void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override
Definition ExportVTP.cpp:57
void writeParallelCells(std::ostream &out) const override
Definition ExportVTP.cpp:45
std::string getPieceExtension() const override
Definition ExportVTP.cpp:31
std::string getParallelExtension() const override
Definition ExportVTP.cpp:26
ExportXML(std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
Definition ExportXML.cpp:23
This class provides a lightweight logger.
Definition Logger.hpp:17
Linear edge of a mesh, defined by two Vertex objects.
Definition Edge.hpp:15
Container and creator for meshes.
Definition Mesh.hpp:38
Triangle of a mesh, defined by three vertices.
Definition Triangle.hpp:24
provides Import and Export of the coupling mesh and data.
provides Mesh, Data and primitives.