How to add errors to a cryomodule

Moderators: cyao, michael_borland

Post Reply
Zhenbiao
Posts: 9
Joined: 06 Apr 2017, 07:41

How to add errors to a cryomodule

Post by Zhenbiao » 08 Jul 2024, 22:49

Hi,

I'm using elegant to simulate the misalignment of cryomodules. The cryomodule consists of 8 cavities. The definition of a module is as follows:

Code: Select all

L2_8CAVL : LINE=(CAVL_2,DCM2,CAVL_2,DCM2,CAVL_2,DCM2,CAVL_2,DCM2,CAVL_2,&
   DCM2,CAVL_2,DCM2,CAVL_2,DCM2,CAVL_2)
CM04 : LINE=(BEGCM04,DCM0,DCM1,L2_8CAVL,DCM3,MKQCM04,QCM04,CHVCM04,BBPMCM04,QCM04,DCM4,&
        ENDCM04)
CM05 : LINE=(BEGCM05,DCM0,DCM1,L2_8CAVL,DCM3,MKQCM05,QCM05,CHVCM05,BBPMCM05,QCM05,DCM4,&
        ENDCM05)
CM06 : LINE=(BEGCM06,DCM0,DCM1,L2_8CAVL,DCM3,MKQCM06,QCM06,CHVCM06,BBPMCM06,QCM06,DCM4,&
        ENDCM06)
I want to add the following errors: cryomodule misaligments, cavity misalignments wrt. CM, quadrupoles misalignments wrt. CM, BPM misalignments wrt. CM. The cryomodule is a line, not an element. How to add errors to a cryomodule composed of multiple elements? And how to add the cavity errors wrt. CM? The cavities and quadrupoles are inside the cryomodule. Is it the same as adding errors directly to the elements inside the CM like the following codes?

Code: Select all

&error_element name=QCM04, element_type=*QUAD*, item=DX, amplitude=150e-6, cutoff=2 &end
&error_element name=QCM04, element_type=*QUAD*, item=DY, amplitude=150e-6, cutoff=2 &end
&error_element name=QCM04, element_type=*QUAD*, item=TILT, amplitude=2e-3, cutoff=2 &end
Many thanks for any suggestion,
Zhenbiao Sun

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

Re: How to add errors to a cryomodule

Post by michael_borland » 19 Aug 2024, 14:41

Zhenbiao,

There are several ways to do this. In simple cases, you can use markers to define the start and end of the girders, then use a set of error_element commands for each girder. In addition, you can impart errors to individual elements, which are then taken relative to the girder component. This works because elegant by default adds the effects of multiple error_element commands for each element. I've attached an example.

A more complex simulation is available in the examples file. Look for NSLS-II-GirderMisalignment.

--Michael
Attachments
FODO5.zip
(2.28 KiB) Downloaded 121 times

Zhenbiao
Posts: 9
Joined: 06 Apr 2017, 07:41

Re: How to add errors to a cryomodule

Post by Zhenbiao » 05 Sep 2024, 21:53

Hi Michael,

Thanks for your reply. I encountered another issue. When I used the following code to add roll errors to the bends:

Code: Select all

&error_element name=*, element_type=*CSRCSBEN*, item=DX, amplitude=100e-6, cutoff=3 &end
&error_element name=*, element_type=*CSRCSBEN*, item=DY, amplitude=100e-6, cutoff=3 &end
&error_element name=*, element_type=*CSRCSBEN*, item=TILT, amplitude=0.5e-3, cutoff=3 &end
an error occurred:
error: can't misalign tilted bending magnet
How to add roll errors to the bends? In addition, is there a way to add pitch and yaw errors to elements such as bends, quadrupoles, and RFCW in elegant?

Zhenbiao

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

Re: How to add errors to a cryomodule

Post by michael_borland » 10 Sep 2024, 10:50

Zhenbiao,

I think you are using an old version of elegant. I you upgrade, you'll get better misalignment support. See the manual page for CSBEND, for example, for details about the methods available.

--Michael

Zhenbiao
Posts: 9
Joined: 06 Apr 2017, 07:41

Re: How to add errors to a cryomodule

Post by Zhenbiao » 19 Sep 2024, 04:21

Hi Michael,

I was using Elegant 2020 previously, and I've now updated to the latest version. According to the latest manual, it is possible to add pitch and yaw errors to quadrupoles and bends. That's great! But for RFCW and MONI elements, it is still not possible to directly add pitch and yaw errors.

Zhenbiao

Post Reply