We use a simulator that directly allows including the circuit, machine, load and control in one schematic, also animates the position of the rotor, etc.
You can do pmsm with foc as well as bldcm with hall or sensorless back emf detection. Below a screenshot of the bldcm.