Skip to content

Commit

Permalink
Update examples/unstrucutred_volume_mesh/simulate_unstrucutred_volume…
Browse files Browse the repository at this point in the history
…_mesh_with_openmc.py
  • Loading branch information
shimwell authored Mar 15, 2024
1 parent 23ed6c0 commit adc0179
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@

import openmc

with open("cross_sections.xml", "w") as file:
file.write(
"""
<?xml version='1.0' encoding='UTF-8'?>
<cross_sections>
<library materials="H1" path="tests/ENDFB-7.1-NNDC_H1.h5" type="neutron"/>
<library materials="H2" path="ENDFB-7.1-NNDC_H2.h5" type="neutron"/>
</cross_sections>
"""
)
openmc.config["cross_sections"] = "cross_sections.xml"

umesh = openmc.UnstructuredMesh("umesh.h5m", library="moab")
Expand Down

0 comments on commit adc0179

Please sign in to comment.