Re: [fluka-discuss]: About user routine:how to define the energy distribution of part icles in source.f

From: Santana, Mario <msantana_at_slac.stanford.edu>
Date: Wed, 13 May 2015 15:05:08 +0000

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

This archive was generated by hypermail 2.3.0 : Wed May 13 2015 - 18:28:07 CEST