Title: Computer aided design of magnetic deflection systems