Rotating electrical machinery was considered a solved problem and kind of boring until about 20 years ago. Then people started using semiconductor switches to drive electric motors. Classic theory assumed you were driving motors with a sine wave. Motor controllers tried to make motors happy by providing a sine wave, or something close to one. Gradually it was realized that motors could be purpose designed for chopped waveforms. This broke all that beautiful closed-form math and charts on polar graph paper that goes back to Tesla. You have to simulate to design a modern electric car motor.