hi
so i was looking to obtain better geometry plots e.g. like the ones we get from MCNP with axis system etc. and i decided to try plotter from https://github.com/openmc-dev/plotter
but i get this error (image attached). i am not sure what this is about. i did try to export the library from openmc folder but didn’t work or may be i was exporting it wrongly.
currently i am using bash for windows and openmc from dev branch i.e. openmc 0.11-dev.
i also tried this with openmc 0.10 which i have on separate ubuntu 18.04 installation.
any help with this or any other method through which i can get some form of axis system show in the plot?
Hi Umair,
Have you listed that directory to ensure that the libopenmc.so file is present? If it is not, you may want to try uninstalling and reinstalling the OpenMC Python API to ensure that library present and up-to-date with the installed OpenMC Python package.
You are on the right track to be using the 0.11-dev version of openmc. There are a few functions that have been added to the CAPI to directly support the plotter.
Let me know what you find and hopefully we can get this up and running for you soon!
Patrick Shriwise
608-446-8173
thank you for your quick reply
so i tried a fresh installation of bash shell for windows and then openmc 0.11-dev and of course python api… now i seem to have a new error.
is this error due to the fact that i do not have a gui support on bash for windows? or is there a way around this error?
if it is the former case then i will have to reinstall my ubuntu installation which i have in case i require GUI.
please see attached image for error.
Hi Umair,
You’ll need to start an x11 server in your windows OS to allow ubuntu to connect to the native system graphics. Xming is a popular one for windows I believe.
With that server started, make sure to set the environment variable DISPLAY=:0
You should then be able to run applications from graphics from within the linux subsystem.
Cheers,
Patrick Shriwise
608-446-8173
Hi Patrick
Thank you again for your help. finally managed to run the plotter utility from within linux subsystems, solution was what you described.
on a side note, a little bug/issue i am facing with plotter is when i press maximize, the xming crashes, but this could be xming version compatibility issue with windows 10 as last update seems to be done in 2016. i will try some other x11 server as well.
Hi Umair,
Glad to hear its working! I’m hoping you’re right that this is an issue with some of the x11 servers for Windows as we haven’t seen this problem when running the plotter natively on Linux or OSX, but if you find that the problem persists across different servers, feel free to let us know.
Cheers,
hi Patrick
i was meaning to make a comment for anyone else facing the same issue… yes i tried and can confirm the issue was with xming and windows 10 compatibility as the version i got (i would like to think it was latest) was updated in 2016… so i tried vcxsrv which has latest update in june 2019 and it doesnt crash if i press maximize.
glad to report that all is working as it should.
thanks again for your help.
Umair