and i got this file with 500 Mb size in the project folder.
And want to convert to VTK format.
After I run this command.
!openmc-voxel-to-vtk voxelPlot.h5 --output
I got an error without vtk file.
Traceback (most recent call last):
File “/Users/saksorn/opt/anaconda3/envs/openmc-env2/bin/openmc-voxel-to-vtk”, line 9, in
import vtk
File “/Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/python3.9/site-packages/vtk.py”, line 30, in
all_m = importlib.import_module(‘vtkmodules.all’)
File “/Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/python3.9/site-packages/vtkmodules/all.py”, line 64, in
from .vtkIOFFMPEG import *
ImportError: dlopen(/Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/python3.9/site-packages/vtkmodules/vtkIOFFMPEG.cpython-39-darwin.so, 2): Symbol not found: _mp_get_memory_functions
Referenced from: /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libgnutls.30.dylib
Expected in: /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libhogweed.4.dylib
in /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libgnutls.30.dylib
Please help me to create the 3D plot. Thank you so much.
~/opt/anaconda3/envs/openmc-env2/lib/python3.9/site-packages/vtkmodules/all.py in
62 from .vtkIOImport import *
63 from .vtkIOVideo import *
—> 64 from .vtkIOFFMPEG import *
65 from .vtkIOExportPDF import *
66 from .vtkRenderingGL2PSOpenGL2 import *
ImportError: dlopen(/Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/python3.9/site-packages/vtkmodules/vtkIOFFMPEG.cpython-39-darwin.so, 2): Symbol not found: _mp_get_memory_functions
Referenced from: /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libgnutls.30.dylib
Expected in: /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libhogweed.4.dylib
in /Users/saksorn/opt/anaconda3/envs/openmc-env2/lib/libgnutls.30.dylib
Do you have a tutorial for 3D Plot? I really confuse what I need to do here. Thank you so much.
To be clear, this is not a problem with OpenMC itself and as far as I can tell what you are doing is correct. The openmc-voxel-to-vtk script depends on the VTK Python module and the problem is with your installation of the VTK Python module. It looks like the package for it on anaconda is only prebuilt for Python 3.6 and 3.7. You might want to try installing OpenMC in a new virtual environment based on Python 3.7. Alternatively, you can try uninstalling VTK from conda and then reinstalling using pip (pip install vtk).