Page 1 of 1

momentum aperture bug for linacs

Posted: 27 Aug 2011, 13:34
by michael_borland
A bug was reported by Norio Nakamura (KEK) for the momentum_aperture command. Basically, if acceleration or deceleration is involved (e.g., RFCA with CHANGE_P0=1), the results are incorrect. It is unclear right now when this bug was introduced.

A workaround is to insert ENERGY elements to force the central momentum to the correct, fixed values.

For those who build from source, the corrected code is attached. This will appear in the next release in a few weeks.

--Michael

Re: momentum aperture bug for linacs

Posted: 29 Aug 2011, 08:57
by michael_borland
I found a similar bug in the Touschek scattering simulation for linacs. Corrected code is attached.

--Michael

Re: momentum aperture bug for linacs

Posted: 29 Aug 2011, 17:22
by michael_borland
michael_borland wrote:I found a similar bug in the Touschek scattering simulation for linacs. Corrected code is attached.

--Michael
Actually, this wasn't so much a bug as a missing feature in the released version.

--Michael

Re: momentum aperture bug for linacs

Posted: 07 Sep 2011, 14:30
by michael_borland
These bugs are fixed in version 24.1.

--Michael