preCICE v3.1.2
Loading...
Searching...
No Matches
ExportVTU.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 {
11namespace mesh {
12class Mesh;
13class Edge;
14class Triangle;
15} // namespace mesh
16} // namespace precice
17
18namespace precice {
19namespace io {
20
27class ExportVTU : public ExportXML {
28private:
29 mutable logging::Logger _log{"io::ExportVTU"};
30
31 std::string getVTKFormat() const override;
32 std::string getParallelExtension() const override;
33 std::string getPieceExtension() const override;
34 std::string getPieceAttributes(const mesh::Mesh &mesh) const override;
35
36 void writeParallelCells(std::ostream &out) const override;
37
38 void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override;
39};
40
41} // namespace io
42} // namespace precice
std::ostream & out
std::string getVTKFormat() const override
Definition ExportVTU.cpp:22
void writeParallelCells(std::ostream &out) const override
Definition ExportVTU.cpp:45
logging::Logger _log
Definition ExportVTU.hpp:29
std::string getParallelExtension() const override
Definition ExportVTU.cpp:27
std::string getPieceExtension() const override
Definition ExportVTU.cpp:32
std::string getPieceAttributes(const mesh::Mesh &mesh) const override
Definition ExportVTU.cpp:37
void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override
Definition ExportVTU.cpp:54
Common class to generate the VTK XML-based formats.
Definition ExportXML.hpp:24
This class provides a lightweight logger.
Definition Logger.hpp:16
Container and creator for meshes.
Definition Mesh.hpp:39
Main namespace of the precice library.