Voxel plot script

Hi,

I am trying to make 3D reactor core voxel plots by university’ high-performance computer. The rule of HPC work is submitting a sbatch script with the application and requirement. Therefore, I need to write a python .py file contains OpenMC code. But I can not run openmc-voxel-to-vtk script by command line.

Is there any method to run this script in the python .py file, and let it output the .vti file. Please let me know if you have any idea.

Thanks,

Yiming

Hi Yiming,

Based on how the openmc-voxel-to-vtk script is currently structured, it’s difficult at this point to import that capability into another Python script. I’ll work on updating that.

Until then, could you perhaps call the script from the python file using the subprocess module?

Another alternative might be to copy the OpenMC voxel file (.h5) to your local machine from the HPC system, but if you’re generating a voxel file for a full core it may be too large for that.

Patrick Shriwise
608-446-8173