First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
You can use BUS_NUMBER. Check section 2.8 in API.
I haven't tried this, but I'm pretty sure this should work:
ierr, iarray = abusint(-1, 2, 'NUMBER') # Get bus numbers
for x in range(0,len(iarray)):
ierr = psspy.bus_number(iarray[x],100000+iarray[x]) # Change bus numbers
PSS/E should automagically change the bus numbers for all other equipment.
Hope this helped!
2 | No.2 Revision |
You can use BUS_NUMBER. Check section 2.8 in API.
I haven't tried this, but API. I'm pretty sure this the following should work: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!
3 | No.3 Revision |
You can use BUS_NUMBER. Check section 2.8 in API. 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!