Page 1 of 1

bending element's field_map

Posted: Fri 6 Dec 2024 17:52
by 1027577463
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.
微信图片_20241207004829.png
微信图片_20241207004829.png (16.54 KiB) Viewed 421 times
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

Re: bending element's field_map

Posted: Tue 10 Dec 2024 13:36
by Didier
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