I have been facing a problem with plots, even though my OpenMC version has PNG enabled, I still can not execute the command universe.plot(), universe being a preestablished universe or even a cell, instead, I have to save a PNG image each time I want to plot, and when doing so, the image does not have the associated x and y axis values in cm, which makes visualization a little inconvenient. Every time I run universe.plot(), I get this error
Traceback (most recent call last):
File “/mnt/c/openMC/UFTR/main code.py”, line 93, in
fuel_assembly_universe.plot()
File “/home/eastdusty/openmc_env/lib/python3.11/site-packages/openmc/universe.py”, line 450, in plot
model.plot_geometry(False, cwd=tmpdir, openmc_exec=openmc_exec)
File “/home/eastdusty/openmc_env/lib/python3.11/site-packages/openmc/model/model.py”, line 956, in plot_geometry
if self.is_initialized:
^^^^^^^^^^^^^^^^^^^
File “/home/eastdusty/openmc_env/lib/python3.11/site-packages/openmc/model/model.py”, line 148, in is_initialized
import openmc.lib
File “/home/eastdusty/openmc_env/lib/python3.11/site-packages/openmc/lib/init.py”, line 30, in
_dll = CDLL(str(_filename)) # TODO: Remove str() when Python 3.12+
^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/ctypes/init.py”, line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/eastdusty/openmc_env/lib/python3.11/site-packages/openmc/lib/libopenmc.so: cannot open shared object file: No such file or directory
I tried running this in both jupyter notebook and Pycharm, they both give errors.