Awesome
SMEKlib
2D-FEA Library for Electrical Machines in Matlab
NOT ACTIVELY DEVELOPED ANY MORE - see the way-more-easy-to-use EMDtool http://www.smeklab.com/emdtool
Several simulation examples can be found under Examples.
For additional information, please refer to "A. Lehikoinen, T. Davidsson, A. Arkkio and A. Belahcen, "A High-Performance Open-Source Finite Element Analysis Library for Magnetics in MATLAB," 2018 The International Conference on Electrical Machines (ICEM) (in review), 2018."
A citation won't be minded, either :)
All copyright Antti Lehikoinen / Aalto University 2013-2018 unless otherwise stated.