RE: [fluka-discuss]: DETECT card output conversion / online manual

From: Francesc Salvat Pujol <francesc.salvat.pujol_at_cern.ch>
Date: Sun, 21 May 2017 18:07:13 +0000

Dear Timo,

The attached little fortran code (basically the code snippet in the manual) may be useful.

You will have to replace "detect001_fort.17" by the filename you want to read from.

The output is histogram.dat, an ASCII file containing two columns (to be scaled to your needs): channel number and the number of counts.

I hope this helps, albeit as a starting point.

Have a nice residual weekend,

Cesc

--
Francesc Salvat Pujol
CERN-EN/STI
1211 Geneva 23
Switzerland
Tel: +41 22 76 64011
Fax: +41 22 76 69474
________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Timo Stein [timoas_at_alumni.ntnu.no]
Sent: 21 May 2017 15:04
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: DETECT card output conversion / online manual
Dear FLUKA experts,
I am trying to use the DETECT card to create a histogram of deposited energy
in a region.
I understand that the output file is a Fortran binary that follows a
specific pattern. The FLUKA online manual suggests to use a Fortran code
snippet (that also defines the pattern) - under Notes:
http://www.fluka.org/fluka.php?id=man_onl&sub=22
I have tried this along with opening the file (unit 1, not 17) and write it
to a file in another (unit 2). This generates an error (related to the end
of line).
Can you please provide a Fortran code snippet that can open the FLUKA run
detect output file and write the data to another in ASCII? Would it be
possible to place such snippet in the DETECT card online manual? That would
be really useful.
Thanks a lot and have a nice weekend!
Best wishes,
Timo
--
Timo A. Stein  |  PhD Candidate
Department of Physics
University of Oslo, Norway
e-mail: t.a.stein_at_fys.uio.no
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Sun May 21 2017 - 21:12:04 CEST

This archive was generated by hypermail 2.3.0 : Sun May 21 2017 - 21:12:07 CEST