Calculation of coherent synchrotron radiation impedance using the mode expansion method

We study an impedance due to coherent synchrotron radiation (CSR) generated by a short bunch of charged particles passing through a dipole magnet of finite length in a vacuum chamber of a given cross section. In our method we decompose the electromagnetic field of the beam over the eigenmodes of the toroidal chamber and derive a system of equations for the expansion coefficients in the series. The general method is further specialized for a toroidal vacuum chamber of a rectangular cross section where the eigenmodes can be computed analytically. We also develop a computer code that calculates the CSR impedance for a toroid of rectangular cross section. Numerical results obtained with the code are presented in the paper.