The rotor flux angle code in the stuff that I sent isn't for a standard AC motor, but for a permanent magnet synchronous motor. Well, it didn't work on a quick test I did on a borrowed PMSM motor, hahaha, but that's what it's supposed to be for. For the PMSM motor, the rotor flux angle is exactly the same as the rotor position (plus some offset that you have to figure out), so Id, the magnetizing current is 0, since you get the magnetic field for free. I haven't tried to do the AC version, which has a few more messy formulas for indirectly computing the rotor flux angle.
|