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 14:32:03 +0200

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 - 16:14:02 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 05 2016 - 16:14:13 CEST