Page 1 of 1

horizontal deflection

Posted: 07 May 2013, 03:09
by olivia.karlberg
Dear Michael,

I have a question about horizontal deflection.

At the end of a linac section I have a deflecting cavity (RFDF-element, used in the same manner as in the elegant example folder) and depending on the tilt, I can deflect the beam in either x or y direction (so far it’s fine).
I’m interested in the kick caused by transverse wakes (same in x and y), so if I introduce a misalignment in the cavity section before the deflector and then deflect the beam in the other direction I should be able to see the kick from the wakes on the beam tail.
This works perfectly fine for cavity misalignment in x (dx=0.001) and a vertical deflection (tilt=1.57).

But, when I misalignment cavities in y (dy=0.001) and deflect the beam horizontally (tilt=0) I can’t see the kick from the wakes anymore!? The beam looks the same as if I had no cavity misalignment except that it has moved slightly (mm scale) in the y direction on the screen.

What did I do wrong in the horizontal deflection case?
Why can’t I see the effect form the wakes after the horizontal deflection (when it works so nicely for the vertical case) and how come it moves on the screen?

Thanks in advance,
Best Regards,
Olivia

Re: horizontal deflection

Posted: 07 May 2013, 08:34
by michael_borland
Olivia,

First, a clarification: the effect you see in the momentum distribution is not a wake, but rather the result of the longitudinal field that is required to satisfy Maxwell's equations when a tranverse deflection is imposed. There's also a smaller effect due to the fact that the deflection is from electric fields and hence changes the total momentum of the particles. If you really want the wake from a deflecting mode, you need to use the TRFMODE element. The RFDF element is only for the externally imposed field.

I'm not able to duplicate this problem. I compared horizontal offset combined with vertical deflection to vertical offset combined with horizontal deflection, getting identical results. I also compared horizontal offset combined with horizontal deflection to vertical offset combined with vertical deflection, with identical results. (I'm comparing the (t, p) phase space.)

Can you post a set of example input files that exhibit the problem?

--Michael

Re: horizontal deflection

Posted: 08 May 2013, 08:01
by olivia.karlberg
Hi Michael,

Thank you so much for your reply.

Please, find attached to this post a simplified lattice and a beam file (it is not completely optimized yet but it works…). I also tried to make a small sketch (jpeg-file).

I’m interested in the effect from the transverse wakefields in a RFCW- cavity section (L04) that is placed before the deflecting cavity. (In this lattice I have two deflecting cavities placed after each other, one horizontal and one vertical.)
I misalign the RFCW-cavities to have a stronger effect from the wakes when the beam passes of axis.
Then I would like to deflect the beam to see the head and the tail on a screen (and see how the tail has suffered from wakes).

Using vertical deflection (and a dx= 0.002 in the RFCW-cavities) I can see the how the bunch tail have received a kick from wakes in the previous cavity section. But if I put dy= 0.002 in the RFCW-cavities and do a horizontal deflection I can just see change in position on the screen?

Best regards,
Olivia

Re: horizontal deflection

Posted: 08 May 2013, 08:04
by olivia.karlberg
And some more files =)

Re: horizontal deflection

Posted: 08 May 2013, 08:11
by michael_borland
Olivia,

I think it is just a copy-and-paste error. You have, for example,

Code: Select all

ACCBT_L04_5: RFCW, L=6.1125, FREQ=2997924000, VOLT=115e6, PHASE=120, &
CHANGE_P0=1, END1_FOCUS=1, END2_FOCUS=1, CELL_LENGTH=0.0375,&
LSC="flag_lsc",LSC_BINS=2000,LSC_HIGH_FREQUENCY_CUTOFF0=0.2,LSC_HIGH_FREQUENCY_CUTOFF1=0.25,N_KICKS=100,DX="DX_L04.05",DY="DY_L04.05", &
ZWAKEFILE="wakes/Zwake_S1S7_Trieste_5mm.sdds",TCOLUMN="t",WZCOLUMN="W",INTERPOLATE=1,SMOOTHING=1,&
TRWAKEFILE="Xwake_S1S7_Trieste_2_5mm.sdds",TCOLUMN="t",WXCOLUMN="W",INTERPOLATE=1,SMOOTHING=1,n_kicks=25,&
TRWAKEFILE="Xwake_S1S7_Trieste_2_5mm.sdds",TCOLUMN="t",WXCOLUMN="W",INTERPOLATE=1,SMOOTHING=1,n_kicks=25
Note that you give WxColumn twice, but never give WyColumn. If you change the definition to

Code: Select all

ACCBT_L04_5: RFCW, L=6.1125, FREQ=2997924000, VOLT=115e6, PHASE=120, &
CHANGE_P0=1, END1_FOCUS=1, END2_FOCUS=1, CELL_LENGTH=0.0375,&
LSC="flag_lsc",LSC_BINS=2000,LSC_HIGH_FREQUENCY_CUTOFF0=0.2,LSC_HIGH_FREQUENCY_CUTOFF1=0.25,N_KICKS=100,DX="DX_L04.05",DY="DY_L04.05", &
ZWAKEFILE="wakes/Zwake_S1S7_Trieste_5mm.sdds",TCOLUMN="t",WZCOLUMN="W",INTERPOLATE=1,SMOOTHING=1,&
TRWAKEFILE="Xwake_S1S7_Trieste_2_5mm.sdds",TCOLUMN="t",WXCOLUMN="W",INTERPOLATE=1,SMOOTHING=1,n_kicks=25,WYCOLUMN="W"
I think it will work as expected.

Let me know if not and I'll investigate further.

--Michael

Re: horizontal deflection

Posted: 08 May 2013, 10:06
by olivia.karlberg
Hi Michael,

I’m sincerely sorry for taking up your time with this copy-and-paste error.
Thank you very much for the help and time, it works perfectly fine now.

Best regards,
Olivia

Re: horizontal deflection

Posted: 08 May 2013, 12:31
by michael_borland
Olivia,

No need to apologize. I'm glad I could help resolve the problem.

--Michael