ocelot icon indicating copy to clipboard operation
ocelot copied to clipboard

add end_poles to Undulator class (draft)

Open andre-trebushi opened this issue 4 years ago • 0 comments

Added end_poles to Undulator class as it was an argument of track4rad_beam(), calculate_radiation() etc. functions. Now you can switch on/off end_poles for your undulators in MagneticLattice(). This made to emulate phase shifters consisting of, basically, 2*undulator periods or 1.5 periods (Lu, H. H., Li, Y. & Pflueger, J. The permanent magnet phase shifter for the European X-ray free electron laser. 2009) where end_poles are not needed, see figures in attachment.

Some other minor changes also were introduced.

Screenshot from 2021-10-01 10-49-00

Screenshot from 2021-10-01 10-47-12 .

andre-trebushi avatar Oct 01 '21 09:10 andre-trebushi