SMS dit: Finite element analysis of electrical machines