Re: [fluka-discuss]: Unable to change beam direction directly in source.f

From: Lars Fredrik Fjæra <lfj049_at_student.uib.no>
Date: Tue, 19 Jan 2016 12:31:21 +0100

Thank you!

I failed to normalize the cosines, which you would have seen if I had
included the source-file, so sorry about that. Fixed the normalization, and
it worked.
Thank you again.

Best regards,
---
*Lars Fredrik Fjæra*
On Tue, Jan 19, 2016 at 9:42 AM, Santana, Mario <msantana_at_slac.stanford.edu>
wrote:
> Lars,
>
> If things work fine only if you set TXFLK (NPFLKA) = UBEAM, …, it may be
> so because you are actually not using the source routine, and FLUKA is just
> using the data of BEAMPOS card. Are you sure that you called the routine
> with the SOURCE card and that you linked/compiled?
> Can you add some print statement to source.f to make sure that the routine
> is being used?
>
> -Mario
>
> From: <owner-fluka-discuss_at_mi.infn.it> on behalf of Lars Fredrik Fjæra <
> lfj049_at_student.uib.no>
> Date: Monday, January 18, 2016 at 8:35 PM
> To: fluka-discuss <fluka-discuss_at_fluka.org>
> Subject: [fluka-discuss]: Unable to change beam direction directly in
> source.f
>
> Dear Fluka users
>
> I'm having trouble changing the beam direction using
> TXFLK  (NPFLKA)
> TYFLK  (NPFLKA)
> TZFLK  (NPFLKA)
> in the source routine.
>
> If I have the source routine read the directions from BEAMPOS card in
> Fluka using e,g TXFLK (NPFLKA) = UBEAM, it works perfectly.
> But if I try to define TXFLK (NPFLKA) as for example -1 directly in the
> routine, nothing happens. With nothing, I mean that the beam misses my
> target.
>
> I've tried
> TXFLK  (NPFLKA) = -1
> TXFLK  (NPFLKA) = -1.0
> TXFLK  (NPFLKA) = -ONEONE
> in hope that it should make any difference, but unfortunately not. I've
> also tried to remove the BEAMPOS card completely in Fluka, but the same
> results were achieved.
> Any suggestions?
>
> Thank you.
>
> Best regards,
> ---
> *Lars Fredrik Fjæra*
>
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Jan 19 2016 - 13:48:03 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 19 2016 - 13:48:06 CET