No error message even Turn on debug

Hi,Openmc experts

I’m new with openmc and got a lot of errors while trying it.My project is about co-operate Fluka and Openmc together on ADS problem by creating spallation source from fluka and simulate on openmc.

My problem is I try to create my own inputs (geometry,materials,settings…) and run it, but i got this error

Reading settings XML file…
Reading cross sections XML file…
Reading materials XML file…
Reading geometry XML file…
Reading Pb204 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pb204.h5
Reading Pb206 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pb206.h5
Reading Pb207 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pb207.h5
Reading Pb208 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pb208.h5
Reading Bi209 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Bi209.h5
Reading Np237 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Np237.h5
Reading Pu238 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pu238.h5
Reading Pu239 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pu239.h5
Reading Pu240 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pu240.h5
Reading Pu241 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pu241.h5
Reading Pu242 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Pu242.h5
Reading Am241 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Am241.h5
Reading Am242_m1 from
/home/billythanapong/openmc/endfb71/endfb71_hdf5/Am242_m1.h5
Reading Am243 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Am243.h5
Reading Cm242 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cm242.h5
Reading Cm243 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cm243.h5
Reading Cm244 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cm244.h5
Reading Cm245 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cm245.h5
Reading Cm246 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cm246.h5
Reading Zr90 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Zr90.h5
Reading Zr91 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Zr91.h5
Reading Zr92 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Zr92.h5
Reading Zr94 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Zr94.h5
Reading Zr96 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Zr96.h5
Reading N15 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/N15.h5
Reading Fe54 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Fe54.h5
Reading Fe56 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Fe56.h5
Reading Fe57 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Fe57.h5
Reading Fe58 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Fe58.h5
Reading Cr50 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cr50.h5
Reading Cr52 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cr52.h5
Reading Cr53 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cr53.h5
Reading Cr54 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Cr54.h5
Reading Ni58 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Ni58.h5
Reading Ni60 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Ni60.h5
Reading Ni61 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Ni61.h5
Reading Ni62 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Ni62.h5
Reading Ni64 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Ni64.h5
Reading Mo100 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo100.h5
Reading Mo92 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo92.h5
Reading Mo94 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo94.h5
Reading Mo95 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo95.h5
Reading Mo96 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo96.h5
Reading Mo97 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo97.h5
Reading Mo98 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mo98.h5
Reading Mn55 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/Mn55.h5
Reading W182 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/W182.h5
Reading W183 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/W183.h5
Reading W184 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/W184.h5
Reading W186 from /home/billythanapong/openmc/endfb71/endfb71_hdf5/W186.h5
Minimum neutron data temperature: 294.0 K
Maximum neutron data temperature: 294.0 K
Reading tallies XML file…
Preparing distributed cell instances…
Writing summary.h5 file…
Maximum neutron transport energy: 20000000.0 eV for Np237

===============> FIXED SOURCE TRANSPORT SIMULATION <===============

Simulating batch 1
Segmentation fault (core dumped)

Then, I turn on debug and re-run again
(I use ccmake to turn on debug in CMakeCache.txt in build-debug directory)
but still got same error with no any message.
Did I do something wrong? or my code isn’t correct? Please correct me.

These are my input files

settings

Hi @billytnp. Any chance you could share the source file as well (source_fluka.h5)?

Hi @paulromano,

Here is my source.

source.h5

So the format of the source sites inside an HDF5 file has changed somewhat over time. The source file that you have does not match what OpenMC expects, which I suspect is why it is crashing. Unfortunately, it looks like our documentation is not correct regarding what attributes need to be stored in the compound datatype inside of a source file either. To make this easier and less error-prone, I’ve just implemented a new write_source_file function (along with a SourceParticle class) that allows you to generate a source file programmatically from Python. You can find this function in this pull request. I would suggest re-generating your source file using this new function (you can copy/paste the implementation from the pull request into a script for now). The workflow would look like:

source_particles = []
for _ in range(num_particles):
    s = openmc.SourceParticle(...)  # <-- set arguments using data from FLUKA
    source_particles.append(s)

openmc.write_source_file(source_particles, 'source_fluka.h5')

Let me know if you have questions!

@billytnp It also occurred to me that we don’t currently support using a source file in conjunction with a fixed source simulation. I’ve created an issue to keep track of this and hopefully we can get that fixed in the near term.

Dear Paul,

Thank you for your help.

I’m working on it.