QUAD.HKICK and element division

Moderators: michael_borland, soliday

Post Reply
petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

QUAD.HKICK and element division

Post by petrenko » 29 Jan 2010, 13:46

Michael,
There is rather annoying bug in QUAD element with HKICK or VKICK steering used. If you divide the quadrupole using "divide_elements" command then the steering kick value is simply copied to each slice. This results in many-fold increase in overall steering.

Thanks.
Alexey.

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

Re: QUAD.HKICK and element division

Post by michael_borland » 29 Jan 2010, 14:27

Alexey,

Sorry about the bug. It will be fixed in the next release. Meanwhile, if you want a workaround, try

&divide_elements name=*, type=QUAD, divisions=10 &end

&run_setup .. &end

&alter_elements name=*, type=QUAD, item=HKICK, value=0.1, multiplicative=1 &end
&alter_elements name=*, type=QUAD, item=VKICK, value=0.1, multiplicative=1 &end

If you build from source, you can try substituting the attached file for track_data.c

--Michael
Attachments
track_data.c
(222.04 KiB) Downloaded 761 times

petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

Re: QUAD.HKICK and element division

Post by petrenko » 29 Jan 2010, 14:51

Thank you, Michael. I really appreciate your help!

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

Re: QUAD.HKICK and element division

Post by michael_borland » 20 Apr 2010, 13:42

This was fixed in release 23.1.0

--Michael

Post Reply