Second example 'from voltage source to generator model' with additional turbine.
Lower part of example (for comparison with and interpretation of upper part):
simplest generator description as a "voltage behind reactance".
Upper part: 3-winding generator model, isotrope with x_d = x_q.
Instead of a fixed power-angle as in the previous example, a turbine delivers the appropriate power. The correspondence is still:
V_gen1.alpha0 ~ generator.powerAngle (mod 2pi) V_gen1.v0 ~ exciter.v_f
In both cases the terminal voltage is fixed by the bus voltage. The results should coincide.
See and compare for example:
sensor.p[1:2] active and reactive power V_gen1.alpha0 with gen.powerAngle.