Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The easiest way would be to utilize the numpy Python package and make a filter based on the voltages. First you ask the pu-voltages of the buses and the numbers of the buses: (PSSE33 API here)

import numpy as np
_, (voltages, ) = psspy.abusreal(string='PU')
_, (buses, ) = psspy.abusint(string='NUMBER')
voltages = np.array(voltages)
buses = np.array(buses)
print(buses[voltages < 0.9])