Re: Re: [fluka-discuss]: How to set up a time-dependent source and scoring ?

From: Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
Date: Wed, 5 Oct 2016 19:11:52 +0200

Dear Bo Yang,

actually ATRACK is the absolute time. If you do not use or touch the
source.f user routine, the clock is set at zero when the primary electron
starts from its position (as Giuseppe already wrote), so at the photon
scoring stage ATRACK will represent the time that passed since the
electron transport start. If you implement in source.f a time distribution
centered at zero (as the one suggested by Giuseppe), ATRACK will no longer
give the time since the respective electron start, rather the time since
the center of the time distribution applied to the primary electrons.

Best regards

Francesco

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

On Wed, 5 Oct 2016, 杨博 wrote:

> Dear Giuseppe and Francesco,
>
> Thanks for your comments.
> I have another question about the ATRACK variable which represents the age of particle. If i try to
> obtain the absolute time distribution of generated photons into the detector, the time when the photon
> is generated is needed and how should i get this "time" ?
>
> Best regards
>
> Bo Yang
>> -----原始邮件-----
>> 发件人: "Francesco Cerutti" <Francesco.Cerutti_at_cern.ch>
>> 发送时间: 2016-10-05 20:32:03 (星期三)
>> 收件人: "Giuseppe Battistoni" <giuseppe.battistoni_at_mi.infn.it>
>> 抄送: "杨博" <b-yang12_at_mails.tsinghua.edu.cn>, "FLUKA discussion" <fluka-discuss_at_fluka.org>
>> 主题: Re: [fluka-discuss]: How to set up a time-dependent source and scoring ?
>>
>>
>> Hi,
>>
>> concerning the second half of the question (time dependent scoring), there
>> is the TCQUENCH card that limits a USRBIN scoring until a given time
>> value, otherwise you can code your own filter in comscw.f (or fluscw.f if
>> it applies) using the ATRACK variable available in (TRACKR) (to be
>> INCLUDEd in fluscw.f).
>>
>> Kind regards
>>
>> Francesco
>>
>> **************************************************
>> Francesco Cerutti
>> CERN-EN/STI
>> CH-1211 Geneva 23
>> Switzerland
>> tel. ++41 22 7678962
>> fax ++41 22 7668854
>>
>> On Wed, 5 Oct 2016, Giuseppe Battistoni wrote:
>>
>>> Yes, you can.
>>> The time of primary in assigned to 0 by default.
>>> In fact you can see in source.f the following line:
>>> AGESTK (NPFLKA) = +ZERZER
>>>
>>> Now, for instance, you can replace that line with the following
>>> ones:
>>>
>>> CALL FLNRRN (RGAUSS)
>>> AGESTK (NPFLKA) = RGAUSS*1.0D-12
>>>
>>> The call to FLNRRN returns a pseudo-random number RGAUSS sampled
>>> from a normal gaussian distribution
>>>
>>> In such a way you the time of injection of your
>>> primaries will be normally distributed with
>>> mean = 0 and sigma = 1 ps
>>>
>>> Best
>>> Giuseppe Battistoni
>>>
>>> On 05/10/16 05:54, 杨博 wrote:
>>>> Dear Fluka experts,
>>>>
>>>> I am doing a simulation where relativistic electrons interact
>>>> with the high-Z target.
>>>>
>>>> is it possible to use the source.f Routine to define a electron source
>>>> with a time distribution of Gauss function (e.g.FWHM= 1
>>>> picosecond) and then score the time distribution of generated photons
>>>> into the detector?
>>>>
>>>> I check the FLUKA Manual but can not find a possible solution. Any
>>>> suggestion would be appreciated. Thank you
>>>>
>>>> Best Regards
>>>>
>>>> Bo Yang
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> INFN Milano
>>> via Celoria 16, 20133 Milano
>>> tel: +39 02 50317307
>>> fax: +39 02 50317617
>>>
>>> __________________________________________________________________________
>>> You can manage unsubscription from this mailing list at
>>> https://www.fluka.org/fluka.php?id=acc_info
>>>
>>>
>>>
>
>
>
>
>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Oct 05 2016 - 20:50:18 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 05 2016 - 20:50:20 CEST