19#include <vtkXMLWriter.h>
29 std::string
const& file_name);
42 int dataMode = vtkXMLWriter::Appended,
43 bool compress =
false);
48 std::string
const& file_name,
49 bool const compute_element_neighbors =
false);
55 std::string
const& file_name,
56 bool const compute_element_neighbors =
false);
60 bool writeToFile(std::filesystem::path
const& file_path);
67 template <
typename UnstructuredGr
idWriter>
68 bool writeVTU(std::string
const& file_name,
const int num_partitions = 1,
78 int const data_mode = vtkXMLWriter::Appended);
Implementation of the VtuInterface class.
Reads and writes VtkXMLUnstructuredGrid-files (vtu) to and from OGS data structures....
VtuInterface(const MeshLib::Mesh *mesh, int dataMode=vtkXMLWriter::Appended, bool compress=false)
Provide the mesh to write and set if compression should be used.
static MeshLib::Mesh * readVTUFile(std::string const &file_name, bool const compute_element_neighbors=false)
static MeshLib::Mesh * readVTKFile(std::string const &file_name, bool const compute_element_neighbors=false)
bool writeVTU(std::string const &file_name, const int num_partitions=1, const int rank=1)
bool writeToFile(std::filesystem::path const &file_path)
const MeshLib::Mesh * _mesh
int writeVtu(MeshLib::Mesh const &mesh, std::string const &file_name, int const data_mode)
std::string getVtuFileNameForPetscOutputWithoutExtension(std::string const &file_name)