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

From: Haoyu Shi <shihy_at_ihep.ac.cn>
Date: Thu, 3 Oct 2019 12:13:36 -0700

Dear Andrea,

Thank you very much for your help.

I’ve tried the “CXTRCK, CYTRCK and CZTRCK” in TRACKR common, and been able to get the outputs. I’m wondering what’s the difference between the 3 I used and the you mentioned?

As for the mgdraw.f, I don’t have trouble with compile. I’m using a Fedora 30 in PD on a Mac. It can be compiled successfully, but when I tried to use the compiled binary as external binary in FLAIR, it could not work properly. The mgread.f now can be complied successfully too, the error is due to I copy it from the web page directly, so it contains an extra space in the beginning of each line, which should be deleted.

I’ve attached one of these versions of mgdraw.f.

Thank you in advance.

Best Regards,
Haoyu






> 在 2019年10月3日,11:13,Andrea Fontana <andrea.fontana_at_pv.infn.it> 写道:
>
> 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 - 22:17:19 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 03 2019 - 22:17:23 CEST