bending element's field_map

https://www.dacm-logiciels.fr/tracewin
Post Reply
China1027577463
Novice
Novice
Posts: 1
Joined: Mon 21 Oct 2024 04:06
Country:
China (cn)
China

bending element's field_map

Post by China1027577463 »

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 420 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
User avatar
FranceDidier
Administrator
Administrator
Posts: 984
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: bending element's field_map

Post by FranceDidier »

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
Post Reply