Simulation of a clystron failure and misfocusing

Moderators: cyao, michael_borland

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

Simulation of a clystron failure and misfocusing

Post by MDP » 02 Apr 2014, 10:33

Dear elegant users and experts,

I want to simulate a clystron failure in a linac including the misfocusing in the following quads.

The idea was to run these simulations using the correct fiducialization in the run_control command. I can see different Twiss functions at the end of the beam line thus the focusing seems to be different, but the beam center energy in the *cen file is still the same.

I would be very grateful if you could help me with this problem because I'm not sure if I chose the right settings for these kind of simulations and I don't have any expirience with the fiducialization option in the run_control command.

The elegant files are attached to this post.

Thank you in advance!
Best, Matthias
Attachments
FLASH1.lte
(36.95 KiB) Downloaded 155 times
FLASH1.ele
(1.37 KiB) Downloaded 150 times

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

Re: Simulation of a clystron failure and misfocusing

Post by michael_borland » 02 Apr 2014, 10:55

Matthias,

To use fiducialization, you need to track at least two steps. The first step fiducializes, while the second tracks the real beam. I modified your .ele file to reflect this.

The energy offset will appear not in pCentral, which is the reference momentum, but in Cdelta = (<p>-pCentral)/pCentral.

Also, since the energy deviations are so large it is best to use KQUAD and CSBEND in place of QUAD and SBEN. The modeling for KQUAD and CSBEND is good to all orders in energy deviation, whereas QUAD (SBEN) is only good to 3rd (2nd) order. I've attached a modified file. You may want to play with the N_KICKS values to ensure that the results are converged.

--Michael
Attachments
FLASH1.lte
Modified lattice file.
(38.48 KiB) Downloaded 161 times
FLASH1.ele
Modified command file.
(1.58 KiB) Downloaded 159 times

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

Re: Simulation of a clystron failure and misfocusing

Post by MDP » 03 Apr 2014, 01:40

Dear Michael,

thank you for your answer and for the modified files! I have one more question concerning the number of steps. You wrote that I need at least 2 steps but in the modified file you wrote:

&run_control
n_indices = 1,
reset_rf_for_each_step = 0
first_is_fiducial = 1
n_steps = 1
&end

I guess it has to be n_steps = 2 or did I misunderstand this point?

Best,
Matthias

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

Re: Simulation of a clystron failure and misfocusing

Post by michael_borland » 03 Apr 2014, 08:08

Matthais,

My mistake. I forgot that when fiducialization is invoked, elegant automatically adds a step without the user asking.

--Michael

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

Re: Simulation of a clystron failure and misfocusing

Post by MDP » 03 Apr 2014, 08:24

Dear Michael,

thanks for you help!

Best, Matthias

Post Reply