# BM

## Function

To calculate synchrotron radiation distributions for bending magnets. It can calculate Flux and Power spectra as a function of photon energy or/and angle. It can be used for power calculations. The output can be written to files that will be later be used by xpower.

Produced results:

- Plot energy spectra

- Plot angular distribution (all wavelengths)

- Plot angular distribution (one wavelength)

- Plot (angular,energy) distribution

- View numerical values

## Documentation:

- application doc

- input parameters

## Technical aspects

- The interface is created using the automatic application generator xop_ifc

- Numerical calculations are done using the IDL functions:

- sync_ene.pro

- sync_ang.pro

- sync_f.pro

- sync_hi.pro

- sync_g1.pro

- Limitations:

- Emittance effects (electron beam size and divergences) are not included.