Magnet shape optimization of surface-mounted permanent magnet synchronous machine through FEA method