Re: AW: [fluka-discuss]: problem with MAGFLD routine in new FLUKA release

From: Lev Shekhtman <lshekhtm_at_mail.cern.ch>
Date: Thu, 23 Dec 2021 02:56:47 +0100

Dear Anna, thank you for your reply. In my new code I have this parameter
(see files attached to my first mail.

  SUBROUTINE MAGFLD ( X, Y, Z, T, BTX, BTY, BTZ, B, NREG, IDISC )

this is not the reason of my problem.

Regards, Lev.



On Wed, 22 Dec 2021, Senger, Anna Dr. wrote:

> Dear Lev.
> I had the problem with MAGFLD routine.
> In old version of the FLUKA:
> SUBROUTINE MAGFLD ( X, Y, Z, BTX, BTY, BTZ, B, NREG, IDISC )
> in new:
> SUBROUTINE MAGFLD ( X, Y, Z, T, BTX, BTY, BTZ, B, NREG, IDISC )
>
> There is new parameter T . Maybe this is reason for error.
>
> Regards
> Anna
>
> -----Ursprüngliche Nachricht-----
> Von: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> Im Auftrag von Stefan E. Mueller
> Gesendet: Mittwoch, 22. Dezember 2021 13:11
> An: Lev Shekhtman <lshekhtm_at_mail.cern.ch>
> Cc: fluka-discuss_at_fluka.org
> Betreff: Re: [fluka-discuss]: problem with MAGFLD routine in new FLUKA release
>
> Dear Lev,
>
> it seems to me that FLUKA is complaining about the normalization of the
> BTX, BTY, BTZ values. From the manual (MGNFIELD card, Note2) ):
>
> (I)t is imperative that MAGFLD returns normalised values of
> BTX, BTY and BTZ such that the sum of their squares is = 1.0
> IN DOUBLE PRECISION.
>
> Apparently, for your values this condition is not fulfilled (while it is
> the case for the pre-defined UMGFLD, VMGFLD, WMGFLD values in the
> CMEMFL-common, so if you have those values override your BTX, BTY, BTZ
> this will of course work).
>
> Cheers,
>
> Stefan
>
> --
> Stefan E. Mueller
> Department of Information Services and Computing - Computational Science
> and Institute of Radiation Physics
> Helmholtz-Zentrum Dresden-Rossendorf
> Tel: +49 (0351) 260 3847
> Stefan.Mueller_at_hzdr.de
> http://www.hzdr.de
>
> Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
> Vereinsregister: VR 1693 beim Amtsgericht Dresden
>
> On Tue, 2 Nov 2021, Lev Shekhtman wrote:
>
>> Dear FLUKA experts, I got a problem with new FLUKA release. My MAGFLD routine
>> does not work any more. The old and new versions of MAGFLD are attached to
>> this mail. The old version was working properly with 2018, 2019 and 2020
>> releases. In the last release there are the following lines added:
>>
>> BTX = UMGFLD
>> BTY = VMGFLD
>> BTZ = WMGFLD
>> B = BIFUNI
>>
>> that overwrite my field. If I remove them I get the following error:
>>
>> Abort called from MAGNEW reason U/V/WMGCUR UNNORMALIZED !! Run stopped!
>> STOP U/V/WMGCUR UNNORMALIZED !!
>>
>> The same I get if I put my code after these lines. Please help.
>>
>> With best regards, Lev Shekhtman.
>>
>>
>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Dec 23 2021 - 05:29:19 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 23 2021 - 05:32:00 CET