Pātuhitia tēnei: Finite element analysis of electrical machines