Bus type code
Is there a Python command that returns the bus type code when it is "-2"? From what I have noticed so far, it always returns "2", even when the generator’s Q has reached its limits and the bus type in Python should be shown as "-2".
Is there a Python command that returns the bus type code when it is "-2"? From what I have noticed so far, it always returns "2", even when the generator’s Q has reached its limits and the bus type in Python should be shown as "-2".
The bus code is not -2, it is still 2. The '-'-sign is just a flag in the reports that the generator is at a reactive power limit.
Check QGEN versus QMAX and QMIN to determine if the generator is at a limit.