Re: [fluka-discuss]: GAUSSIAN RANDOM SAMPLING

From: Luigi Salvatore Esposito <luigi.salvatore.esposito_at_cern.ch>
Date: Tue, 16 Jan 2018 12:30:53 +0000

Dear Riya Day,
it’s not clear what is the problem. The code snippet you sent should compile and run.

But it’s not clear which position distribution you what to generate….

Best, luigi



> On 16 Jan 2018, at 12:26, riyadey_at_barc.gov.in wrote:
>
> Dear Experts,
>
> I was using Gaussian random numbers by calling FLNRRN(RGAUSS)and then I put y = RGAUSS. Suppose I am running the program for 1000(lets say) histories, and after printing y values,I get 1000 points which are having Gaussian distribution. Now I want to declare each point as y coordinate. So, to do this I define y = YFLK(NPFLKA).
> This time the program is not running.
>
> Please help me to fix this issue.
>
> * particle coordinates
>
> CALL FLNRRN(RGAUSS)
> x =100
> y= RGAUSS+100.0
> z= RGAUSS+200.0
> XFLK (NPFLKA)=x
> YFLK (NPFLKA)=y
> ZFLK (NPFLKA)=z
> WRITE(*,*)XFLK (NPFLKA),YFLK (NPFLKA),ZFLK (NPFLKA)
>
>
> With regards,
> Riya Dey
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>

(Ƨځ맲r*'~&x%Zm 0nߖi'iw
Received on Tue Jan 16 2018 - 14:49:31 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 16 2018 - 14:49:33 CET