# .h5m file cell ID and name mapping

**URL:** <https://openmc.discourse.group/t/h5m-file-cell-id-and-name-mapping/6346>\
**Category:** User Support\
**Created:** [June 3, 2026, 9:22am UTC](https://openmc.discourse.group/t/h5m-file-cell-id-and-name-mapping/6346 "2026-06-03T09:22:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![approx-inifinity](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@approx-inifinity](https://openmc.discourse.group/u/approx-inifinity)\
**Post date:** [June 3, 2026, 9:22am UTC](https://openmc.discourse.group/t/h5m-file-cell-id-and-name-mapping/6346/1 "2026-06-03T09:22:19Z")

</div>

I have loaded a .h5m file using DAGMCUniverse(). The .h5m file has 20 material tags. But I need to define cell filters. And to define cell filters I need to know the cell ID. I am able to extract the cell IDs from DAGMCUniverse() but I can’t ensure that which cells they are referring in which order.

Is there any way to know the cell IDs with name?

I find out that openMC has moab cli support but it doesn’t come with pymoab.

---

<div class="post-metadata">

**Author:** ![approx-inifinity](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@approx-inifinity](https://openmc.discourse.group/u/approx-inifinity)\
**Post date:** [June 3, 2026, 9:35am UTC](https://openmc.discourse.group/t/h5m-file-cell-id-and-name-mapping/6346/2 "2026-06-03T09:35:47Z")

</div>

Ok, now I got the solution.

[dagmc\_h5m\_file\_inspector](https://github.com/fusion-energy/dagmc_h5m_file_inspector) is the library which has many useful options to get the job done.

Thanks to @Shimwell for building this package.
