Different values of phase advance

https://www.dacm-logiciels.fr/tracewin
Post Reply
ChinaEmily
Neophyte
Neophyte
Posts: 14
Joined: Thu 14 Jan 2021 02:28
Country:
China (cn)
China

Different values of phase advance

Post by ChinaEmily »

Dear Didier,
I noticed discrepancies between the phase advances calculated using two methods in TraceWin. One method involves integrating the beta function obtained from the envelope charts (as shown in Fig. 1), while the other method uses the phase advance per meter (kx) from the tracking file (partran.out). The differences between these two sets of phase advances are illustrated in Fig. 3. What could be the reason for these discrepancies?

Best regards,
Emily

ps. The project files are attached.
Attachments
lattice.zip
(16.09 MiB) Downloaded 48 times
1.png
1.png (535.36 KiB) Viewed 827 times
2.png
2.png (221.26 KiB) Viewed 827 times
3.png
3.png (37.44 KiB) Viewed 827 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 996
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Different values of phase advance

Post by FranceDidier »

Dear Emily,

Figures 1 and 2 should normally give the same plot, and that's the case with me. In any case, I understand your problem, i.e. the discrepancies between envelope phase advance and tracking.
If I do the same as you, but using TraceWin (see my image for the method), I get a smaller discrepancy than your last plot.

Now, it's normal to find a difference because the envelope calculation calculates the phase advance at each calculation step, whereas in tracking it's based on an average made between the input and output of the element. You have to cut the elements into small pieces to get something very close.

Regards,

Didier
av.png
av.png (712.14 KiB) Viewed 603 times
ChinaEmily
Neophyte
Neophyte
Posts: 14
Joined: Thu 14 Jan 2021 02:28
Country:
China (cn)
China

Re: Different values of phase advance

Post by ChinaEmily »

Dear Didier,
I am not referring to the differences between results from choosing "Partran" and results from choosing "Envelope". All the data represented in Fig.3 are obtained by choosing the results from Partran. The data labeled as "σx_envelope" comes from the "envelope" plot on the beam charts panel(please see the attached file), while the data labeled as "σx_partran" is from the partran.out file.
Yes, it's normal to find a difference between results from small pieces and those obtained from averaging, but the discrepancy seems too big. As illustrated in Fig.3, by the end of the beamline, the difference has exceeded 70 degrees(with one of 384.957615 degrees and 312.2687 degrees from the other).

Best regards,
Emily
Attachments
partran.out
(20.57 KiB) Downloaded 33 times
envelope plot.txt
(400.71 KiB) Downloaded 33 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 996
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Different values of phase advance

Post by FranceDidier »

Dear Emily,

Ok, I think I understand now. On my side, using my method, both give the same results, because in both cases I use phase advance values from the partan.out file. You're mixing phase advance values with beta functions, so I think you're confusing the beta function with the phase advance.

https://dacm-codes.fr/Softwares/TraceWi ... Y_function
https://dacm-codes.fr/Softwares/TraceWi ... definition

Regards,

Didier
Post Reply