Fixing touching bodies problem by partial overlaping

Dear FLUKA experts and users,

I am creating a bunker geometry in order to calculate the dose spatial distribution from a linear accelerator radiation.
Initially, I created a bunker using RPP bodies that touched each other. However, after receiving numerous warnings such as Body 'wall1' [RPP] and 'wall2' [RPP] are touching, I discovered that one of the possible solutions to this problem is to force the bodies to partially overlap (slide #36).

I created these overlaps for all the bodies that were touching (see the attached screenshot) and properly selected the regions, but it didn’t help. The warning messages are still present.
Could you suggest how to fix it, please? Have I done something wrong?

Sincerely, Ihor
linac.flair (7.0 KB)

FLUKA: 4-5.0
Flair: 3.4-3
OS: Ubuntu 24.04 LTS

Hi Ihor,

When I open your file, I can see the warning messages, but when you run your simulation, do you actually get an error or it finishes normally? I can see there that you were using your own .exe file, could you provide the routines that you are using so I could compile the same executable?

It seems to me that the bodies are indeed touching, but that does not mean that there is an overlap between regions. If you simulations run without errors, I think they should be fine.

Cheers,

Jerzy

Dear @jemancza,

Thanks for your answer! It looks like there are no specific geometry-related errors in the .err, .log and .out files (сould you please comfirm this?). Sorry, I forgot to include my source routine file. Please, find it in the attachments. I made some slight modification to the beam x- and y-divergences in source_newgen.f file …

Best regards, Ihor
source_newgen.f (20.8 KB)

Hi @imelnyk

I looked again into your geometry and I think everything should be fine with it. The warnings that you observe are in fact generated by Flair and they would normally inform you that you MIGHT come across numerical errors in your simulation. In your case, they are caused by the fact that some dimensions of you RPP bodies are matching (Xmin, Xmax, Ymin, Ymax, Zmin or Zmax). In other words, even though there is an overlap, the edges are still matching.

However, because the touching happens only between RPPs, you don’t have to be worried as their construction does not involve any arithmetic operation.

Best,

Jerzy

1 Like