Dispersion with locally varying spread

Moderators: cyao, michael_borland

Post Reply
Aamna_Khan
Posts: 49
Joined: 13 Oct 2016, 09:17

Dispersion with locally varying spread

Post by Aamna_Khan » 12 Jun 2019, 10:07

Hello Michael,

I have confusion about the dispersion definition in .twi and .sig file when local spread changes.

1) LSC kick changes the local spread (from my understanding it doesn't change central momentum): I am doing the simulation for first order so I would guess chromaticity is not an issue here. Could you please guide me how I get the non-zero dispersion at initial drifts and quadrupoles..

2) In the second example, I gave RF kicks (acceleration with no LSC) in a beamline without bends to check the dispersion. Still .sig file gives a non-zero dispersion.

Could you please check if the enclosed files are doing what I want to do correctly?

Thank you in advance.
Aamna
Attachments
test.zip
(2.64 KiB) Downloaded 151 times
Dx.png
Dx.png (8.5 KiB) Viewed 3789 times
Dx_Rf.png
Dx_Rf.png (8.47 KiB) Viewed 3789 times

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

Re: Dispersion with locally varying spread

Post by michael_borland » 18 Jun 2019, 09:14

Aamna,

I don't see anything fundamentally wrong with your simulations. I think what is happening is that there are higher-order correlations developed in the beam in both cases. Since elegant doesn't look for anything other than linear correlations (e.g., s16, which is related to the dispersion), it can be fooled into reporting a non-zero linear correlation.

In the rf cavity simulation, for example, one can use &analyze_beam to find the effective transport matrix based on tracking. I shows strong third-order terms involving x, x', s, and delta. For example, from the first RFCA element I see large Q1551 and Q1552 terms. These will produce nonzero s16 correlations, which we then interpret (incorrectly) as linear dispersion.

I think the effect is similar for the LSC simulations. One reason these effects are so strong is presumably that your beam is not fully relativistic. For example, if I increase the starting momentum 10x and also increase the gradients 10x, the effects are still present, but much reduced.

--Michael

Aamna_Khan
Posts: 49
Joined: 13 Oct 2016, 09:17

Re: Dispersion with locally varying spread

Post by Aamna_Khan » 24 Jun 2019, 03:42

Hi Michael,

Thanks for clearing that simulations are fine. I still wonder, is there any correct way to compute the first-order dispersion with LSC in the presence of bends? I am confused if we have variable s6 along the beamline, does it affect the linear <x*delta> . For example, Andrzej Wolski discussed how a linear map changes in transverse plane when there is a momentum spread variation on page no.: 114-115 in "beam dynamics in high energy particle accelerators" book (there he discussed it in the context of a RF cavity).

Second, I found that dispersion from twiss file is not matching with the R16/Dx from .mat/.sig (tried it for simple 2-3 cases).

Thanks,
Aamna
Attachments
dispersion.png
dispersion.png (10.91 KiB) Viewed 3597 times
test1.zip
(1.32 KiB) Downloaded 143 times
Last edited by Aamna_Khan on 25 Jun 2019, 05:16, edited 1 time in total.

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

Re: Dispersion with locally varying spread

Post by michael_borland » 24 Jun 2019, 11:46

Aamna,

To compute the first-order dispersion in the presence of LSC, the best approach I can come up with is to fit (delta, x) using data from WATCH elements with mode="coordinate". You can use sddspfit to do the fitting, e.g.,

Code: Select all

sddsprocess test.w1 -pipe=out "-define=col,delta,p pCentral / 1 -" | sddspfit -pipe=in test.w1fit -col=delta,x -terms=5 -eval=test.w1eval,num=100
sddsplot -col=delta,x test.w1fit -graph=dot -title=@sddspfitLabel -col=delta,x test.w1eval -graph=line,type=1
As for you second question, the reason you don't get the same dispersion in those calculations is that &twiss_output by default computes the periodic solution. Set matched=0 to get the transport-line solution, which matches the R16 and D quantities.

--Michael

Aamna_Khan
Posts: 49
Joined: 13 Oct 2016, 09:17

Re: Dispersion with locally varying spread

Post by Aamna_Khan » 25 Jun 2019, 05:17

Thank you Michael.

Aamna

Post Reply