[fluka-discuss]: isotropic sourse using fortran code

From: Stefan Roesler <Stefan.Roesler_at_cern.ch>
Date: Tue, 8 Oct 2019 17:21:59 +0000

Hello

I suggest that you use one of the built-in means to sample from isotropic distributions. Please see

https://indico.cern.ch/event/334606/contributions/779788/attachments/653364/898409/AdvancedSources2014.pdf

Cheers
Stefan

PS: Did you define ‘pi’ in your case?


From: 李立华 <13691416247_at_ciae.ac.cn<mailto:13691416247_at_ciae.ac.cn?Subject=Re%3A%20%5Bfluka-discuss%5D%3A%20isotropic%20sourse%20using%20fortran%20code>>
Date: Thu, 3 Oct 2019 17:29:20 +0800 (GMT+08:00)

Dear fluka experts:

    I want to use fortran code to write an isotropic source,the code like this:

real theta,thi

real ubeam,vbeam,wbeam

theta=flrndm(xdummy)*pi

thi=flrndm(xdummy)*2*pi

ubeam=sin(theta)*cos(thi)

vbeam=sin(theta)*sin(thi)

wbeam=cos(thi)







but this seems not work well,i hope you can help me!

best regards


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Oct 08 2019 - 20:34:27 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 08 2019 - 20:34:42 CEST