Dear Alessandro,
A set of template User Routines is provided in the $FLUPRO/usermvax directory.
These can be modified by the user to fit his input/output needs. One of these is source.f.
All shared parameters and variables (in COMMON blocks) are located in $FLUPRO/flukapro.
Take a look at this for further information on how to use it.
https://indico.cern.ch/event/334606/contributions/779780/attachments/653355/898394/AdvancedUserRoutines2014.pdf
Folloing the instruction in the manual:
" At the time SOURCE is called, the particle bank FLKSTK is always empty
and the stack pointer NPFLKA has value 0.
The user can load into the FLKSTK stack one or more source particles
at each call: for each particle loaded the pointer must be increased by 1.
The template version of SOURCE loads only one particle: if several
are loaded the following sequence, until the statement CALL SOEVSV not
included, must be repeated once for each particle, possibly inside
a DO loop:
"
after editing the default source.f, your code should look something like this:
...
...
* +-------------------------------------------------------------------*
* Push one source particle to the stack. Note that you could as well
* push many but this way we reserve a maximum amount of space in the
* stack for the secondaries to be generated
* Npflka is the stack counter: of course any time source is called it
* must be =0
...
DO 10 I = 1, N
* N = the number of particles you want to simulate simultaneously
NPFLKA = NPFLKA + 1
...etc...
10 CONTINUE
CALL SOEVSV
...
Hope this helps
Kind regards
Eleftherios
-----------------------
Eleftherios Skordis
Dep. EN/STI, CERN
CH-1211 GENEVA 23
SWITZERLAND
OFFICE: +41-22-7679541
________________________________________
From: Alessandro [alex.calamida2_at_tiscalinet.it]
Sent: 13 May 2019 11:35
To: Eleftherios Skordis; fluka-discuss_at_fluka.org
Subject: Re: [fluka-discuss]: Stack more than one particle in the source subroutine
Dear Eleftherios,
Thanks for the info. So, indeed I can have a source with different
particle. I do not understand wery well how to use this feuture. I have
to use a Do loop before NPFLKA = NPFLKA + 1 untile the end of source?
Do you have any example to show? Because reading the manual I did not
understand how to make thise thing.
Best regards, Alessandro Calamida.
Il 11/05/2019 11:13, Eleftherios Skordis ha scritto:
> Dear Alessandro,
>
> it is indeed possible to emit more than one particle per primary stack of particles using the source routine. It can also be different particles.
>
> The uses can be many and depend on the users needs.
> One example is to produce coincidence summing event by event spectra.
>
> You can read more information in the following section of the manual.
> http://www.fluka.org/content/manuals/online/13.2.19.html
>
> Kind regards
>
> Eleftherios
>
> -----------------------
>
> Eleftherios Skordis
> Dep. EN/STI, CERN
> CH-1211 GENEVA 23
> SWITZERLAND
>
> OFFICE: +41-22-7679541
>
> ________________________________________
> From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Alessandro [alex.calamida2_at_tiscalinet.it]
> Sent: 10 May 2019 17:28
> To: fluka-discuss_at_fluka.org
> Subject: [fluka-discuss]: Stack more than one particle in the source subroutine
>
> Dear FLUKA experts,
>
> I read that is possible to stack more than one particle in the source
> subroutine. What is the use of this feature and it can allow to have a
> source emitting particles of different types?
>
> Best regards, Alessandro Calamida.
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>
>
>
> ---
> Questa email è stata esaminata alla ricerca di virus da AVG.
> http://www.avg.com
>
__________________________________________________________________________
You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
Received on Mon May 13 2019 - 13:16:52 CEST