Page 1 of 1

Tracking backwards through a cavity

Posted: 04 Nov 2014, 02:35
by MDP
Der elegant users and experts,

We use elegant to match the beam in our FEL injector using the following procedure: The beam sizes are measured at a position downstream the first accelerating module (which increases the beam energy from 5 MeV to 160 MeV). We use then elegant to calculate the actual Twiss functions at the gun in order to have the correct start values for the matching. The result of the matching can be checked again using the screens downstream the first module. The problems we had occurred when we tried to track the particles backwards through the cavity. I think that the cavity focusing, which is strong at this position, makes the problems. We bypassed this problem and run a match for the Twiss functions at the gun. Nevertheless, I was wondering if there is maybe a possibility to track backward through cavities obtaining the correct Twiss functions.

Thanks for your help!
Best, Matthias

Re: Tracking backwards through a cavity

Posted: 04 Nov 2014, 09:48
by michael_borland
Matthias,

This should work as long as you flip the sign of the voltage on all the rf cavities. Please see attached example.

--Michael

Re: Tracking backwards through a cavity

Posted: 07 Nov 2014, 09:00
by MDP
Hi Michael,

thanks for your help! It works perfectly.

Best,
Matthias