[fluka-discuss]: Re: How to avoid random sampling when using SOURCE subroutine?

From: <rprakash_at_rrcat.gov.in>
Date: Sun, 18 Jul 2021 11:39:10 +0530

I was able to find the problem and correct it. My SOURCE file had a
point declared N as a random number. I changed it to "N = N + 1".
Thanks!

Ram


On 18-07-2021 11:06, rprakash_at_rrcat.gov.in wrote:
> Part of SOURCE where I assign particle properties is following,
>
> U = UI(N)
> V = VI(N)
> W = SQRT (ONEONE - U**2 - V**2)
> UVW = SQRT(U**2 + V**2 + W**2)
> TXFLK (NPFLKA) = U / UVW
> TYFLK (NPFLKA) = V / UVW
> TZFLK (NPFLKA) = W / UVW
> * Polarization cosines:
> TXPOL (NPFLKA) = -TWOTWO
> TYPOL (NPFLKA) = +ZERZER
> TZPOL (NPFLKA) = +ZERZER
> * Particle coordinates
> XFLK (NPFLKA) = XI(N)
> YFLK (NPFLKA) = YI(N)
>
> ZFLK (NPFLKA) = ZI(N)
>
>
> Here, XI,YI,ZI, UI and VI are the arrays where data has been stored.
>
>
>
> On 18-07-2021 11:01, rprakash_at_rrcat.gov.in wrote:
>> Dear Sir,
>> I am beginner in Fluka.I am trying to use SOURCE subroutine to define
>> my beam. I am able to read a data file correctly from within the
>> SOURCE file and stored all the data in different arrays. But when I
>> assign the particle properties e.g. energy, position etc., I can see
>> that the Fluka does not take the values from the array one by one.
>> Instead, it samples random element of the array. How to avoid random
>> sampling?
>>
>>
>> Thanks!
>>
>> Ram Prakash

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Sun Jul 18 2021 - 09:32:59 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 18 2021 - 09:33:01 CEST