The generic synchronous generator model implements the equations of the synchronous alternator in the Park axis (DQ), using Shutlz method. Since two sets of equations are necessary for D and Q axis, Figures below illustrate those sets of equations.
The third figure presents voltage, power and electromagnetic torque calculations to be used in the entire machine model.