lehnertu / TEUFEL

THz Emission from Undulators and Free-Electron Lasers
GNU General Public License v3.0
6 stars 2 forks source link

trajectories near hard field edges #28

Open lehnertu opened 3 years ago

lehnertu commented 3 years ago

When a particle enters or leaves a hard-edge dipole, the amount of bending in that step depends on the exact position of the beginning and end of that step. This can be different for different particles and introduce an artificial angular spread. A refinement (subdivision) of those steps is desirable. This could be accomplished by querying the lattice elements if a step would cross an edge and deliver a crossing position for a step subdivision.

lehnertu commented 3 years ago

This subdivided step should still be stored as a single step in the trajectory. Otherwise it would break some of the observer code.

lehnertu commented 3 years ago

The SDDS beam example (chicane bunch compressor) can serve as a test - the horizontal emittance should be preserved.

lehnertu commented 2 years ago

Have defined a soft-edge dipole to make this issue less important