bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
12 stars 15 forks source link

CONVERSION TO PTC NOT IMPLEMENTED FOR ELEMENTS OF TYPE E_Gun, `STOP 666` #1146

Closed ChristopherMayes closed 2 months ago

ChristopherMayes commented 2 months ago

Asking Tao to plot tt.166 through an e_gun will stop the program:

tao -lat lat.bmad -plot tao_plot.init
[MESSAGE | 2024-AUG-15 09:12:52] tao_init:
    OpenMP active with number of threads: 12
[MESSAGE | 2024-AUG-15 09:12:52] bmad_parser:
    Lattice parse time(min): 0.00
tao_single_track: particle lost in single particle tracking at branch>>element 1>>2: ECOLLIMATOR1  [s =     9.00]
tao_single_track: particle lost in single particle tracking at branch>>element 1>>2: ECOLLIMATOR1  [s =     9.00]
[FATAL | 2024-AUG-15 09:12:52] ele_to_fibre:
    CONVERSION TO PTC NOT IMPLEMENTED FOR ELEMENTS OF TYPE E_Gun
    FOR ELEMENT: E_GUN1
[FATAL | 2024-AUG-15 09:12:52] ele_to_ptc_magnetic_an_bn:
    UNKNOWN ELEMENT CLASS: E_Gun
    FOR ELEMENT: E_GUN1

  THE MAGNET

   --->   CROTTE         

  IS NOT PERMITTED 
STOP 666

Files here: error.zip

DavidSagan commented 2 months ago

@ChristopherMayes I don't see how PTC would be able to handle an e_gun. Even non-time Runge_Kutta tracking cannot be used. One suggestion would be for you to write Etienne (and CC me) to see if he has any ideas.

ChristopherMayes commented 2 months ago

I don't need PTC to do this, but I don't want the program to stop.

DavidSagan commented 2 months ago

OK I will work on a fix. This will have to be coordinated with Etienne...

DavidSagan commented 2 months ago

Actually I don't have to coordinate. This can be handled in the interface.

DavidSagan commented 2 months ago

Fixed.