Wien filter

Moderators: cyao, michael_borland

Post Reply
EsraaKh
Posts: 5
Joined: 27 Aug 2024, 08:59

Wien filter

Post by EsraaKh » 02 Dec 2025, 04:53

Hallo Michael

Would you explain how to insert in the accelerator beam line addtional element - Wien filter in the Elegant simulation program?
Would you also provide an example?
Let's assume in units of meters that the x-direction is horizontal, the y-direction is vertical, and the z-direction is the direction of the moving beam.
The Wien filter is defined as a box containing homogeneous electrical Ex and magnetic By fields independent of the z coordinate.

Best regards
Esraa

michael_borland
Posts: 2032
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Wien filter

Post by michael_borland » 15 Dec 2025, 18:57

Esraa,

There's no built-in way to do this in elegant. I used ChatGPT to write a python script that can be used with the SCRIPT element to insert a Wien filter into a beamline.

See the attached files.

--Michael
Attachments
WienFilter.tar.gz
(3.92 KiB) Downloaded 7 times

Post Reply