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