Simulation of Beam Dynamics Including Space Charge in Proton Linac with Errors

The LANA computer code (Linear Accelerators Numerical Analysis) has been modified in order to study the effect of random errors on beam dynamics in proton or heavy ion linacs. The standard well known set of different errors of the accelerating and focusing channel including geometry misalignments in all directions, magnetic and electric field imperfections and accelerating field instabilities are simulated. Partial as well as cooperative effects of the errors are analyzed. The LANA code includes space charge forces in the beam, using certain approximations. A comparison of the errors effect on the beam parameters with and without space charge in the 30 mA proton linac is presented. As was found the error effect on beam dynamics is a main contribution on halo formation as well as on beam losses.