Search found 49 matches

by duanz
10 Jan 2021, 21:25
Forum: General
Topic: A question about divide_elements
Replies: 2
Views: 5164

A question about divide_elements

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, re...
by duanz
27 Sep 2020, 05:39
Forum: Feature Requests
Topic: Some mechanism to rotate a ring lattice
Replies: 3
Views: 9621

Re: Some mechanism to rotate a ring lattice

Hi Michael, One thing still not clear to me, is how the closed_orbit command treats a rotated ring using a BRANCH element like the following syntax: M0: MARK M1: MARK BR1: BRANCH, BRANCH_TO="M0", ELSE_TO="M1", counter=1, DEFAULT_TO_ELSE=1 RING: LINE=( BR1, M0, PART1, M1, PART2 ) I would like to calc...
by duanz
20 Sep 2020, 05:11
Forum: General
Topic: Aperture for EHKICKER, EHKICK, EVKICK
Replies: 2
Views: 4346

Re: Aperture for EHKICKER, EHKICK, EVKICK

Hi Youssef, I think the reason is that the introduction of EHKICKER changes the closed orbit, and when ELEGANT computes xApertures and yApertures it takes into account the local closed orbit deviation, i.e., when a particle arrives at a specific point in the ring, if the local closed orbit is nonzer...
by duanz
17 Jul 2020, 01:42
Forum: Bugs
Topic: One issue with PHASE_REFERENCE of the RFCA element
Replies: 5
Views: 7216

Re: One issue with PHASE_REFERENCE of the RFCA element

Hi Michael,

Thanks! This did solve the strange large value of PHASE_REFERENCE when dumping the lattice.

Best,

Zhe
by duanz
17 Jul 2020, 01:04
Forum: Bugs
Topic: One issue with PHASE_REFERENCE of the RFCA element
Replies: 5
Views: 7216

Re: One issue with PHASE_REFERENCE of the RFCA element

Hi Michael,

I use PAR ring as an illustration, see attached files. I used both a MAC and a linux server, the results are the same.

Best,

Zhe
by duanz
04 Jul 2020, 22:14
Forum: Bugs
Topic: One issue with PHASE_REFERENCE of the RFCA element
Replies: 5
Views: 7216

One issue with PHASE_REFERENCE of the RFCA element

Hi Michael, I was trying to modify the RFCA elements in one .ele script and dump the modified lattice with the save_lattice command. However, in the new lattice file generated, the PHASE_REFERENCEs of RFCA elements are some very large integers like 9223372036854775807. When I use this lattice for la...
by duanz
08 Feb 2020, 00:17
Forum: Feature Requests
Topic: Some mechanism to rotate a ring lattice
Replies: 3
Views: 9621

Some mechanism to rotate a ring lattice

Hi Michael, Normally people want to maintain a single lattice file with a specified starting point. However, for some applications, for example injection and extraction simulations, as well as local momentum aperture simulations, one needs to rotate the lattice and start tracking from a different el...
by duanz
02 Feb 2020, 23:17
Forum: Parallel Elegant
Topic: Inconsistence in particleID generated with bunched_beam using Elegant and Pelegant
Replies: 1
Views: 5970

Inconsistence in particleID generated with bunched_beam using Elegant and Pelegant

Hi Michael, As shown in the attached example, I attempted to use the first_is_fiducial mode in run_control and bunched_beam, to generate a first beam with a single particle for fiducialization and then track the second beam with the desired beam distribution. If I execute Elegant, the particleIDs of...
by duanz
11 Nov 2019, 03:06
Forum: Feature Requests
Topic: Gaussian beam initialization with moments_output results
Replies: 3
Views: 12116

Re: Gaussian beam initialization with moments_output results

Hi Michael, There is one small inconsistancy when I tried to initialize a beam with bunched_beam by setting use_moments_output_values=1, the particleIDs of the generated bunch are all zero, in contrast, setting use_twiss_command_values=1 produces a bunch with particleID ranging from 1 to number of p...
by duanz
08 Oct 2019, 10:38
Forum: Bugs
Topic: Setting Expand_Hamiltonian to 1 of a CSBEND
Replies: 3
Views: 6144

Re: Setting Expand_Hamiltonian to 1 of a CSBEND

Hi Michael,

I just downloaded the latest version of elegant, and now the bug is gone. Thanks for your kind help!

Best,

Zhe