This model based on the angular momentum balance, which depends on the turbine shaft power, the friction loss in the aggregate rotation and the power taken up by the generator.
The generator can be loaded either:
Pload should be set to 0 in this case.Pload specifying the connected electrical load.