First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
It sounds like you want to get a list of all the loads. To identify every load, you'll need the load IDs and bus numbers. The functions you'll need are aLoadChar and aLoadInt respectively. Use an SID of -1 to assume all buses and FLAG of 4 for all loads on those buses.
ierr, busIDs = psspy.aloadchar(sid=-1, flag=4, string="ID")
ierr, busNums = psspy.aloadint(sid=-1, flag=4, string="NUMBER")
Now that you have arrays of the bus IDs and bus numbers, you can step through them and use functions like load_data() to get more information for each load. For line data, look for the functions starting with "abrn". P.S. Remember to use the voting buttons to up-vote answers, and the tick button to mark as correct.