Particles leaving geometry

Dear FLUKA experts,

I am re-touching simulations from 2024 and was wondering if it is possible to get particle based information of particles leaving a target for a simple simulation. Two years ago I simulated an electron beam imping on a target and thus used FLUKA as an event generator for our experiment. Since we were especially interested in electro-nuclear interactions, I had a custom mgdraw that produced output files with all secondary particles from ICODE=101 interactions.

Since we also want to know what happens with the secondary particles in our setup, we were now wondering if it is possible to have such exact information of particles leaving the target region. (energy, momentum, particle ID and event ID for each particle leaving the target region)

As far as I have understood this is not possible directly since boundary crossings are given in particle fluence, not single particles. But I might be wrong.

I would be very happy for some feedback or redirection if and how this would be possible in FLUKA.

Kind regards,
Laney

Dear @lklippha,

Some of the built-in scorings of the FLUKA Cards are indeed in particle fluence, but you can adapt an mgdraw routine, the same way you have previously done, in order to score particle by particle.

If you follow this lecture (slide 17) on the mgdraw user scoring, you can intercept every boundary crossing and then score the information that you require. For this, you would have to use adapt the BXDRAW entry of the routine, and know the name of the region around your target.

If you upload an example *.inp file I can double check the region definitions such that they are correct for your purpose. Moreover, should you have issues with adapting the mgdraw, please upload your version as well and I can advise.

Hoping for a quick and smooth boundary crossing into the region of a workable solution for you,
Daniel

1 Like

Dear Daniel,

thank you very much for your reply! I will try it out and let you know if anything comes up.

Kind regards

Laney