Modeling of permanent magnet motor drives | Synapse