Wrong Plots from A Box

Hi,everyone!
There is something wrong when I use the OpenMC plot.
1)
The geometry I wan to create is A BOX.The code to define it is post underneath.

The plot what I want is divided to 3 parts: plane x-y,x-z,y-z.The code to define it is post underneath,too.

But when I use the OpenMC plot, the outcome pictures is clearly wrong.



The picture"plot_1"is totally full of white!
It means that nothing stand in plane x-y from the view of z axis.

But the other 2 pictures remind me that there must be somethting when you look from z axis.

As you can see, What I am trying to do is use the plot of voxel. But I want to share this problem to all of you, in case of someone else gets stuck in it.

Kind Regards,
Seamoon

@Seamoon If you haven’t already, I would strongly recommend taking a look at our openmc-plotter application which gives you a nice GUI to explore your model without having to generate Plot objects manually.

Paul, thanks for your reply! But I’m using OpenMC in WSL Ubuntu, which has no GUI. What I would like to know is the correct steps to install&use openmc-plotter.

Installing the plotter is easy: either pip install openmc-plotter or conda install openmc-plotter. However, running a GUI application through WSL Ubuntu may run into problems. On recent versions of Windows 11 though, running GUI apps should be possible.

1 Like

@paulromano Thanks for your reply! After hours of installing softwares into WSL and Windows, I finally successfully install all the support softwares of OpenMC Plot Explorer & itself.
With the help of OpenMC Plot Explorer, I can clearly see the BOX, but I cann’t find out the reason why my code “plot1” outcomes a full white background up to now.

By the way, the reason why I can survive from the terrible experience of softwares installation is the beauty of Eagles’s song <Love Will Keep Us Alive,:slight_smile:

Jesus,When I use the <>, I can’t write down my favorite song name into it :disappointed:

Would you like to teach me how to install and use openmc-plotter?Because i am also using the WSL Ubuntu,and I’m struggling with it now

and there is my problem

In general graphics apps don’t work on WSL

However there is now a new version of WSL that supports graphics apps. I’ve not tried it but perhaps it is worth a go

Alternatively there are some openmc plotting apps I’m experimenting with that work on the web, so nothing to install. https://www.xsplot.com/

Before WSL2 you need an X-server running in windows which you can connect. I’ve had some good mileage from Xming.
Once started you’d have to set the DISPLAY environment variable in your shell to point to the server, so clients can connect to it. Like so:
export DISPLAY=localhost:0.0
This has worked well for me in the past.

cheers
Erik

2 Likes