Re: [fluka-discuss]: Particle latching and STUPRF

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Fri, 12 Jul 2019 14:48:51 +0200

Dear Lifi,
   if you send also your input file I can try to assist you
by trying to reproduce your case.

 From your message it is not clear if your method worked:
did you get any number written from the BXDRAW routine?

Kind regards,
Andrea

On 11/07/2019 10:48, Huang, Lifi wrote:
>
> Dear FLUKA experts,
>
>
> after reading all of the previous discussions and the FLUKA manual, I
> am still having trouble understanding the latching mechanism in FLUKA.
>
> A simplified version of my problem is this:
>
> ​
>
> I have a detector region into which various types of particles are
> travelling through. These particles are the results of interactions in
> one of three other regions. I would like to analyze how many of these
> particles traveled into the detector from each region. Unless I'm
> wrong, I cannot use the subroutine bxdraw directly, because my three
> other regions do not directly border the detector region, i.e. there
> is air between the detector and the interaction regions.
>
>
> My idea is to use stuprf.f to save the interaction region of the
> mother particle in a SPAUSR/ISPUSR variable and write it to a file
> whenever one of its daughter particles passes into the detector region
> (compiling my exe with both mgdraw.f and stuprf.f). This is, however,
> where I am stuck.
>
>
> I have attached my mgdraw.f routine (not the stuprf.f though, nothing
> changed here), where I have added " ISPUSR(1)=MREG​ " to the usdraw
> routine (not even sure if this is the correct variable to save as the
> region) in hopes of being able to obtain a distribution of where all
> the daughter particles are coming from in post-processing. In the
> bxdraw routine (so when the daughter particle crosses from the air
> into the detector region), I have implemented a write function that
> writes the energy/time of arrival/ particle id/region from where it
> entered the detector(always air)/interaction region of where the
> particle was initially created (i.e. ISPUSR(1)).
>
>
>
> Essentially what I am asking is how to explicitly save the
> region where a daughter particle was created and write it to a file,
> along with some other properties, when it passes through a
> not-neighbor region. Is the way I have done it correct?
>
>
> Thanks so much for your time!​
>
>
>
> *Lifi Huang
> *MSc Student
>
> E041
> Medical Physics in Radiooncology
>
> German Cancer Research Center (DKFZ)
>
> Foundation under Public Law
>
> Im Neuenheimer Feld 280
>
> 69120 Heidelberg
>
> Germany
>

-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Jul 12 2019 - 16:17:02 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 12 2019 - 16:50:42 CEST