Magnet with Multipoles #618
Replies: 2 comments 1 reply
-
You can normally extend the order to any value but, in setattr there is a check to ensure polynomA/B and MaxOrder are consistent so setting them sequentially may fail. |
Beta Was this translation helpful? Give feedback.
-
In fact you can just set things in this order: This is cleaner than rebuilding the element, up to you! |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I am trying to add multipolar components to a sextupole. Is there any suggestion on how to do it on pyat ?
I tried increasing the length of the polynoms and setting MaxOrder to a value bigger than 3.
However, an error appears when trying to change the MaxOrder value :
Could I change the class from sextupole to a multipole ?
Could I force to change MaxOrder ?
As a work around I would guess I can add a thin multipole but it will change the number of elements in my ring ( i.e. N more elements for N magnets with multipoles).
Beta Was this translation helpful? Give feedback.
All reactions