Seminars

WAVE - A General Purpose Code for Synchrotron Radiation

by Michael Scheer, Helmholtz-Zentrum Berlin für Materialien und Energie

Europe/Berlin
AER 19, R. 3.11 (European XFEL)

AER 19, R. 3.11

European XFEL

Description
WAVE has been developed at BESSY over the years to calculate synchrotron radiation for almost arbitrary magnetic fields with high precision. The program also offers a variety of subroutines to calculate and manipulate magnetic fields as well as generating functions for symplectic tracking calculations. The main features and options are: Calculation and manipulation of magnetic fields. Helical and planar insertion devices can be modeled analytically or as permanent magnet structure including field errors. Magnetic fields can be read from and written to field map files. They can be parametrized and interpolated in a Maxwell-conform way. Synchrotron radiation is calculated in terms of brightness, amplitude, polarization (Stokes-vectors), and phase of the irradiated field (acceleration and velocity terms) of an electron traveling through an arbitrary magnetic field. The calculations can be performed numerically (e.g. for undulators or for edge radiation) or by application of Schwinger's formula. Spatial and spectral distributions of synchrotron radiation and irradiated power are calculated taking beam emittance and energy spread into account. Filters and detector efficiency functions can be applied and absorbed dose rate can be calculated. Huygens' principle is applied for the propagation of the irradiated field. Accelerator physics routines cover tracking of electrons through arbitrary magnetic fields, linear transfer matrices and generating functions for external symplectic tracking codes, effects of insertion devices on beam emittance, energy spread, and beam polarization, as well as the calculation of integrated quadrupole and sextupole terms of magnetic fields. Interfaces are provided for user I/O routines handling e.g. magnetic fields and tracking steps as well as data files of the calculated radiation for the ray-tracing codes RAY and PHASE. WAVE has been used for the design of all insertion devices and the investigations of the insertion device – electron beam interaction, in particular of the superconducting wave-length shifters and wigglers at the storage ring BESSY II. New features under development are the tracking of many particles in a phase space, the calculation of coherent radiation, and parallel processing on a computer cluster.