Re: [fluka-discuss]: Source-Generic distribution

From: Giuseppe Battistoni <giuseppe.battistoni_at_mi.infn.it>
Date: Mon, 17 Feb 2014 14:16:34 +0100

Dear Renata
samplig a variable (energy in this case) from a given function requires a different mathematics.
Please study the following lecture from FLUKA courses:
https://www.fluka.org/free_download/course/dresden2013/Lectures/09_Statistics_and_sampling_1013.pdf
If you have problems let us know

        Giuseppe Battistoni


On 2/17/14 12:37 PM, rleanza_at_lns.infn.it wrote:
> Dear fluka users,
>
> I have create a source.f file to simulate an electrons beam. The Kinetic
> energy change from 0 to 1 Mev according the function:
> a*sqrt(X)*exp(-(X/b)), where a and b are two constants (a=156000,
> b=20000). I compile and build the source.f and it is ok.
> When I try to run, it doesn't work. I'm attaching my source.f file.
> Could you kindly guide me where the error should be?
> Best regards,
>


-- 
INFN Milano
via Celoria 16, 20133 Milano, Italy
tel: +39 02 50317307
fax: +39 02 50317617
Received on Mon Feb 17 2014 - 16:29:45 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 17 2014 - 16:29:45 CET