OGS
transformData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <set>
7#include <string>
8
9#include "XdmfHdfData.h"
10
11namespace MeshLib
12{
13class Mesh;
14}
15
16namespace MeshLib::IO
17{
27std::vector<XdmfHdfData> transformAttributes(MeshLib::Mesh const& mesh,
28 unsigned int n_files,
29 unsigned int chunk_size_bytes);
40XdmfHdfData transformGeometry(MeshLib::Mesh const& mesh, double const* data_ptr,
41 unsigned int n_files,
42 unsigned int chunk_size_bytes);
53XdmfHdfData transformTopology(std::vector<std::size_t> const& values,
54 ParentDataType const parent_data_type,
55 unsigned int n_files,
56 unsigned int chunk_size_bytes);
64std::vector<double> transformToXDMFGeometry(MeshLib::Mesh const& mesh);
74std::pair<std::vector<std::size_t>, ParentDataType> transformToXDMFTopology(
75 MeshLib::Mesh const& mesh, std::size_t const offset);
76} // namespace MeshLib::IO
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.