Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyAT Distinguish between a sector bending magnet and a rectangular bending magnet #725

Open
tfs563 opened this issue Dec 20, 2023 · 1 comment

Comments

@tfs563
Copy link

tfs563 commented Dec 20, 2023

Hi all,

I'm trying to figure out if the Dipole element has a way to identify a bending magnet as either a rectangular magnet or a sector magnet. I looked into the Dipole element within the at.lattice.element documentation website, but I'm not sure which parameters or keyword arguments would need to be included/changed to make the magnet one or the other. My first thoughts were the EntranceAngle and ExitAnfgle arguments could do this, but, to me, it seems like it would change the angle of the incoming beam?

Anyway, some help in figuring out how to do this would be much appreciated!

@lfarv
Copy link
Contributor

lfarv commented Dec 20, 2023

Hello @tfs563,

What defines the dipole as sector or rectangular is the pass method. The "geometrical" description of the magnet as length, bending angle and entrance/exit angles is the same for both. There is a short description in the documentation of passmethods:

"
bending magnet passmethods
For bending magnet passmethods, the term “rectangular” refers to the layout of the magnetic field, not to the shape of the magnet or to the angle of the pole faces.

In a “sector” magnet, the magnetic axis is an arc of a circle following the design trajectory,
In a “rectangular” magnet, the magnetic axis is a straight line (ex.: off-axis quadrupole).
In case of a pure dipole (uniform magnetic field), both are equivalent, so one can use any of the available methods. They give identical results.

"

But I agree it's missing in the documentation of dipole elements.

Note that there are only 2 passmethods for rectangular magnets: ExactRectangularBendPass and BndStrMPoleSymplectic4Pass (undocumented)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants