Search found 1942 matches

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

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: 6214

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: 3786

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: 3276

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: 3247

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: 3786

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: 4637

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: 8027

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
by michael_borland
26 Oct 2023, 10:43
Forum: Bugs
Topic: CWIGGLER generates vertical dispersion in helical mode
Replies: 6
Views: 4588

Re: CWIGGLER generates vertical dispersion in helical mode

Mikhail, Regarding the issue with helical devices, it is not so much a bug as an unavoidable limitation. In a planar device, if we want a wiggler to generate zero orbit offset and zero dispersion, we need to start and end with half-length poles. The field is assumed to have the peak value at the sta...
by michael_borland
26 Oct 2023, 10:38
Forum: General
Topic: Coupling in ibsEmittance
Replies: 4
Views: 4194

Re: Coupling in ibsEmittance

Mikhail,

The "sum rule" is only correct when Jx=1. If Jx>1, the sum of the emittances is always greater than the natural emittance.

--Michael