Tracking backwards through a cavity

Moderators: cyao, michael_borland

Post Reply
MDP
Posts: 25
Joined: 02 Jul 2010, 07:33
Location: DESY Hamburg/Germany

Tracking backwards through a cavity

Post by MDP » 04 Nov 2014, 02:35

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

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

Re: Tracking backwards through a cavity

Post by michael_borland » 04 Nov 2014, 09:48

Matthias,

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

--Michael
Attachments
rfBackTracking.zip
(1.02 KiB) Downloaded 220 times

MDP
Posts: 25
Joined: 02 Jul 2010, 07:33
Location: DESY Hamburg/Germany

Re: Tracking backwards through a cavity

Post by MDP » 07 Nov 2014, 09:00

Hi Michael,

thanks for your help! It works perfectly.

Best,
Matthias

Post Reply