A question about divide_elements

Moderators: cyao, michael_borland

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

A question about divide_elements

Post by duanz » 10 Jan 2021, 21:25

Hi Michael,

I'd like to split a CSBEND into several slices using divide_elements. If I use save_lattice then only one instance of the slice with the same name of the original CSBEND element appears in the new lattice file, its length and angle are divided by divisions but E1 & E2 remain the same, relative to the original CSBEND element.

I'm aware there is a warning "Using save_lattice and element divisions together will produce an incorrect lattice file." But I wonder how the E1 & E2 of each slice are treated in the internal algorithm of elegant. Thanks!

Best,

Zhe

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

Re: A question about divide_elements

Post by michael_borland » 11 Jan 2021, 11:20

Zhe,

elegant automatically turns off edge effects between consecutive dipoles with the same name. Hence, when a dipole is split, the interior edge effects are suppressed.

You can confirm this by noting that splitting a dipole will make no difference in the tunes, for example.

--Michael

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

Re: A question about divide_elements

Post by duanz » 11 Jan 2021, 21:49

OK, thanks, Michael.

Zhe

Post Reply