[fluka-discuss]: Re: ´ð¸´: [fluka-discuss]: source.f question

From: Stefan Roesler <sroesler_at_mail.cern.ch>
Date: Wed, 26 Mar 2014 08:23:02 +0100

Dear Zhen

For sampling a random direction I suggest that you use the FLUKA routine
RACO. Please see p.25 in

https://www.fluka.org/free_download/course/triumf2012/Lectures/AdvancedSources2012.pdf

Cheers
Stefan


On Tue, 25 Mar 2014, ?? wrote:

> dear stefan
> thank you very much?the question is my simulation source is spectrum?so i must use source.f?if i use the source.f?the BEAMPOS card CYLI-VOL is invalid?so i must write the
> * Particle coordinates
> r = 0.0002d0 * sqrt(FLRNDM(dummy)) + 0.025d0
> alpha = TWOTWO * PIPIPI * (FLRNDM(dummy))
> XFLK (NPFLKA) = r * COS (alpha)
> YFLK (NPFLKA) = r * SIN (alpha)
> ZFLK (NPFLKA) = - 0.15d0 + FLRNDM(dummy) * 0.3d0
> and my source is isotropy?and how i set the Cosines (tx,ty,tz)?i see a example in follow ?but i don?t known the mean?can you help me?thank you very much
>
>
> ___________________* ZENMAX = PIPIPI
> * AZI = TWOTWO * PIPIPI * (FLRNDM(dummy))
> * CZMAX = COS(ZENMAX)
> * CZEN = FLRNDM(dummy) * (ONEONE - CZMAX) + CZMAX
> * SZEN = SQRT((ONEONE - CZEN)*(ONEONE + CZEN))
> * TXFLK (NPFLKA) = SZEN * COS(AZI)
> * TYFLK (NPFLKA) = SZEN*SIN(AZI)
> * TZFLK (NPFLKA) = - CZEN
> cheers
> zhen_____________________
>
>
> ________________________________________
> ???: Stefan Roesler [sroesler_at_mail.cern.ch]
> ????: 2014?3?24? 20:18
> ?: ??
> Cc: fluka-discuss_at_fluka.org
> ??: Re: [fluka-discuss]: source.f question
>
> Could you please check if a cylindrical source definition via the
> BEAMPOS card would work for you? See p.8 in
>
> https://www.fluka.org/free_download/course/triumf2012/Lectures/AdvancedSources2012.pdf
>
> Cheers
> Stefan
>
> On Mon, 24 Mar 2014, ?? wrote:
>
>>
>>
>>
>> ____________________________________________________________________________________________
>> ???: ??
>> ????: 2014?3?18? 20:40
>> ?:owner-fluka-discuss_at_mi.infn.it
>> ??: ??: source.f question
>>
>>
>> ____________________________________________________________________________________________
>> ???: ??
>> ????: 2014?3?18? 20:27
>> ?:marco.mauri_at_cern.ch
>> ??: source.f question
>>
>> Dear FLUKA experts,I 'd like to ask your a question,[58%259LT1OAPS9DH_at_%6062P3NNJ.jpg]
>> [58%259LT1OAPS9DH_at_%6062P3NNJ.jpg] i want to sample the coordinates of the source particle
>> in ring cylinder,the radius from 0.5cm to 0.6cm, the height is 0.45cm.and the source
>> is isotropy?how i set the
>> Particle coordinates and Cosines (tx,ty,tz) in the source.f ?
>> the second question sample the coordinates of the source particle in cylindrical surface,
>> the radius is 0.5cm,the height is 0.45cm.
>> the third question is can your explain this statement.
>> ZENMAX = PIPIPI
>> AZI = TWOTWO * PIPIPI * (FLRNDM(dummy))
>> CZMAX = COS(ZENMAX)
>> CZEN = FLRNDM(dummy) * (ONEONE - CZMAX) + CZMAX
>> SZEN = SQRT((ONEONE - CZEN)*(ONEONE + CZEN))
>> TXFLK (NPFLKA) = SZEN * COS(AZI)
>> TYFLK (NPFLKA) = SZEN*SIN(AZI)
>> TZFLK (NPFLKA) = - CZEN
>> thank you very much.
>> [s?func=mbox:getComposeData&sid=XAeafFWGOBrvZgKfBoGGViUlVbzWzrjg&composeId=XAuazFWGDXivZgYN
>> PWGGSktaAxcpjMkg&attachId=1]
>> Kind regards, caozhen
>>
>>
>>
Received on Wed Mar 26 2014 - 09:31:45 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 26 2014 - 09:31:46 CET