RFCA/ RFCW

Moderators: cyao, michael_borland

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

RFCA/ RFCW

Post by olivia.karlberg » 29 Jun 2011, 02:24

Hi Michael and collaborators,

I am a new user of ELEGANT and I think I need some help/ advice.
I am tracking particles in a linac and I want to apply an error/ a misalignment to EVERY cavity in a linac structure. To do that, I changed the line of RFCA-cavities (case1) into RFCW-cavities (case 2). In this way every "lin"-structure can be misaligned randomly with the help of the error_element in a later process. But something is wrong here, the case1 and case2 doesn't give the same result at all (without the error elements)!? What am I missing? Could you give me some comments? (please, see attached txt-file).

Thanks,
Best Regards,

Olivia
Attachments
rfca och rfcw.txt
part of lte-file
(1.1 KiB) Downloaded 3720 times

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

Re: RFCA/ RFCW

Post by michael_borland » 29 Jun 2011, 08:02

Olivia,

Can you also post a .ele file that illustrates how you are using this lattice?

--Michael

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

Re: RFCA/ RFCW

Post by olivia.karlberg » 29 Jun 2011, 08:11

Hi Micheal,

Here is the .ele file that I used. (see attached file)

Thanks, Best Regards

Olivia
Attachments
max4.ele
(932 Bytes) Downloaded 3790 times

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

Re: RFCA/ RFCW

Post by michael_borland » 29 Jun 2011, 08:32

Olivia,

Sorry, I'll need the daresburyastrain.sdds, wakefieldlong.sdds, and wakefieldtran.sdds files as well.

--Michael

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

Re: RFCA/ RFCW

Post by olivia.karlberg » 30 Jun 2011, 08:16

Hi Michael,

I'll attached the other three files. Unfortunately, I didn't manage to compress one of the files which was quite large, so I divided it into three pieces. I'm sorry for the inconvenience!!
Thank you for your help,

Best Regards

-Olivia
Attachments
darebury1.sdds.txt
(1.59 MiB) Downloaded 3870 times
wakefieldlong.sdds
(154.57 KiB) Downloaded 3860 times
wakefieldlong.sdds
(154.57 KiB) Downloaded 3622 times

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

Re: RFCA/ RFCW

Post by olivia.karlberg » 30 Jun 2011, 08:20

The two last files...
Attachments
darebury3.sdds.txt
(1.27 MiB) Downloaded 3940 times
darebury2.sdds.txt
(1.72 MiB) Downloaded 3908 times

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

Re: RFCA/ RFCW

Post by michael_borland » 30 Jun 2011, 08:36

Olivia,

There are two problems I see:

1. The VOLT parameter is set to the same value in both element definitions. However, they should have a ratio of the number of cells (156), since VOLT value is the total voltage, not the gradient.

2. When splitting linac cavities, it is advisable to tell elegant that they are linked in phase. By default, elegant phases any cavity to the first beam that comes past. However, since the beam is not traveling at v=c, this will result in the phases not being quite right. The error will be small in your case, but it doesn't hurt to make it right. You can do this by setting PHASE_REFERENCE=<id> on the definition of the RFCA cells, where <id> is a number you pick that is unique to that linac structure.

I noticed in your input file that a namelist "emittance_output" is given. Is this an extension you are adding to elegant? If so, I'd like to hear more about it.

--Michael

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

Re: RFCA/ RFCW

Post by olivia.karlberg » 01 Jul 2011, 06:31

Hi Michael,

Thank you so much for your help. It works perfectly now!
I will ask my supervisor (Sara Thorin from MAX-lab) what the input file "emittance_out" is about.

Best Regards,
Olivia

Post Reply