How to create unstructured meshes for tallying

The making of a h5m file for use in DAGMC can also be done in a variety of ways, essentially one needs triangle sets and their connectivity to make the geometry:

Here are some methods of the top of my head, but we maintain a complete list here

  • openmc-to-cad link
  • Cubit and the DAGMC-plugin [link] [link]
  • cad-to-h5m (a Cubit wrapper) [link]
  • stl-to-h5m (requires non overlapping stl files) [link]
  • vertices-to-h5m (requires mesh info) [link]
  • brep-to-h5m (requires brep cad file) [link]
  • cad-to-dagmc (my latest creation and new personal favorite) [link]

Assigning the outer vacuum boundary conditions to the h5m DAGMC geometry was recently discussed on this thread.

There are a few options but in summary the boundary condition can be made automatically by using the bounded_universe introduced by an awesome PR in version 0.13.1

dagunv = openmc.DAGMCUniverse("dagmc.h5m").bounded_universe()