Parametric Optimization of Undulators for NSLS‐II Project Beamlines

General optimization procedure, computation methods used, and the obtained optimal parameters of undulators for the NSLS‐II project beamlines are reported. The optimization starts with high‐accuracy calculation of undulator magnetic fields, using Radia magnetostatics code, for a large set of periods and vertical gaps of a given undulator type, given magnetic materials and a scalable magnet geometry. From the resulting magnetic fields, a sub‐set of undulator periods and the corresponding vertical gaps, providing the required low‐energy cut‐off values of spectral harmonics for each particular beamline, is determined. In parallel, from the same Radia undulator models, angular magnetic kick maps are calculated, and the insertion device effect on electron beam is simulated using Tracy‐2 tracking code based on symplectic integrator. After these simulations, magnet parameters are fine‐tuned and the maximal acceptable undulator lengths are determined for different straight sections, as functions of minimal gap an...