Search found 1929 matches

by michael_borland
29 Mar 2024, 17:31
Forum: Linac Tracking
Topic: About R56 in Elegant and LiTrack
Replies: 1
Views: 23

Re: About R56 in Elegant and LiTrack

Zhenbiao, I've never used LiTrack, but I think the sign convention for R56 is the opposite of elegant's. Usually in elegant we define the bunch compressors explicitly using bending magnets. However, it is possible to use the EMATRIX element to simulate a matrix defined by the matrix elements. An exa...
by michael_borland
29 Mar 2024, 16:34
Forum: General
Topic: IBS and bunch lengthening due to impedance
Replies: 1
Views: 42

Re: IBS and bunch lengthening due to impedance

Mikhail,

Please see the attached example. It converges in four iterations.

--Michael
by michael_borland
29 Mar 2024, 15:01
Forum: General
Topic: Using BMXYZ for tracking through a periodic quadrupole
Replies: 1
Views: 62

Re: Using BMXYZ for tracking through a periodic quadrupole

Samira, The problem seems to be that your field file does not define a quadrupole magnet. To check this, I computed dBy/dx at y=0 and dBx/dy at x=0 as a function of z. sddssort fieldmap300.sdds -pipe=out -col=z -col=x -col=y | sddsbreak -pipe -change=z | sddsprocess -pipe -filter=col,y,-1e-6,1e-6 -p...
by michael_borland
29 Mar 2024, 14:50
Forum: Momentum Aperture
Topic: Momentum aperture fiducialize and soft_failure
Replies: 1
Views: 43

Re: Momentum aperture fiducialize and soft_failure

Minghao, Setting fiducialize=1 is recommended if you are performing one-pass momentum aperture in a system with large energy losses or gain. An example is a linac. For storage rings, it should be zero. soft_failure is used to control what happens when the momentum acceptance is not found one or more...
by michael_borland
29 Mar 2024, 14:41
Forum: Feature Requests
Topic: Modifications to find_aperture
Replies: 2
Views: 99

Re: Modifications to find_aperture

Mikhail,

The ability to perform (delta, x) and (delta, y) aperture finding will appear in the next release.

Thanks for the suggestion.

--Michael
by michael_borland
07 Mar 2024, 17:00
Forum: Feature Requests
Topic: Modifications to find_aperture
Replies: 2
Views: 99

Re: Modifications to find_aperture

Mikhail, I think the only way you can get what I understand you are looking for is to use something other than line-search mode. By definition, line-search mode searches along lines starting from the origin. The radial spacing along the lines is xmax/nx. You can always reduce nx if you want finer st...
by michael_borland
19 Feb 2024, 10:32
Forum: Linac Tracking
Topic: issue tracking with PELEGANT
Replies: 6
Views: 168

Re: issue tracking with PELEGANT

Philippe,

The reason that happens in Pelegant is that the master processor is "non-working." It handles coordination among the slave processors, but (usually), doesn't do anything related to particle generation or tracking.

I'll add a check to the code for this problem.

--Michael
by michael_borland
15 Feb 2024, 18:03
Forum: Linac Tracking
Topic: issue tracking with PELEGANT
Replies: 6
Views: 168

Re: issue tracking with PELEGANT

Philippe, This command ~borland/improv/beta/Pelegant_2023.4 tracktest.ele > pElegantMichael.output looks wrong. Are you using mpiexec to invoke Pelegant? E.g., to run with 8 cores you'd use mpiexec -np 8 Pelegant ... It shouldn't be possible to run it any other way, but it is behaving as if it is us...
by michael_borland
15 Feb 2024, 17:38
Forum: Bugs
Topic: A bug in &save_lattice?
Replies: 2
Views: 115

Re: A bug in &save_lattice?

The problem is a typo in the definition of the quadrupoles. You have a spurious quotation mark at the end of the lines containing FSE values. This confuses the parser and it ignores the rest of the element definition.

--Michael
by michael_borland
09 Feb 2024, 11:41
Forum: Linac Tracking
Topic: issue tracking with PELEGANT
Replies: 6
Views: 168

Re: issue tracking with PELEGANT

Philippe, That is very weird. I don't see a problem with either the serial or the parallel version. I tried it on my linux workstation and Improv, with the latest source and version 2023.4. Are you using Improv? If so, check that you have the right modules loaded: $ module list Currently Loaded Modu...