Utilizing DQ coordinate transformation for converting 3 phase to 2 phase referenced to the Stator. The inputs are the 3 phase voltage inputs (Van, Vbn, and Vcn). For the supplied parameters, the frequency of these inputs is 257 rad/sec and their 0 to peak amplitude is 364 volts. The load the motor is driving is a pure inertia in this model (the 1/J block). This block can be replaced with other loads as desired. The 5 outputs are Wr (motor rotor speed in rad/sec), Te (motor electromagnetic torque in Newton Meters), Ian, Ibn, Icn (Line to neutral output currents in amps)
Limitations:
1. Very slow running, RK4 integrator with stepsize = .00025 gives consistently good results."