Visualization of a Geometry with ParaView
Objective
I am creating a detector in OpenMC with the goal of running simulations. As a first step, I need to create the geometry and verify it in 3D using ParaView.
Steps
1. Create the Geometry
I write the geometry in my Python script.
2. Compile the Program
I run my script, which generates a file named plot_1.h5
.
3. Convert the plot_1.h5
File to VTI Format
I use the following command to convert the plot_1.h5
file into a format that ParaView can read:
openmc-voxel-to-vtk plot_1.h5 -o geometry.vti
4. Open ParaView
I open ParaView and set some parameters according to this previous topic:
OpenMC Discourse - Geometry Plotting Issue
I still have issues with the visualization; I cannot see my geometry in the file as you can see with this image:
Could you please help me?
I am sending you the OpenMC modeling file attached. However, I am not able to send the plot_1.h5
and geometry.vti
files.
Best regards,
Gauthier GOUSSET
detector.py (4.7 KB)