Revision history  [back]

You can use BUS_NUMBER. Check section 2.8 in the API-document. I'm pretty sure the following should do the trick:

ierr, iarray = abusint(-1, 2, 'NUMBER')  # Get bus numbers
                                         # -1 is to use a subsystem with all buses
                                         # 2 is to include all buses, not only in-service buses

for x in range(0,len(iarray)):
    ierr = psspy.bus_number(iarray[x],100000+iarray[x])  # Change bus numbers
                                         # iarray[x] is the current bus number
                                         # 100000+iarray[x] is the new bus number

PSS/E should automagically change the bus numbers for all other equipment.

Hope this helped!

You can use BUS_NUMBER. Check section 2.8 in the API-document. API.

I haven't tried this, but I'm pretty sure the following this should do the trick:work:

ierr, iarray  iarray =  abusint(-1,  2, 'NUMBER' 'NUMBER')  # Get bus   # Get bus numbers
                                         # -1 is to use a subsystem with all buses
                                         # 2 is to include all buses, not only in-service buses

for  x  in  range(0,len(iarray)):
        ierr  =  psspy.bus_number(iarray[x],100000+iarray[x])  # Change bus   # Change bus numbers
                                         # iarray[x] is the current bus number
                                         # 100000+iarray[x] is the new bus number

PSS/E should automagically change the bus numbers for all other equipment.

Hope this helped!