With voltages as input, and choosing the speed ωd of the dq windings, the flux linkages are calculated as shown in Fig. 3-7 using Eq. (3-38) and Eq. (3-39) derived earlier. The currents are calculated using Eq. (3-62) derived above. Combining these with the torque equation Eq. (3-47) and the electrodynamics Eq. (3-48), we can draw the overall block diagram for computer modeling in Fig. 3-12.