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

How can I pass the deviation like misalignment to the AT? #111

Closed
windlessness opened this issue Apr 23, 2019 · 3 comments
Closed

How can I pass the deviation like misalignment to the AT? #111

windlessness opened this issue Apr 23, 2019 · 3 comments

Comments

@windlessness
Copy link

windlessness commented Apr 23, 2019

Hello!

I want to create some deviation in the ring' magnetic field as I am going to learn about the beam's closed orbit correction.

However, I founded that the deviation in PolynomA[0] of dipole , PolynomB[0] and PolynomA[0] of quadrupole have not been considered during the physical calculation.

The orbit haven't change though I add some deviation in PolynomA/B.

I wonder if my pass method has a great influence on it.

My dipole's pass method is BndMPoleSymplectic4E2Pass, and quadrupole's is QuadLinearPass

I am grateful and looking forward to the answer as a beginner of AT!

@windlessness windlessness changed the title How can I How can I pass the deviation like misalignment to the AT? Apr 23, 2019
@JonasKallestrup
Copy link
Contributor

Hi,
Do you use the Matlab version of AT or the new (under development?) python version (pyAT)?

If Matlab:
The (in my opinion) best way to make a closed orbit distortion is by taking a corrector in the lattice (using atcorrector to create the element), and then applying some kick. This is done by inserting some kick-angle in the .KickAngle field of the corrector element.
A more advanced method would be to shift one of the quadrupole elements (using atshiftelem).

@carmignani
Copy link
Member

Hello,
PolynomA and PolynomB fields are ignored by the pass method QuadLinearPass. You should use StrMPoleSymplectic4Pass.

Jonas, you can add the field KickAngle to dipoles and multipoles too, you don't need to add a thin corrector element.

@windlessness
Copy link
Author

windlessness commented Apr 23, 2019

Thanks a lot, Mr. Kallestrup and Mr. Carmignani!

My environment is pyAT. A senior in my lab told me that directly changing the PolynomA and PolynomB fields seem to work in Matlab AT, instead of changing the K value of dipole or quadrupole.

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

3 participants