Page 1 of 1

closed_orbit won't converge with space charge

Posted: 27 Jul 2018, 08:16
by NGleason
I'm trying to find a closed orbit on a ring with space charge. I can track with space charge and find a closed orbit without space charge, but when I have an insert_sceffects command it throws an error that says "error: closed orbit did not converge to better than 4.494233e+307 after 500 iterations (requirement is 1.000000e-12)", even with a total charge of 1e-99. Are these commands incompatible or am I doing something wrong? My .ele and .lte files are attached. Thanks in advance for the help!

Re: closed_orbit won't converge with space charge

Posted: 27 Jul 2018, 10:56
by michael_borland
There is a bug, which is fixed in the attached file if you build from source. Otherwise, the bug will be fixed in the next release.

To be clear, even with this fix, elegant doesn't compute the effect of space charge on the closed orbit. For that, you'll need to perform tracking over many turns.

--Michael