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);
61XdmfHdfData transformTopology(std::vector<std::size_t> const& values,
62 ParentDataType const parent_data_type,
63 unsigned int n_files,
64 unsigned int chunk_size_bytes);
72std::vector<double> transformToXDMFGeometry(MeshLib::Mesh const& mesh);
82std::pair<std::vector<std::size_t>, ParentDataType> transformToXDMFTopology(
83 MeshLib::Mesh const& mesh, std::size_t const offset);
84} // namespace MeshLib::IO
Holds all data for the combined writing of xdmf and hdf5 file.
std::pair< std::vector< std::size_t >, ParentDataType > 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< std::size_t > const &values, ParentDataType const parent_data_type, unsigned int const n_files, unsigned int const chunk_size_bytes)
Create meta data for topology used for HDF5 and XDMF.