RFDF matrix

Moderators: michael_borland, soliday

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

RFDF matrix

Post by michael_borland » 07 Feb 2011, 10:50

In version 24.0, we added a matrix for the RFDF element (a type of transverse deflecting cavity). Unfortunately, the STANDING_WAVE parameter is ignored in computing the matrix. The computed matrix is valid for a standing wave cavity, so if STANDING_WAVE=0, the wrong matrix is returned. The STANDING_WAVE parameter is properly handled for tracking.

This will be fixed in the next release. For those who build from source, a corrected source file is attached.

--Michael
Attachments
compute_matrices.c
(68.28 KiB) Downloaded 1361 times

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

Re: RFDF matrix

Post by michael_borland » 07 Sep 2011, 14:31

This bug was fixed in version 24.1

--Michael

Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

Re: RFDF matrix

Post by Philippe Piot » 15 Nov 2011, 13:05

All,

I would like to model a thin-lens deflecting mode cavity.

If I set L=0 in the RFDF element and inspect the matrix provided by runin the testrfdf.ele command file, I get the usual think-lens matrix for a deflecting mode cavity (TM110).

I inserted this matrix into a beamline and ran comprfdrMAT.ele, I also did tracking using the RFDF element (see comprfdf.ele) the results are different and I cannot understand why; see runTEST script.

I saw there were issue with a previous version of elegant and I am using elegant V24.1 (darwin-x86 version of Oct. 6, 2011).

Thanks for any help. -- Philippe.

PS: all my files/scripts are attached.
Attachments
testRFDF.tar
(90 KiB) Downloaded 557 times

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

Re: RFDF matrix

Post by michael_borland » 15 Nov 2011, 18:17

Philippe,

I don't entirely understand what's going on here, but a workaround is to put a CENTER element in front of the MATR element.
CT: center,t=1

--Michael

Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

Re: RFDF matrix

Post by Philippe Piot » 16 Nov 2011, 03:12

Michael,
I think there is still an issue. I added the center element (before and after my MATR element) and although the rms properties seem to agree the longitudinal phase space have discrepancies (I am looking at sddsplot -column=t,p com*.out -graph=dot,vary -mode=x=center in the files I sent yesterday).
Thank you,

-- Philippe.

Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

Re: RFDF matrix

Post by Philippe Piot » 16 Nov 2011, 04:16

Michael,
I am now pretty sure the RFDF is the problem. Again I am tracking to first order with L=0 so that the RFDF should behave as a thin lens. In this case the beamline I attached in my post of yesterday should perfectly exchange the longitudinal and horizontal emittances. It does not while it does when I use the MATR element to model the deflecting cavity.
The main reason I want to switch to the RFDF instead of using MATR is that I cannot do backtracking with a MATR elements (we had discussion on this forum regarding this issue -- I am going to post an update on this one...).
The script I use to compare the emittance is attached. It usage is plot_all_emit FileName Offset . Thank you,

-- Philippe.
Attachments
plot_all_emit.gz
(302 Bytes) Downloaded 288 times

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

Re: RFDF matrix

Post by michael_borland » 16 Nov 2011, 13:22

Philippe,

I think the main problem is with the matrix. I realize that the matrix was produced by elegant, but it turns out that it isn't quite right when the beam energy is very low. It needs a factor of 1/beta in the R25 and R61 elements.

I'm still checking to see what other issues there might be.

--Michael

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

Re: RFDF matrix

Post by michael_borland » 01 Mar 2012, 18:19

This has been fixed in release 25.0.2.

--Michael

Post Reply