[fluka-discuss]: problems of adding magnetic field to a specific region

From: <yangt_at_ihep.ac.cn>
Date: Fri, 6 Dec 2019 13:20:23 +0800 (GMT+08:00)

Dear FLUKA experts and users,




Recently, I want to add a magnetic field to a certain region, I copy the main code from the advanced course website,however, I find it doesn't apply the field successfully. I submitted the problems several days ago, but yet I don't receive some suggestions. After submitting, I have checked the code carefully for several days, and I can't find the problem.

the code of applying to the region is as follows:

         CALL GEON2R("pipenei2",pipe2,IERR)
        CALL GEON2R("pipenei4",pipe4,IERR)
          WRITE (LUNOUT,*) ' "pipenei2" region is number: ',pipe2
         WRITE (LUNOUT,*) ' "pipenei4" region is number: ',pipe4

after running, fluka reports errors:

 "pipenei2" region is number: 2.3715151000379834E-322
  "pipenei4" region is number: 2.4703282292062327E-322
 Abort called from MAGFLD reason NO MAGNETIC FIELD IN THIS REGION! Run stopped!
 STOP NO MAGNETIC FIELD IN THIS REGION!
so the magnetic field is not applied successfully.

I don't know where the problem is.

attachments are the input file and the magnetic subroutine file.

any suggestion is appreciable!

best regards!

Yang.



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Fri Dec 06 2019 - 07:27:57 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 06 2019 - 07:28:01 CET