Rj. Dejus et A. Luccio, PROGRAM UR - GENERAL-PURPOSE CODE FOR SYNCHROTRON-RADIATION CALCULATIONS, Nuclear instruments & methods in physics research. Section A, Accelerators, spectrometers, detectors and associated equipment, 347(1-3), 1994, pp. 61-66
A computer code for calculating synchrotron radiation emitted by a rel
ativistic particle moving in an arbitrary three-dimensional magnetic f
ield is described. The electric and magnetic fields (Lienard-Wiechert
fields) are calculated in the time domain, and a Fourier transform of
the radiation field yields the radiation spectrum over a large range o
f harmonic frequencies. The code is completely general accepting eithe
r a measured magnetic field map or a simulated field representing, for
example, a tapered undulator. Simple expressions are derived for the
fields and the equations of motion using the transverse beam angles as
variables. The horizontal and vertical polarized components arc expan
ded to second order in the beam angles, the observation angles, and th
e opening angle of radiation (1/gamma), and the three-dimensional equa
tions of motion are solved numerically at each time step, making the c
ode fast and reliable. The beam emittance and the beam energy spread a
re simulated by either Monte Carlo sampling or deterministic sampling.
Comparison with two other codes will be presented. Good agreement was
found in both cases. As a practical example, we examined the effect o
f random magnetic field errors on the on-axis angular flux density for
Undulator A at the Advanced Photon Source. It was confirmed that rand
om magnetic field errors play an important role when predicting the sp
ectral performance of real-life insertion devices.