Hello,
You could exploit the "usrmed" user routine (manual section 13.2.28).
If activated, the routine is called anytime a particle is transported in the selected material.
In the routine you should set the importance of the particle to be killed to zero.
It should be something along the line:
if (ij .eq. 1) then
WEE = ZERZER
endif
where "ij" is the particle code, "1" is the code for protons, WEE is the particle importance, and ZERZER is the fluka-predefined variable for double precision zero.
To activate the call to usermed you need a card MAT-PROP with what(1) larger than 0.0 to activate the call, what(4) equal to the material name, and sdum set to USERDIRE.
Be careful that in this way the call will be made for any region assigned to the specified material, not just the region you are interested into. You could add a check on the region in the user routine to avoid this type of inconvenience.
Cheers,
Roberto
________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Mitja Majerle [majerle_at_ujf.cas.cz]
Sent: 26 November 2016 23:49
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Black hole material for only one type of particles
Dear FLUKA experts,
at some point in my geometry I would like to 'kill' protons and only
protons, other particles should be transported further. My intention is
to separate their contribution.
How do I do this ? If I insert a thin layer of BLACK HOLE material, I
kill all particles, but I would like to kill only protons. In MCNPX I
can do this with imp:h=0 imp:n=1, and in FLUKA ?
Thank you,
Mitja Majerle, Nuclear Physics Institute of the Czech Academy of Sciences
__________________________________________________________________________
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¬c_info
Received on Sun Nov 27 2016 - 11:31:56 CET