In design and optimization of electrical machines, accurate models of the electromagnetic fields are important to predict the performance of the machine. The finite element method (FEM) is often used, because of its ability to produce accurate results when it is correctly utilized. However, the method can be demanding in terms of memory and relatively slow in terms of computation time. Therefore, semi-analytical models have been proposed over the years for increasingly complex structures in both 2D and 3D. One of the semi-analytical models is the harmonic modeling technique [1], [2], [3], which uses a Fourier bases to describe the solutions to electromagnetic field quantities. In many electromagnetic configurations, accurate results are obt...