Universe.volume variable and microscopic mgxs.MGXS instance computation

Hi everyone,
I was trying to compute the microscopic fission cross section for Pu239. After the simulation and the MGXS.load_from_statepoint() the following error occur: “Volume information is needed to calculate microscopic cross sections for universe 1. This can be done by running a stochastic volume calculation via the openmc.VolumeCalculation object”. I set the volume with universe.volume but it did not work. Is there a possibility to use and already computed volume or the stochastic volume calculation is mandatory?
Thanks in advance!

Luigi Barone

You call alternatively set the material.volume to a numerical value. For instance if your material fills a sphere then you can easily find then set the volume without the stochastic volume calculation. Sometimes the volume of the cell that the material fills is not known so then the stochastic volume calculation is useful

Here is a stochastic volume example in case it is handy

Thank you for the reply. However, it is not working yet. It looks like universe.volume = volume (or material.volume) does not correctly set the volume or does not store the information where needed.