Note that the gaussian distribution will in average sample 50% of negative numbers which you then try to assign to the kinetic energy...
From: 2013200577 <2013200577_at_grad.buct.edu.cn<mailto:2013200577_at_grad.buct.edu.cn>>
Date: Wednesday, May 13, 2015 4:12 AM
To: fluka-discuss <fluka-discuss_at_fluka.org<mailto:fluka-discuss_at_fluka.org>>
Subject: [fluka-discuss]: About user routine:how to define the energy distribution of part icles in source.f
Hi ,everyone !
Here is my question: I define the energy distribution of particles by sampling from a Gaussian distrbution,but there seems to be some error,who can help me find it?Thank you very much.
REAL RGAUSS=0.0
CALL FLNRRN (RGAUSS)
ENSAMP=RGAUSS
TKEFLK (NPFLKA) = ENSAMP
PMOFLK (NPFLKA) = SQRT (ENSAMP * (ENSAMP + TWOTWO * AM(IJBEAM)))
__________________________________________________________________________
You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
Received on Wed May 13 2015 - 18:28:02 CEST