Electrical machine analysis using finite elements. (2017)