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
A question about divide_elements
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: A question about divide_elements
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
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
Re: A question about divide_elements
OK, thanks, Michael.
Zhe
Zhe