beam size match

Moderators: cyao, michael_borland

Post Reply
QJohn
Posts: 19
Joined: 08 Dec 2015, 10:49

beam size match

Post by QJohn » 25 Dec 2015, 09:45

Hi, Michael, I have four quadrupoles in my beam line. If I want to constraint the beam size <2mm at last of the beamline by adjusting the four quadrupoles' strength. How to express the rpn equation? Thank you very much!

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

Re: beam size match

Post by michael_borland » 06 Jan 2016, 18:14

You would use

Code: Select all

&optimization_term
term = "Sx .002 1e-5 segt"
&end
&optimization_term
term = "Sy .002 1e-5 segt"
&end
See the manual page for the optimization_setup command for information about the "segt" function.

--Michael

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

Re: beam size match

Post by michael_borland » 06 Jan 2016, 18:17

This assumes you are doing the optimization using particle tracking, which isn't generally necessary. The best method is to match the beta functions. Check out the betaMatching example in the elegant examples file.

--Michael

Post Reply