Search found 1924 matches

by michael_borland
25 Jan 2024, 10:07
Forum: Bugs
Topic: Possible bug in vary_element
Replies: 2
Views: 1444

Re: Possible bug in vary_element

The problem is that you've specified 19 indices (a 19-dimensional scan!) but only one vary_element command. You need at least one vary_element command per index. For example, &run_control n_indices = 2 &end &vary_element index_number=0, index_limit=11, ... &end &vary_element index_number=1, index_li...
by michael_borland
19 Dec 2023, 19:42
Forum: Ring Tracking
Topic: Problems about RFCA/RFCW element
Replies: 1
Views: 770

Re: Problems about RFCA/RFCW element

Can you post an example to help me understand what you are trying?

--Michael
by michael_borland
19 Dec 2023, 18:42
Forum: Linac Tracking
Topic: Discrepany in R26 and R56 for transversely offset KQUAD
Replies: 2
Views: 749

Re: Discrepany in R26 and R56 for transversely offset KQUAD

I'll have to look into why that term is missing. Meanwhile, you can add "TRACKING_MATRIX=2" to the definition of the KQUAD element to get a tracking-based matrix, which includes this term. I suppose that other R5X and RX6 terms will also change as a result. One thing to be aware of in comparing to o...
by michael_borland
19 Dec 2023, 18:29
Forum: Parallel Elegant
Topic: Pelegant I/O issue for CSRDRIFT element
Replies: 2
Views: 663

Re: Pelegant I/O issue for CSRDRIFT element

Gregg, Unfortunately, that feature is not supported for the parallel version, although you have no way to know that from the manual. Those messages indicate that each processor is trying to open the same file, and failing. I'll put it on my to-do list to provide parallel support, although I wouldn't...
by michael_borland
19 Dec 2023, 18:18
Forum: Ring Tracking
Topic: Inconsistent Results in Orbit Correction Testing
Replies: 2
Views: 853

Re: Inconsistent Results in Orbit Correction Testing

After a little more looking, I've concluded that this isn't a bug, but rather a result of the presence of linear and nonlinear coupling, through tilted quadrupoles and sextupoles, respectively. Elegant alternates between correcting in the x and y planes. With n_xy_cycles=1, it corrects the x plane, ...
by michael_borland
19 Dec 2023, 17:15
Forum: Ring Tracking
Topic: SIGSEGV Error Occured for &amplification_factors
Replies: 1
Views: 607

Re: SIGSEGV Error Occured for &amplification_factors

NuanYa, You need to ask for orbit correction in order to get amplification factors. Try adding &correct mode = "orbit" n_xy_cycles = 1 n_iterations = 100 &end (In this case, n_xy_cycles = 1 is required.) I'll add a check so it doesn't crash. Thanks for the report. --Michael
by michael_borland
19 Dec 2023, 15:09
Forum: Feature Requests
Topic: Laser-Electron Interactions
Replies: 1
Views: 592

Re: Laser-Electron Interactions

Joe,

That would be pretty easy to implement, but I'm not sure when I'll get to it.

Meanwhile, it is easy to do with a SCRIPT element, which allows you to transform the particle distribution using an external program or script.

--Michael
by michael_borland
19 Dec 2023, 14:42
Forum: Ring Tracking
Topic: Inconsistent Results in Orbit Correction Testing
Replies: 2
Views: 853

Re: Inconsistent Results in Orbit Correction Testing

This seems to be a bug that appears when n_xy_cycles=1. Set n_xy_cycles to 2 or higher in &correct and you should see consistency.

Thanks for reporting the problem.

--Michael
by michael_borland
19 Dec 2023, 14:27
Forum: Ring Tracking
Topic: Search of closed orbit in a ring with BGGEXP elements
Replies: 2
Views: 711

Re: Search of closed orbit in a ring with BGGEXP elements

Ryutaro, I would be suspicious of this result. First, the convergence warning indicates that the normal algorithm had a problem. Second, you have tracking_turns=1, which asks elegant to use a fall-back multi-turn tracking method; however, you only asked it to use 1 turn, which isn't reliable. It som...
by michael_borland
19 Dec 2023, 14:20
Forum: General
Topic: Version 2023.4 released
Replies: 0
Views: 1834

Version 2023.4 released

Version 2023.4 has been released, with several feature and performance improvements. See the change log in the manual for details.

--Michael