Problem on splitting the CSBEND

Moderators: cyao, michael_borland

Post Reply
duanz
Posts: 50
Joined: 30 May 2009, 01:50

Problem on splitting the CSBEND

Post by duanz » 03 Jun 2021, 02:10

Hi, Michael,
I need to split the CSBEND into many slices. However, I found that with the increase
of the number of slices, the vertical tune also increased. For example, if I split the
dipole into 1000 slices, nu_y increased about 0.0101%, for 10000 slices, nu_y increased
about 1.006%. I have tried splitting by hand and using the "divide_elements", this deviation
appeared in both situation. I also tested that in AT and nu_y stayed unchanged. I wonder how
to avoid this deviation in elegant. The attachment is an example.

Best regards.
Attachments
slice_10000.ele
(522 Bytes) Downloaded 100 times
lattice_slice.lte
(5.23 KiB) Downloaded 98 times

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

Re: Problem on splitting the CSBEND

Post by michael_borland » 11 Jun 2021, 19:09

Zhe,

I can confirm the problem but as far as I can tell, it is caused by limited numerical precision, since the tunes are computed by accumulating the phase advance element-by-element. I'm not sure how AT avoids this, but perhaps it uses the one-turn matrix instead; in that case, I'd expect the tunes to be inconsistent with psi(s).

Out of curiosity, why do you want to divide elements into 10k pieces?

--Michael

duanz
Posts: 50
Joined: 30 May 2009, 01:50

Re: Problem on splitting the CSBEND

Post by duanz » 11 Jun 2021, 20:50

Hi, Michael,
I'm studying the fringe field effect of the longitudinal gradient magnets, so I want to use the
splitting method as a bench-mark model. I split the field 1 mm per slices, so the slice number
can reach about 2k (10k is just a test).

I'm also going to use the GGE and BRAT model, however, I’m confused about the coordinate of BRAT,
it is said “The coordinates of the field map are right-handed system (x, y, z), where z is along the
length of the magnet, x is to the right as viewed along the direction of beam propagation, and y is up.”
But I think that y should be down to be right-handed.

By the way, I'm Nan Li who temporarily using Zhe's account. Thank you for your reply!
Best regards.
Nan

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

Re: Problem on splitting the CSBEND

Post by michael_borland » 14 Jun 2021, 12:54

Nan Li,

I can see how that would be confusing. It should say that (z, x, y) forms a right-handed system.

--Michael

Post Reply