Beryllium Crosssections Error

Hey,

I have some problems with the element beryllium. I am working with the Jeff 3.2 crosssections and a conda forge environment. I try to build a model with a beryllium reflector. When I try to execute I get the following error message:


Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
ERROR: Did not sample any reaction for nuclide Be9
ERROR STOP
#0 0x7F9A7003D407
#1 0x7F9A7003DA0E
#2 0x7F9A6F8D3F1F
#3 0x7F9A717CDB61
#4 0x7F9A717C5F0A
#5 0x7F9A717C8CEF
#6 0x7F9A717C94DF
#7 0x7F9A717C965F
#8 0x7F9A717F3070
#9 0x7F9A717E0CA6
#10 0x7F9A717E155A
#11 0x7F9A717E1D24
#0 0x7F9A7003D407
#1 0x7F9A7003DA0E
#2 0x7F9A6F8D3F1F
#3 0x7F9A717CDB61
#4 0x7F9A717C5F0A
#5 0x7F9A717C8CEF
#6 0x7F9A717C94DF
#7 0x7F9A717C965F
#8 0x7F9A717F3070
#9 0x7F9A717E0CA6
#10 0x7F9A71B5EBEE
#11 0x7F9A7076C6DA
#12 0x7F9A6F9B688E
#13 0xFFFFFFFFFFFFFFFF

When I use the ENDF crosssections or a different reflector material I have no problems at all. May someone had this error before or an idea what could be the problem.

I append a simple example of a uranium sphere with a beryllium reflector.

Thank you so much for your help!

Christopher

sphere_test.py (1.05 KB)

Hi Christopher,

I was able to reproduce the problem you’re running into and it helped to uncover a bug with how we are keeping track of inelastic scattering. The bug only occurs when (n,2n) reactions in an evaluation are split into levels (MT=875+). That is, an evaluator is allowed to specify separate cross sections for an (n,2n) reaction with the residual nucleus in ground state (MT=875), 1st excited state (MT=876), etc. rather than just a total (n,2n) cross section (MT=16). We actually hadn’t come across such an evaluation until you ran a simulation with Be9 from JEFF 3.2 where this does occur. The good news is that I have a fix for the problem that is now under review. The bad news is that if you want to use it, you’ll have to wait until it is merged into the main branch of OpenMC, reinstall from source, and regenerate/download an updated data library. I just generated a JEFF 3.2 library that works with the developmental branch of OpenMC and can share it, so that will save you from having to do it yourself, but you would still need to reinstall OpenMC.

A less proper way to get around this would be to “hack” the Be9 data file to make it appear as though only a total (n,2n) reaction is present. If the above steps sound too onerous, let me know and I can try to send you a hacked file that should work with your current install.

Best regards,
Paul

Hi Paul,
first of all thank you very much for your answer!
Is there the chance that you could share me the JEFF 3.2 library that works with the developmental branch and send me the “hacked” Be9 file?
Then I would try first the “onerous” way and if this dosen’t work, I still have the chance to do it with the “hacked” Be9 file.

Thank you

Best regards
Christopher

Christopher,

Here’s a link to the JEFF 3.2 library that works with the develop branch: https://anl.box.com/s/gzrkvhwinu9yy5q0r8cc5tnctbu5veua

You can either wait for that pull request to be merged and then clone the main repository, or you can run off my branch (where I’ve fixed the bug) directly by running something like:

git clone https://github.com/openmc-dev/openmc
cd openmc
git remote add paulromano https://github.com/paulromano/openmc
git fetch paulromano
git checkout -b cpp-physics paulromano/cpp-physics
…build/install as described here

The hacked Be9 file will take a little more time – I’ll let you know when I have something.

Best,
Paul

Dear Paul,

Thank you very much! Now it’s working. So I will not need the “hacked Be9 file”.

Best regards
Christopher

Dear Paul,
I am sorry, but I think there is still (or another problem). I installed openmc and the crosssections I got from you. But now I got sometimes an error which looks like the following (this is from the debugger mode):

materials.xml (463 Bytes)

settings.xml (316 Bytes)

geometry.xml (310 Bytes)

Hi Christopher,

I was also able to reproduce this and found an indexing error that is now fixed in this branch (sorry, this is what happens when you live on the bleeding edge). If you want to get that branch right away you can run:

git remote add paulromano https://github.com/paulromano/openmc
git fetch paulromano

git checkout -b resample-fix paulromano/resample-fix
[recompile/install]

Otherwise, if you wait a day or two, the fix will probably be merged in the main ‘develop’ branch. Thanks again for reporting and being my unwitting beta tester :slight_smile:

Best,
Paul

Thanks Paul!

Now it is working.

Best regards
Christopher