Scripting Approach for 3D FEM Analysis of PMSMs | IEEE Conference Publication | IEEE Xplore