ACCURATE AND EFFICIENT COMPUTATION OF SYNCHROTRON RADIATION IN THE NEAR FIELD REGION

A computer code called Synchrotron Radiation Workshop (SRW) is presented. The code computes the synchrotron radiation from relativistic electrons with high precision and efficiency in the near and far field range. It accepts arbitrary magnetic field description which includes undulators, wigglers, bending magnets (central part and edges), quadrupoles, etc. The polarization, spatial and angular intensity and phase of the radiation, from the millimetre to very hard X-ray range, are accurately computed for a “filament” or “thick” electron beam. For long wavelengths, CPU-efficient SR propagation is implemented using Fourier Optics approach, which handles any number of drift spaces, diffracting apertures, lenses or focusing mirrors. Two examples of the computation illustrating some peculiarities of focusing the bending magnet and undulator radiation are presented.