I’m having issues plotting a hexagonal lattice on openMC. it gives me the error:
Traceback (most recent call last):
File “/Users/christianandresclaro/code/matt_test”, line 99, in
plot = hex_universe.plot(pixels=(600, 600), color_by=‘material’, colors={fuel_kernel: ‘black’, coolant: ‘yellow’})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/christianandresclaro/miniconda3/envs/openmc_new/lib/python3.12/site-packages/openmc/universe.py”, line 446, in plot
model.plot_geometry(False, cwd=tmpdir, openmc_exec=openmc_exec)
File “/Users/christianandresclaro/miniconda3/envs/openmc_new/lib/python3.12/site-packages/openmc/model/model.py”, line 828, in plot_geometry
openmc.plot_geometry(output=output, openmc_exec=openmc_exec)
File “/Users/christianandresclaro/miniconda3/envs/openmc_new/lib/python3.12/site-packages/openmc/executor.py”, line 154, in plot_geometry
_run(args, output, cwd)
File “/Users/christianandresclaro/miniconda3/envs/openmc_new/lib/python3.12/site-packages/openmc/executor.py”, line 125, in _run
raise RuntimeError(error_msg)
RuntimeError: OpenMC aborted unexpectedly.
I am running this on a mac and was originally having issues with cross sections. I believe this was remedied but now it wont generate plots. when i exclude the following lines:
plot = hex_universe.plot(pixels=(600, 600), color_by=‘material’, colors={fuel_kernel: ‘black’, coolant: ‘yellow’})
plt.show()
the program compiles just fine.