Page 1 of 1

QUAD.HKICK and element division

Posted: 29 Jan 2010, 13:46
by petrenko
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.

Re: QUAD.HKICK and element division

Posted: 29 Jan 2010, 14:27
by michael_borland
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

Re: QUAD.HKICK and element division

Posted: 29 Jan 2010, 14:51
by petrenko
Thank you, Michael. I really appreciate your help!

Re: QUAD.HKICK and element division

Posted: 20 Apr 2010, 13:42
by michael_borland
This was fixed in release 23.1.0

--Michael