Dear experts,
I just started diving into openmc and experimented with the first OpenMC example (Modeling a Pin-Cell).
Everything seems to work fine until the first plots (Cell 24, universe.plot(width=(2.0, 2.0), origin=(0.0, 0.0, 0.1))
) where I get:
Traceback (most recent call last):
File "/Users/sophie/Projects/test_openmc/test_openmc_minimal.py", line 19, in <module>
universe.plot(width=(2.0, 2.0), origin=(0.0, 0.0, 0.1))
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/universe.py", line 358, in plot
model.plot_geometry(False, cwd=tmpdir, openmc_exec=openmc_exec)
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/model/model.py", line 705, in plot_geometry
openmc.plot_geometry(output=output, openmc_exec=openmc_exec)
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py", line 139, in plot_geometry
_run([openmc_exec, '-p'], output, cwd)
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py", line 118, in _run
raise RuntimeError(error_msg)
RuntimeError: OpenMC aborted unexpectedly.
If I am removing the universe.plot(), the code runs fine and calculates the keff consistently with the example. It then, however, fails at the second plot (Cell 45, openmc.plot_geometry()
) via
=======================> PLOTTING SUMMARY <========================
Plot ID: 1
Plot file: pinplot.png
Universe depth: -1
Plot Type: Slice
Origin: 0 0 0
Width: 1.26 1.26
Coloring: Materials
Basis: XY
Pixels: 200 200
Processing plot 1: pinplot.png...
libpng warning: Application built with libpng-1.4.12 but running with 1.6.39
Traceback (most recent call last):
File "/Users/sophie/Projects/test_openmc/test_openmc_extendedminimal.py", line 110, in <module>
openmc.plot_geometry()
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py", line 139, in plot_geometry
_run([openmc_exec, '-p'], output, cwd)
File "/Users/sophie/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py", line 118, in _run
raise RuntimeError(error_msg)
RuntimeError: OpenMC aborted unexpectedly.
I am using OpenMC version 0.13.2., installed it via conda/mamba as recommended in the Quick Install Guide on my macbook running macOS Monterey (12.6.2).
Has someone seen this before or any idea what to do? Every hint is appreciated - thanks a lot!
Cheers,
Sophie