The undulator is an insertion device used to generate the synchrotron radiation at a higher flux density than that from the bending magnet radiation. The photon energy (
The deviation from the sinusoidal field appears owing to the finite number of trapezoidal magnet blocks in a period (
An example of period 20 mm in a sinusoidal
Here, even if
The effective field can also be evaluated by using
The flux (
The maximum
U4Opt discloses these complex relationship among the parameters above. Users comprehend the principle of the undulator at a glance in two plots and tune the periodic length interactively.
The undulator period
can be optimized in the plot based on the magnet type
, gap
, flux
. To design the undulator specification in the synchrotron facility, U4Opt has been developed. The first prototype of the program is based on the Excel spreadsheet, and transfered to the macro in Igor Pro. Python code is now available. The coding is in progress, not well documented, but open for public for review.
The first concept of K-period
space analysis originates from the talk of Dr. Markus Tischer (DESY) in the ID23 workshop. Later, it was found that Joel Chavanne and Pascal Elleaume illustrate the original plot in Undulators, Wigglers and Their Applications edited by Hideo Onuki and Pascal Elleaume (Editors) p. 203.
The magnetic configuration can be selected in the pop down list. Users can tune the parameters from the default values in either (
by K. Halbach, J. Phys. Colloques 44, C1-211-C1-216 (1983) for a hybrid magnet (HYB), and
by K. Halbach, Nucl. Instrum. Methods 187, 109 (1981) for a pure permanent magnet (PPM). effective magnetic field
or K
can be evaluated in the Fourier transform of the field simulation in the Radia or in-situ measurement in magnet arrays.
Users can import and export the parameters as a preset (.dat) in Python version.
No emittance or energy spread are taken into account resulting in the single electron and Gaussian beam approximation. Further optimization including the end-magnet, phase error, and betatron function should be conducted in SPECTRA or SRW, SRW in OASYS, SRW in Sirepo or jupyter server.
Takashi Tanaka describes the universal representation of phase errors typically formulated below.
Jui-Che Huang describes the average brilliance by using electron beam emittance (
Here,
Here,
No warranty of U4Opt without errors. Python and Igor Pro work in the same manner, but Igor Pro runs faster than Python does. The data can be handled in Igor as a wave within the program and transformed in further analysis.
Install Python3 and pip3 install numpy, scipy, PyQt5, matplotlib, and reliability.
pip3 install numpy
pip3 install scipy
pip3 install pyqt5
pip3 install matplotlib
pip3 install reliability
Download this repository and run the main.py under the Python folder.
python3 main.py
Igor Pro version 8 or 9 (tested in Windows and macOS)
Open the procedure file, then compile it. Undulator is available in the macro menu. Select the plot in the popup menu of U4Opt interface.
The flux of multi-pole wiggler (MPW) and bending magnet (BM) radiation can be added in Igor version. The flux of MPW is limited at the horizontal acceptance angle of 1 mrad. The magnet type and periodic length of MPW are equivalent to those used in the undulator. The magnetic field of BM is evaluated from the beam energy because the circumarence is roughly proportional to the beam energy (Lightsources2018.csv). The on-axis angular flux density of BM is caluclated in
and MPW generates its
The power of MPW is typically too high to deliver the beam in the beamline optics system. Therefore, the power of MPW shown in https://www.cockcroft.ac.uk/wp-content/uploads/2014/12/Lecture-2.pdf determines the number of period or total length of wiggler. According to the acceptable maximum power and angle from MPW (
- Setup the basic parameters like the energy, current, length, and harmonic number.
- Choose the magnet type like PPM, hybrid, cryogenic, superconducting, and APPLE-II.
- Setup the plot ranges like the period, K, gap, flux, and energy.
- Adjust the period at the maximum K (minimum gap) in the variable or slider.
Note that the you may need update the plots from the popup menu after changes in ranges of gap, K, and period in Igor version.
-
The properties of undulator radiation, M.R. Howells and B.M. Kincaid (1993).
-
CERN Accelerator School : Synchrotron Radiation and Free Electron Lasers (1998). Insertion devices by A. Hofmann, K. Wille, and R.P. Walker
-
Insertion devices: undulators and wigglers, Richard P. Walker (1997).
-
Undulators, Wigglers and Their Applications edited by Hideo Onuki and Pascal Elleaume (2002).
-
The Science and Technology of Undulators and Wigglers, James A. Clarke (2004).
-
Insertion Devices as Highly-Brilliant Synchrotron Radiation Sources, Takashi Tanaka (2005). in Japanese