Modeling of Permanent-Magnet Synchronous Machine Including Torque Ripple Effects | Synapse