Re: [fluka-discuss]: How to Output the directions of all the secondaries?

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Thu, 3 Oct 2019 20:13:07 +0200

Dear Haoyu,
     you can access the direction cosines of the secondary particles
with the variables CXR(ip),CYR(ip) and CZR(ip) from the GENSTK common
block. Did you try to add these in mgdraw at boundary crossing?

See also this thread in the forum:
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/9839.html

As a general comment, what system do you have? Linux, Fedora?
And what fortran compiler version? If you give us more information
and the error you get when compiling MGREAD.F (from chapter 12),
we can help you in fixing it so that you can also process binary
outputs.

Kind regards,
Andrea

Il 02/10/2019 18:36, Haoyu Shi ha scritto:
> Dear FLUKA Experts,
>
> I’m trying to get outputs when a beam interacted with a copper target. The target is a ring, with inner radius of 5cm, and outer radius of 10cm, thickness is 2cm. Outside the target is void, and then blackhole. I want to track all the particles that crossing the boundary of the target, from copper to void, together with the particle informations(3-D position of the crossing point, the particle type, energy, and direction).
>
> For now, I managed to get outputs from user defined mgdraw routine only including boundary crossing. I can get most of the information I want, including crossing point, particle type, and also energy. However, since I need to track these particles in another tool, it also important for me to get the direction of the particle, which I cannot do now.
>
> I tried using original mgdraw.f, and using last 2 steps to predict the direction. But I failed. If I use the original one comes with FLUKA, I can only get the unformatted file which I could not readout. However, if I change the code, for example, only change the FORM from “unformatted” to “formatted”, it would cause a “timed-out” error, or run successfully with no output sometimes.
>
> Could you please help me to output the directions?
>
> Thank you in advance.
>
> Haoyu
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>

-- 
========================================================================
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 Thu Oct 03 2019 - 21:24:16 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 03 2019 - 21:24:28 CEST