OGS
transformData.h
Go to the documentation of this file.
1
12#pragma once
13
14#include <set>
15#include <string>
16
17#include "XdmfHdfData.h"
18
19namespace MeshLib
20{
21class Mesh;
22}
23
24namespace MeshLib::IO
25{
35std::vector<XdmfHdfData> transformAttributes(MeshLib::Mesh const& mesh,
36 unsigned int n_files,
37 unsigned int chunk_size_bytes);
48XdmfHdfData transformGeometry(MeshLib::Mesh const& mesh, double const* data_ptr,
49 unsigned int n_files,
50 unsigned int chunk_size_bytes);
60XdmfHdfData transformTopology(std::vector<int> const& values,
61 unsigned int n_files,
62 unsigned int chunk_size_bytes);
70std::vector<double> transformToXDMFGeometry(MeshLib::Mesh const& mesh);
80std::vector<int> transformToXDMFTopology(MeshLib::Mesh const& mesh,
81 std::size_t const offset);
82} // namespace MeshLib::IO
Holds all data for the combined writing of xdmf and hdf5 file.
std::vector< int > transformToXDMFTopology(MeshLib::Mesh const &mesh, std::size_t const offset)
Copies all cells into a new vector. Contiguous data used for writing. The topology is specific to xdm...
std::vector< double > transformToXDMFGeometry(MeshLib::Mesh const &mesh)
Copies all node points into a new vector. Contiguous data used for writing. Conform with XDMF standar...
XdmfHdfData transformGeometry(MeshLib::Mesh const &mesh, double const *data_ptr, unsigned int const n_files, unsigned int const chunk_size_bytes)
Create meta data for geometry used for hdf5 and xdmf.
std::vector< XdmfHdfData > transformAttributes(MeshLib::Mesh const &mesh, unsigned int const n_files, unsigned int const chunk_size_bytes)
Create meta data for attributes used for hdf5 and xdmf.
XdmfHdfData transformTopology(std::vector< int > const &values, unsigned int const n_files, unsigned int const chunk_size_bytes)
Create meta data for topology used for HDF5 and XDMF.