svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
54 stars 27 forks source link

[BUG] wrong default roll-off parameters for helical undulators. #109

Closed svenreiche closed 11 months ago

svenreiche commented 11 months ago

Describe the bug Using undulators in helical mode does not reproduce balanced focusing and still uses kx = 1 and ky = 0 as roll-off parameters. Explicitly setting these paramters to 0.5 each solves it but it should be part of the default behaviour.

The coupling is not affected and shows the correct scaling.

To Reproduce A file is attached which shows the electron beam size. IT is clear that the blue curve (beam size in x) reflects a drift while in y it is focussed. Screenshot from 2023-09-25 14-25-41

svenreiche commented 11 months ago

Solved it for the latest repository in dev branch