Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d0/dfe/namespacedolfinx_1_1io_1_1xdmf__mesh.html
DOLFINx  0.4.1
DOLFINx C++ interface
Functions
dolfinx::io::xdmf_mesh Namespace Reference

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 xtl::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.
 
xt::xtensor< double, 2 > read_geometry_data (MPI_Comm comm, const hid_t h5_id, const pugi::xml_node &node)
 Read Geometry data. More...
 
xt::xtensor< std::int64_t, 2 > read_topology_data (MPI_Comm comm, const hid_t h5_id, const pugi::xml_node &node)
 Read Topology data. More...
 

Detailed Description

Low-level methods for reading XDMF files.

Function Documentation

◆ add_mesh()

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.

◆ add_topology_data()

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 xtl::span< const std::int32_t > &  entities 
)

Add Topology xml node.

Parameters
[in]comm
[in]xml_node
[in]h5_id
[in]path_prefix
[in]topology
[in]geometry
[in]cell_dimDimension of mesh entities to save
[in]entitiesLocal-to-process indices of mesh entities whose topology will be saved. This is used to save subsets of Mesh.

◆ read_geometry_data()

xt::xtensor< double, 2 > read_geometry_data ( MPI_Comm  comm,
const hid_t  h5_id,
const pugi::xml_node &  node 
)

Read Geometry data.

Returns
geometry

◆ read_topology_data()

xt::xtensor< std::int64_t, 2 > read_topology_data ( MPI_Comm  comm,
const hid_t  h5_id,
const pugi::xml_node &  node 
)

Read Topology data.

Returns
((cell type, degree), topology)