Re: [fluka-discuss]: Minimum distance to nearest boundary

From: Chris Theis <>
Date: Thu, 13 Jul 2017 09:22:17 +0000

Hi Andrea,

Thanks for your mail. However, I’m afraid that I probably didn’t explain my problem very well.

I need to implement some very specific biasing scheme for isotope diffusion tracking and for this purpose I do need to interface with FLUKA’s geometry kernel. As the minimum distance is usually a standard feature of every tracker I was looking for the name of this routine. If it is not implemented in FLUKA, which would surprise me, then I can implement it myself as I’ve done it already many times writing geometry kernels.

However, for this I would also need to know the name of the routine in FLUKA which solves the nearest intersection problem between a ray and the full boolean geometry model. All of this has to happen dynamically during the runtime of FLUKA from where I also get the original position of the radionuclide . Theoretically I could use my own geometry kernel from. SimpleGeo and link it to FLUKA, but this is not very practical and would duplicate the efforts to determine information which is already there and available during the simulation run.

Thanks a lot

On 13 Jul 2017, at 10:28, Andrea Fontana <<>> wrote:

Hi Chris,
  have you tried with PLOTGEOM? Alternatively, there are some interesting
equations at this link (look under "Mathematics/Distance"):

that can perhaps be implemented in an algorithm.
Hope this helps,

Il 12/07/2017 10:24, Chris Theis ha scritto:

Dear colleagues,

for some user routines I would need to find the minimum distance from a point in a volume to the nearest boundary of this region. As this is a standard functionality of a tracker I guess that there should be a routine in FLUKA’s geometry package that one could call to obtain this information. However, I was not very successful so far in finding it. If somebody could give me a hint it would be greatly appreciated.

Thanks a lot


Dr. Andrea Fontana tel: +39 0382 987991
Istituto Nazionale fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia e-mail:
Via Bassi 6 web :
27100 PAVIA, Italy

Chris Theis
CERN/HSE-RP - European Organization for Nuclear Research
1211 Geneva 23, Switzerland
Phone: +41 22 767 8069 Office: 892-2A-015
e-mail:<> www:

You can manage unsubscription from this mailing list at
Received on Thu Jul 13 2017 - 12:32:22 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 13 2017 - 12:32:54 CEST