[fluka-discuss]: Source routine - Sampling from a histogram

From: <nuria.aymerich.soler_at_estudiant.upc.edu>
Date: Thu, 29 May 2014 13:47:46 +0200

Thank you very much Paola!

In the file .dat I have to introduce pairs of energy and value, in the
value can I introduce the probability of each bin of energy without
modifying the code hsource.f?I attach the hsource.dat with the energy
and the probability of each bin.

Thank you



---------- Forwarded message ----------
From: Paola Sala <paola.sala_at_mi.infn.it>
Date: 2014-05-29 10:18 GMT+02:00
Subject: Re: [fluka-discuss]: Source routine - Sampling from a histogram
To: nuria.aymerich.soler_at_estudiant.upc.edu
Cc: fluka-discuss_at_fluka.org


Hello
in attach the source and an example data file
Note that in this example the logical unit for reading data is passed to
the source routine in the SOURCE card, ad the unit is OPENed in the input
file, for instance
**********
OPEN 99. OLD
SOURCE 99.
hsource.dat
******************
Regards
Paola
>
> Dear Fluka experts
>
> I want to define a source which has an energy spectrum.Each bin of
> energy has a certain
> probability. I've read the AdvancedSources2012.pdf and I'm trying to
> write a source
> routine as the example in the slide 30 of this pdf (Example sampling
> from a histogram)
> but I've got problems in the compilation. Could you send me an example
> of this kinf of
> source routine?In the slide 30 it says that I can have a look at the
> example
> "hsource.f", could you send me this file?
>
> thank you very much.
>
> https://www.fluka.org/free_download/course/triumf2012/Lectures/AdvancedSources2012.pdf
>


Paola Sala
INFN Milano
tel. Milano +39-0250317374
tel. CERN +41-227679148



Received on Thu May 29 2014 - 14:55:34 CEST

This archive was generated by hypermail 2.3.0 : Thu May 29 2014 - 14:55:34 CEST