Re: circular beam

From: Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
Date: Mon, 17 Jan 2011 14:05:27 +0100

Hi,

I would like just to mention that, if one does not need the source routine
for other purposes, a circular beam can easily be input through the BEAM
card, with WHAT(6)=-1.0, WHAT(4)=r and WHAT(5)=0.0

Cheers

Francesco

**************************************************
Francesco Cerutti
CERN-EN/STI
CH-1211 Geneva 23
Switzerland
tel. ++41 22 7678962
fax ++41 22 7668854

On Sun, 16 Jan 2011, Hamideh Jalali wrote:

> Dear FLUKA experts
>
> I'm going to define a circular beam in x-y plane ( a beam which
> travels around a circle of radius r and center (0,0,0)). Is it correct
> if I follow these steps:
>
> In BEAMPOS card:
> WHAT(1)-WHAT(3):x,y,z coordinates of the center of the
> circle(XBEAM-YBEAM-ZBEAM)
> WHAT(4): radius of the circle (UBEAM)
>
> Then I modify source.f by adding these command:
>
> r = UBEAM * (FLRNDM(dummy)
> alpha = 2 * PI* (FLRNDM(dummy))
>
>
> XFLK (NPFLKA) = XBEAM + r * COS(alpha)
> YFLK (NPFLKA) = YBEAM + r * SIN(alpha)
> ZFLK (NPFLKA) = ZBEAM
>
> I would be grateful for your help.
> Hamideh
>
>
Received on Mon Jan 17 2011 - 16:55:33 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 17 2011 - 16:55:34 CET