Depending on the electron beam emittance and the wavelength the synchrotron radiation of third generation machines may have a high degree of coherence. Fourth generation light sources are explicitly designed for the production of coherent radiation. Ray tracing codes are not the appropriate tool to describe the effects of coherent radiation. Two methods can be used for the propagation of coherent beams.
The code PHASE which has been developed over the last years for BESSY II and other light sources includes both propagation techniques. Since the simulation principles are different the actual problem defines the choice of the simulation strategy.
PHASE is a versatile tool for the optical design of synchrotron radiation beamlines. It is based on analytic expressions for nonlinear transformation of beam coordinates across optical elements. The optical elements are described with 70x70 matrices and a complete beamline is represented by the product of the individual matrices. The code offers various modes of operation:
The code can be used either with a Motif based user interface or in a batch mode. Recently, an IDL interface has been developed to provide more flexibility to the user.
Fig. 1: PHASE output for a ray tracing run of. The focus of hard edged source using a toroidal grating with variable line density grating is plotted. The parameters of the VLS grating have been optimized automatically with PHASE.
Fig. 2: PHASE output for a physical optics run. Intensity distribution from an undulator focused in 5:1 demagnification by a toroidal mirror, with a 0.4mm slit in the 'source' plane (M. Bowler, private communication).