Phase advance calculation bug

https://www.dacm-logiciels.fr/tracewin
Post Reply
United States of Americajyosk001
Beginner
Beginner
Posts: 8
Joined: Thu 19 Feb 2026 21:00
Country:
United States of America (us)
United States of America

Phase advance calculation bug

Post by United States of Americajyosk001 »

Dear Didier,

For some reason, the phase advance charts for my linac do not seem to plot past z=57 m correctly. It might have something to with a ~short transport section that starts around there, but I'm not sure. What do you think is going on?

I have attached the phase advance plots below. I will send you my TraceWin project files separately.

Thanks,

Josh Y.
k0 vs position
k0 vs position
k0_vs_Position.png (1.49 MiB) Viewed 42 times
sigma vs position
sigma vs position
sigma_vs_Position.png (1.6 MiB) Viewed 42 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 1268
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Phase advance calculation bug

Post by FranceDidier »

Dear Josh,

Using your file I got following plots, that seems correct !

Regards,

Didier
sig.png
sig.png (56.46 KiB) Viewed 24 times
ko.png
ko.png (58.78 KiB) Viewed 24 times
United States of Americajyosk001
Beginner
Beginner
Posts: 8
Joined: Thu 19 Feb 2026 21:00
Country:
United States of America (us)
United States of America

Re: Phase advance calculation bug

Post by United States of Americajyosk001 »

Hi Didier,

I'm not sure how you got those charts. When I try to plot the deg/m phase advances (abscissa=meter, ordinate=meter, phase advance = structure or beam), I get the following plots. I've also attached the associated ascii files. Did you modify the files in some way to get them to plot correctly?

Thanks,

Josh
k0m_vs_Position.png
k0m_vs_Position.png (1.45 MiB) Viewed 21 times
sigmam_vs_Position.png
sigmam_vs_Position.png (1.18 MiB) Viewed 21 times
Attachments
Chart_Phaseadvance(ko)(degsm).txt
(2.85 KiB) Downloaded 4 times
Chart_Phaseadvance(σ)(degsm).txt
(2.85 KiB) Downloaded 2 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 1268
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Phase advance calculation bug

Post by FranceDidier »

Dear Josh,

No I change nothing, please try to reload the code, perhaps I made some corrections without changing the version number and lets me know

Regards,

Didier
United States of Americajyosk001
Beginner
Beginner
Posts: 8
Joined: Thu 19 Feb 2026 21:00
Country:
United States of America (us)
United States of America

Re: Phase advance calculation bug

Post by United States of Americajyosk001 »

Dear Didier,

I tried deleting and redownloading the Tracewin.exe file...I guess it got corrupted somehow. I get the correct plots now.

Thanks!

Josh
Post Reply