beam size match
Moderators: cyao, michael_borland
beam size match
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!
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: beam size match
You would use
See the manual page for the optimization_setup command for information about the "segt" function.
--Michael
Code: Select all
&optimization_term
term = "Sx .002 1e-5 segt"
&end
&optimization_term
term = "Sy .002 1e-5 segt"
&end
--Michael
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: beam size match
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
--Michael