Search found 1942 matches

by michael_borland
10 Sep 2024, 10:50
Forum: Linac Tracking
Topic: How to add errors to a cryomodule
Replies: 3
Views: 3890

Re: How to add errors to a cryomodule

Zhenbiao,

I think you are using an old version of elegant. I you upgrade, you'll get better misalignment support. See the manual page for CSBEND, for example, for details about the methods available.

--Michael
by michael_borland
03 Sep 2024, 16:07
Forum: Ring Tracking
Topic: Ramping
Replies: 14
Views: 18547

Re: Ramping

Terry,

I am running it now and it seems to work. Can you update to the latest version and confirm that there is a problem?

Also, any details you can provide about the system you are using would help.

--Michael
by michael_borland
03 Sep 2024, 15:58
Forum: Bugs
Topic: IBS cannot be calculated after adding a certain number of wigglers.
Replies: 3
Views: 3394

Re: IBS cannot be calculated after adding a certain number of wigglers.

Ao, Yes, that's right. As a quick workaround, you can set FOCUSING=0 on your WIGGLER elements, if that's how you are modeling them. You can to keep in mind that this is unphysical. In some cases, all it takes to restore the lattice to a reasonably sane state is to correct the tunes, which is easily ...
by michael_borland
03 Sep 2024, 15:56
Forum: General
Topic: Collimator wakes
Replies: 2
Views: 1014

Re: Collimator wakes

Adam, You can do this in various ways, but they all require that you know the wakes from some other calculation (e.g., with CST or GdfidL). If you want to work with the time-domain wake, you can use WAKE and TRWAKE, to provide the longitudinal and transverse components, respectively. In the frequenc...
by michael_borland
19 Aug 2024, 14:48
Forum: Bugs
Topic: IBS cannot be calculated after adding a certain number of wigglers.
Replies: 3
Views: 3394

Re: IBS cannot be calculated after adding a certain number of wigglers.

When I try your lattice, it gives undefined lattice functions for the vertical plane. If you are adding wigglers, the vertical tune will change and has probably moved too close to an integer or half-integer resonance.

--Michael
by michael_borland
19 Aug 2024, 14:41
Forum: Linac Tracking
Topic: How to add errors to a cryomodule
Replies: 3
Views: 3890

Re: How to add errors to a cryomodule

Zhenbiao, There are several ways to do this. In simple cases, you can use markers to define the start and end of the girders, then use a set of error_element commands for each girder. In addition, you can impart errors to individual elements, which are then taken relative to the girder component. Th...
by michael_borland
19 Aug 2024, 13:15
Forum: Linac Tracking
Topic: Chirp laser in LSRMDLTR
Replies: 1
Views: 2318

Re: Chirp laser in LSRMDLTR

Hao,

The LSRMDLTR element simply computes the electric and magnetic fields of the co-propagating laser beam. Together with the magnetic field of the undulator, these are used to compute the forces on electrons, which allows integrating the equations of motion.

--Michael
by michael_borland
19 Aug 2024, 13:11
Forum: Momentum Aperture
Topic: SDDS_InitializeInput
Replies: 1
Views: 3793

Re: SDDS_InitializeInput

Samira,

That message means that the file A.mmap is either not present in your working directory, or else can't be accessed (e.g., is read-protected).

--Michael
by michael_borland
19 Aug 2024, 13:10
Forum: Momentum Aperture
Topic: Problem in Touschek lifetime calculation
Replies: 1
Views: 3056

Re: Problem in Touschek lifetime calculation

Monika, I don't think you are making any mistakes. It appears that the emittance is so low that you are in the frozen-beam regime, where the Touschek lifetime goes up rapidly because there is insufficient transverse momentum to cause scattered particles to exceed the longitudinal momentum acceptance...
by michael_borland
19 Aug 2024, 12:27
Forum: Linac Tracking
Topic: Dispersion Optimization Discrepancy in a Dogleg
Replies: 1
Views: 3060

Re: Dispersion Optimization Discrepancy in a Dogleg

The problem is that you did not set the N_SLICES parameter on the KQUAD or CSBEND elements, so it defaults to a low value. Using

Code: Select all

...,n_slices=20,integration_order=6
seems to work well for your lattice.

--Michael