Permanent Magnet Motor Simulator
Emetor: a PMSM design tool
... Here you can start doing some basic design end start to get the right skill to understand how motor works. Of course is a generic software so is not 100% correct , once you get very close to the physical limit the granularity of FEM (Finite Element Model) create some artifacts and deviance form the real world so get ready to have at least a 5% difference between the model and the real motor. ...
About the Finite Element Method