bending element's field_map
Posted: Fri 6 Dec 2024 17:52
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
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