horizontal deflection

Moderators: cyao, michael_borland

Post Reply
olivia.karlberg
Posts: 11
Joined: 22 Jun 2011, 07:40

horizontal deflection

Post by olivia.karlberg » 07 May 2013, 03:09

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

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

Re: horizontal deflection

Post by michael_borland » 07 May 2013, 08:34

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

olivia.karlberg
Posts: 11
Joined: 22 Jun 2011, 07:40

Re: horizontal deflection

Post by olivia.karlberg » 08 May 2013, 08:01

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
Attachments
test1.ele
(1.57 KiB) Downloaded 153 times
beam_at_L04.txt
(612.69 KiB) Downloaded 144 times
screen_tls2.jpg

olivia.karlberg
Posts: 11
Joined: 22 Jun 2011, 07:40

Re: horizontal deflection

Post by olivia.karlberg » 08 May 2013, 08:04

And some more files =)
Attachments
Zwake_S1S7_Trieste_5mm.sdds
(45.17 KiB) Downloaded 148 times
Copy_of_Xwake_S1S7_Trieste_2_5mm.sdds
(22.9 KiB) Downloaded 149 times
test1.lte
(11.63 KiB) Downloaded 150 times

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

Re: horizontal deflection

Post by michael_borland » 08 May 2013, 08:11

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

olivia.karlberg
Posts: 11
Joined: 22 Jun 2011, 07:40

Re: horizontal deflection

Post by olivia.karlberg » 08 May 2013, 10:06

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

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

Re: horizontal deflection

Post by michael_borland » 08 May 2013, 12:31

Olivia,

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

--Michael

Post Reply