Search found 1797 matches

by michael_borland
10 Nov 2022, 09:42
Forum: General
Topic: Highlighting mode for emacs and vim
Replies: 10
Views: 3722

Re: Highlighting mode for emacs and vim

Thanks for posting this. It's good to have more editor options.

--Michael
by michael_borland
10 Nov 2022, 09:41
Forum: Ring Tracking
Topic: rfmode element in a active harmonic cavity
Replies: 19
Views: 2805

Re: rfmode element in a active harmonic cavity

Chao, I'm glad to hear that you are now getting the same results as elegant after finding a problem. I'll look into the KAverage issue. To vary the charge per bunch in elegant, at present you have to vary the number of particles per bunch. The reason is that elegant assigns the same charge to each m...
by michael_borland
03 Nov 2022, 12:17
Forum: General
Topic: ~10x Speed up for multi-bunch studies with short+long range impedance
Replies: 2
Views: 132

Re: ~10x Speed up for multi-bunch studies with short+long range impedance

I think this is a perfectly legitimate approach and will see how it can be implemented in the code in a flexible fashion. A very easy way is just to provide START_PID and END_PID parameters for the short-range wake elements. There is an alternative, use of pseudo-multi-bunch mode, but that assumes t...
by michael_borland
02 Nov 2022, 17:12
Forum: Ring Tracking
Topic: rfmode element in a active harmonic cavity
Replies: 19
Views: 2805

Re: rfmode element in a active harmonic cavity

Chao, I don't do anything special to control noise. My algorithm is similar to what you describe: I make weighted sums of the quantities for each bin. I do this for real and imaginary components, then compute the phases from the average values. I'm not sure why a discrepancy develops as the simulati...
by michael_borland
28 Oct 2022, 09:57
Forum: Ring Tracking
Topic: rfmode element in a active harmonic cavity
Replies: 19
Views: 2805

Re: rfmode element in a active harmonic cavity

Chao,

Yes, that is a good description of what we do.

There's also a "binless" mode that uses the individual particles to do the same thing. It's pretty slow but can be used for checks.

--Michael
by michael_borland
27 Oct 2022, 16:56
Forum: General
Topic: TRWAKE on the beam
Replies: 2
Views: 68

Re: TRWAKE on the beam

Simona, Elegant's method is as follows: 1. Create a position-weight charge histogram. This gives Q *<x > for a series of slices i, where Q is the charge in the slice and <x > is the average position in the slice. 2. Convolve the weighted charge histogram with the Green function, giving the transvers...
by michael_borland
27 Oct 2022, 16:48
Forum: General
Topic: sddsanalyzebeam Twiss parameters
Replies: 7
Views: 162

Re: sddsanalyzebeam Twiss parameters

Adam, The discrepancy appears to be due to strong chromatic effects. If I convert the entire lattice to use matrix-based tracking (SBEN, QUAD, SEXT), then set default_order=1 in run_setup, the beta functions agree between max4.twi and max4.sig. However, if I set default_order=2, the discrepancy appe...
by michael_borland
21 Oct 2022, 10:25
Forum: General
Topic: sddsanalyzebeam Twiss parameters
Replies: 7
Views: 162

Re: sddsanalyzebeam Twiss parameters

Adam,

Can you provide the file input/BC2.W-INIT and any other input files I might need to run this?

--Michael
by michael_borland
20 Oct 2022, 12:55
Forum: General
Topic: Optics with AC skew
Replies: 1
Views: 79

Re: Optics with AC skew

Zeus,

Inclusion of an MBUMPER element will not affect the computed values of any of those parameters, since it is time-dependent.

--Michael
by michael_borland
20 Oct 2022, 12:52
Forum: General
Topic: Highlighting mode for emacs and vim
Replies: 10
Views: 3722

Re: Highlighting mode for emacs and vim

Thanks for posting this.

--Michael