# Code entries to use with h.5m to run the problem

**URL:** <https://openmc.discourse.group/t/code-entries-to-use-with-h-5m-to-run-the-problem/5432>\
**Category:** User Support\
**Created:** [April 9, 2025, 9:45pm UTC](https://openmc.discourse.group/t/code-entries-to-use-with-h-5m-to-run-the-problem/5432 "2025-04-09T21:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![birsena](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@birsena](https://openmc.discourse.group/u/birsena)\
**Post date:** [April 9, 2025, 9:45pm UTC](https://openmc.discourse.group/t/code-entries-to-use-with-h-5m-to-run-the-problem/5432/1 "2025-04-09T21:45:46Z")

</div>

Hi,

I created a mesh geometry using CubitForm and created .h5m file. Now I would like to use that file to run my problem. The h5.m file contains all the geometry, cells, materials and the bounding, right? So I define:

dagmc\_universe = openmc.DAGMCUniverse(‘myFile.h5m’)

What are the other entries of the code I need to add to the code to run this problem?

My guess is that I still need to define _ **the source, settings parameters, tally, cross section data, and maybe temperature** _

What about materials, cells and such?

What else do I need to add to the code. Is there a list of entries I can use to run the problem?

Thank you

Birsen

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [April 11, 2025, 11:07pm UTC](https://openmc.discourse.group/t/code-entries-to-use-with-h-5m-to-run-the-problem/5432/2 "2025-04-11T23:07:52Z")

</div>

I have a minimal example here that shows how to make a DAGMC h5m file into and openmc model

> <https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_17_using_DAGMC_models_in_openmc/1_cad_model_simulation_minimal.ipynb>
