Sync-phase plot (partran) and set_beam_phase_error command under a single error run  [SOLVED]

https://www.dacm-logiciels.fr/tracewin
Post Reply
Japanryoichimiyamoto
Beginner
Beginner
Posts: 7
Joined: Thu 12 Oct 2023 11:27
Country:
Japan (jp)
Japan

Sync-phase plot (partran) and set_beam_phase_error command under a single error run

Post by Japanryoichimiyamoto »

Dear Didier,

I found issues related to beam phase when doing a single error run. In short, it seems that

- set_beam_phase_error command seems nor working in recent versions.
- There is something strange in the synchronous phase plot for a single error run. (Only for the partran result. Plot for the envelop looks fine.)

Please fine that the attached zip contains two projects (for a DTL with 3 tanks). In the reference project, the phase of the 1st gap is shifted by +15 deg by hand (the rest of the gaps are in the phase-mode 3) and the synchronous phase oscillate as seen in sync-phs_ref.png. In the other project, the same effect was introduced by an error command. The error is applied only to the 1st tank and the beam phase error is canceled for 2nd and 3rd tanks. As seen in sync-phs-err_envlp.png, the phase errors seem not canceled at the entrance of the 2nd and 3rd tanks. sync-phs_err_partran.png shows the result of partran for the same project. We can see that the results between envelop and partran are very different. (Thought looking at the phase centroid oscillation in the density file, the transport calculation seems done correctly.) Finally, sync-phs_err_envlp_old-ver.png shows the result from the same project, when running with a very old version (2.18.6.1). We can see that the result is identical to the reference case.

Hope this is clear enough. Thanks for your help in advance.

/Ryoichi
Attachments
sync-phs_err_envlp_old-ver.png
sync-phs_err_envlp_old-ver.png (48.71 KiB) Viewed 1150 times
sync-phs_err_partran.png
sync-phs_err_partran.png (26.17 KiB) Viewed 1150 times
sync-phs_err_envlp.png
sync-phs_err_envlp.png (28.53 KiB) Viewed 1150 times
sync-phs_ref.png
sync-phs_ref.png (26.91 KiB) Viewed 1150 times
test-err-sync-phs.zip
(361.22 KiB) Downloaded 65 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 984
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Sync-phase plot (partran) and set_beam_phase_error command under a single error run

Post by FranceDidier »

Dear Ryoichi,

Both problems have been solved.

Regards,

Didier
Japanryoichimiyamoto
Beginner
Beginner
Posts: 7
Joined: Thu 12 Oct 2023 11:27
Country:
Japan (jp)
Japan

Re: Sync-phase plot (partran) and set_beam_phase_error command under a single error run

Post by Japanryoichimiyamoto »

Dear Didier,

Thanks a lot for the prompt fix as usual. Although one minor thing is remaining. SET_BEAM_PHASE_ERROR command used to act on the location of the command, but now it seems acting at the exit of the following element. Is this the intended behaviour?

In the attached very simple example, I'm introducing an error to the first 3 gaps and then canceling the error for gaps #4-#6.
- Running the lattice "lat_without-zero-drift.dat", I get "test-set-beam-phs-error_without-zero-drift.png" as the sync phase and the sync phase at the 4th gap (around 0.3 m) still has an error.
- On the contrary, running the lattice "lat_with-zero-drift.dat", which has a zero drift before the 4th gap and after the SET_BEAM_PHASE_ERROR, I get "test-set-beam-phs-error_with-zero-drift.png". For this one, the sync phase at the 4th gap has no error.

Please kindly let me know if you want to keep the old way or this is how the commend is meant to work from now on.

Best regards,

/Ryoichi
Attachments
test-set-beam-phs-error_without-zero-drift.png
test-set-beam-phs-error_without-zero-drift.png (27 KiB) Viewed 1055 times
test-set-beam-phs-error_with-zero-drift.png
test-set-beam-phs-error_with-zero-drift.png (26.59 KiB) Viewed 1055 times
test-set-beam-phs-err.zip
(347.45 KiB) Downloaded 56 times
User avatar
FranceDidier
Administrator
Administrator
Posts: 984
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Sync-phase plot (partran) and set_beam_phase_error command under a single error run  [SOLVED]

Post by FranceDidier »

Dear Ryoichi,

it's fixed.

Regards,

Didier
Post Reply