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

From: Timo Stein <timoas_at_alumni.ntnu.no>
Date: Sun, 21 May 2017 23:10:30 +0200

Dear Cesc,

The Fortran programme works like a charm. Thank you!

In regard to the DETECT card documentation (online):
Could this source code be placed on the FLUKA DETECT card manual for other
people?

Best wishes,
Timo

-----Original Message-----
From: owner-fluka-discuss_at_mi.infn.it [mailto:owner-fluka-discuss_at_mi.infn.it]
On Behalf Of Francesc Salvat Pujol
Sent: 21 May 2017 20:07
To: Timo Stein <timoas_at_alumni.ntnu.no>; fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: DETECT card output conversion / online manual

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 Mon May 22 2017 - 00:09:46 CEST

This archive was generated by hypermail 2.3.0 : Mon May 22 2017 - 00:09:49 CEST