Dispersion Optimization Discrepancy in a Dogleg

Moderators: cyao, michael_borland

Post Reply
Demurtas
Posts: 7
Joined: 19 Apr 2023, 09:03

Dispersion Optimization Discrepancy in a Dogleg

Post by Demurtas » 15 Apr 2024, 09:53

Hello everyone,
I'm working on a transport line with a dogleg for a Compton source. I'm having problems with the optimization of the dispersion. The lattice is composed of two sector dipoles with three quadrupoles in between. I used the elegant optimizer to impose the dispersion and its derivative to be equal to 0 (<10^-7) at the end of the line, but I found a discrepancy between the lattice dispersion, which indeed goes to 0, and the dispersion computed on the beam with sddsanalyzebeam, which does not vanish at the dogleg exit. By looking at the behaviour of the emittance I can see that the beam analyzer is right, indeed the emittance doesn't recover its initial value.
I thought this could be due to a chromatic effect, but even setting sigma_dp = 1.3e-9 in &bunched_beam does not fix the problem.
The plot of the horizontal emittance and dispersion along the line and the files to run the code, which is launched with ./Script, are attached.

Does anyone know what the problem is and a possible solution?
Attachments
emit.png
emit.png (5.09 KiB) Viewed 5753 times
eta.png
eta.png (6.49 KiB) Viewed 5753 times
Dogleg.zip
(2.4 KiB) Downloaded 383 times

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Dispersion Optimization Discrepancy in a Dogleg

Post by michael_borland » 19 Aug 2024, 12:27

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

Demurtas
Posts: 7
Joined: 19 Apr 2023, 09:03

Re: Dispersion Optimization Discrepancy in a Dogleg

Post by Demurtas » 02 Oct 2024, 07:01

Ok, thank you for the help.

Best Regards,

Francesco Demurtas

Post Reply