DOLFINx
0.5.1
DOLFINx C++ interface
|
Low-level methods for reading XDMF files. More...
Functions | |
void | add_mesh (MPI_Comm comm, pugi::xml_node &xml_node, const hid_t h5_id, const mesh::Mesh &mesh, const std::string path_prefix) |
Add Mesh to xml node. More... | |
void | add_topology_data (MPI_Comm comm, pugi::xml_node &xml_node, const hid_t h5_id, const std::string path_prefix, const mesh::Topology &topology, const mesh::Geometry &geometry, int cell_dim, const std::span< const std::int32_t > &entities) |
Add Topology xml node. More... | |
void | add_geometry_data (MPI_Comm comm, pugi::xml_node &xml_node, const hid_t h5_id, const std::string path_prefix, const mesh::Geometry &geometry) |
Add Geometry xml node. | |
std::pair< std::vector< double >, std::array< std::size_t, 2 > > | read_geometry_data (MPI_Comm comm, const hid_t h5_id, const pugi::xml_node &node) |
Read geometry (coordinate) data. More... | |
std::pair< std::vector< std::int64_t >, std::array< std::size_t, 2 > > | read_topology_data (MPI_Comm comm, const hid_t h5_id, const pugi::xml_node &node) |
Read topology (cell connectivity) data. More... | |
Low-level methods for reading XDMF files.
void add_mesh | ( | MPI_Comm | comm, |
pugi::xml_node & | xml_node, | ||
const hid_t | h5_id, | ||
const mesh::Mesh & | mesh, | ||
const std::string | path_prefix | ||
) |
Add Mesh to xml node.
Creates new Grid with Topology and Geometry xml nodes for mesh. In HDF file data is stored under path prefix.
void add_topology_data | ( | MPI_Comm | comm, |
pugi::xml_node & | xml_node, | ||
const hid_t | h5_id, | ||
const std::string | path_prefix, | ||
const mesh::Topology & | topology, | ||
const mesh::Geometry & | geometry, | ||
int | cell_dim, | ||
const std::span< const std::int32_t > & | entities | ||
) |
Add Topology xml node.
[in] | comm | |
[in] | xml_node | |
[in] | h5_id | |
[in] | path_prefix | |
[in] | topology | |
[in] | geometry | |
[in] | cell_dim | Dimension of mesh entities to save |
[in] | entities | Local-to-process indices of mesh entities whose topology will be saved. This is used to save subsets of Mesh. |
std::pair< std::vector< double >, std::array< std::size_t, 2 > > read_geometry_data | ( | MPI_Comm | comm, |
const hid_t | h5_id, | ||
const pugi::xml_node & | node | ||
) |
Read geometry (coordinate) data.
(num_nodes, geometric dimension)
. std::pair< std::vector< std::int64_t >, std::array< std::size_t, 2 > > read_topology_data | ( | MPI_Comm | comm, |
const hid_t | h5_id, | ||
const pugi::xml_node & | node | ||
) |
Read topology (cell connectivity) data.
i
lists the 'nodes' of cell i
. The returned data is (0) an array holding the topology data (row-major storage) and (1) the shape of the topology array. The shape is (num_cells, num_nodes_per_cell)