Dear Didier,
I have three quadrupole magnets and a deflecting magnet, the magnetic field of the deflecting magnet is imported with field_map, after the electron beam comes out of the deflecting magnet and then enters the drift section, I want to match it to a certain size at a certain position in the end, for example, the radius of the beam spot is 0.1mm. however, I can see that this way of doing the trajectory is not in the direction of the movement of the particles, but rather along the z-axis. I was wondering if I could use the superpose_map command to make the trajectory follow the s-direction, but after using superpose_map the direction of the magnetic field also changes, so it's not the actual direction of the magnetic field.
DRIFT 100 40
MATCH_FAM_GRAD 4 1
QUAD 40 0.8 4
DRIFT 50 40
MATCH_FAM_GRAD 4 2
QUAD 40 -0.80 400
DRIFT 50 40
MATCH_FAM_GRAD 4 3
QUAD 40 0.80 400
FIELD_MAP 0070 400 0 400 1.0 0.0 0 0 dipole
REPEAT_ELE 60 1
DRIFT 10 500
SET_SIZE 100 0.10 0.10
DRIFT 0 400
end
Thanks,Jiangrui
bending element's field_map
-
- Novice
- Posts: 1
- Joined: Mon 21 Oct 2024 04:06
- Country:
China (cn)
Re: bending element's field_map
Dear Jiangrui,
If you want the central trajectory to follow the direction s, you must use the SUPERPOSE_MAP_OUT command, see the help associated with this command and also the example name field_map.dipole.ini
Regards,
Didier
If you want the central trajectory to follow the direction s, you must use the SUPERPOSE_MAP_OUT command, see the help associated with this command and also the example name field_map.dipole.ini
Regards,
Didier