You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am novice DAGMC-OPENMC user and is my first time using this forum. I have been trying to run the attached example from the OpenMC NEA-OECD workshop without success. I get the error message in the following cell of the notebook and cannot figure out what could be the source. See error message below.
I also tried sharing the notebook, but it looks like is not supported. Please advice. Thank you very much for your assistance. CAD.ipynb
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Good day,
I am novice DAGMC-OPENMC user and is my first time using this forum. I have been trying to run the attached example from the OpenMC NEA-OECD workshop without success. I get the error message in the following cell of the notebook and cannot figure out what could be the source. See error message below.
I also tried sharing the notebook, but it looks like is not supported. Please advice. Thank you very much for your assistance.
CAD.ipynb
The Error is listed below:
RuntimeError Traceback (most recent call last)
Cell In[23], line 4
1 # Ensure all required XML files exist before plotting
2 teapot_model.export_to_xml()
----> 4 teapot_model.plot(
5 basis='xz',
6 origin=(0.0, 0.0, 0.0),
7 width=(30.0, 20.0),
8 pixels=(450, 300),
9 color_by='material',
10 colors={iron: 'gray', water: 'blue'}
11 )
File ~/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/model/model.py:954, in Model.plot(self, origin, width, pixels, basis, color_by, colors, seed, openmc_exec, axes, legend, axis_units, outline, show_overlaps, overlap_color, n_samples, plane_tolerance, legend_kwargs, source_kwargs, contour_kwargs, **kwargs)
951 self.plots.append(plot)
953 # Run OpenMC in geometry plotting mode
--> 954 self.plot_geometry(False, cwd=tmpdir, openmc_exec=openmc_exec)
956 # Read image from file
957 img_path = Path(tmpdir) / f'plot_{plot.id}.png'
File ~/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/model/model.py:1150, in Model.plot_geometry(self, output, cwd, openmc_exec, export_model_xml, **export_kwargs)
1148 self.export_to_xml(**export_kwargs)
1149 path_input = export_kwargs.get("path", None)
-> 1150 openmc.plot_geometry(output=output, openmc_exec=openmc_exec,
...
122 error_msg = 'OpenMC aborted unexpectedly.'
123 error_msg = ' '.join(error_msg.split())
--> 125 raise RuntimeError(error_msg)
RuntimeError: OpenMC aborted unexpectedly.
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Beta Was this translation helpful? Give feedback.
All reactions