First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked May 1 '13

The Bull gravatar image

Single line diagram generation from saved case (RIMUX method)

I don't know how the code written by rimux works ,GROWBUS api can only be used after you have opened saved case and here in this code no saved case file is opened ,and how to import excel file in psse which gives us bus numbers and bus locations (as suggested by rimux).Someone please guide me because i have tried many times but the above code is not working, following is the code developed by rimux

def DrawBusesSLD(buslist):

n_buses=len(buslist)
buses=[]
for i in range(n_buses):
    buses.append(buslist[i][0])

for i in range(n_buses):
    psspy.bsys(0,0,[0.0, 750.],0,[],1,[buses[i]],0,[],0,[])
    psspy.growbus(buslist[i][0],buslist[i][1], buslist[i][2])

psspy.bsys(0,0,[0.0, 750.],0,[],n_buses,buses,0,[],0,[])
for i in range(n_buses):
    psspy.growbus(buslist[i][0],buslist[i][1], buslist[i][2])

buslist=[[1000, 0, -3.4], [1001, 1.7, -5.1], [1002, 3.4, -5.1], [1003, 5.1, -3.4]]

DrawBusesSLD(buslist)

click to hide/show revision 2
No.2 Revision

updated May 8 '13

JervisW gravatar image

Single line diagram generation from saved case (RIMUX method)

I don't know how the code written by rimux works ,GROWBUS api can only be used after you have opened saved case and here in this code no saved case file is opened ,and how to import excel file in psse which gives us bus numbers and bus locations (as suggested by rimux).Someone please guide me because i have tried many times but the above code is not working, following is the code developed by rimux

def DrawBusesSLD(buslist):

def DrawBusesSLD(buslist):

    n_buses=len(buslist)
 buses=[]
 for i in range(n_buses):
     buses.append(buslist[i][0])

 for i in range(n_buses):
     psspy.bsys(0,0,[0.0, 750.],0,[],1,[buses[i]],0,[],0,[])
     psspy.growbus(buslist[i][0],buslist[i][1], buslist[i][2])

 psspy.bsys(0,0,[0.0, 750.],0,[],n_buses,buses,0,[],0,[])
 for i in range(n_buses):
     psspy.growbus(buslist[i][0],buslist[i][1], buslist[i][2])

buslist=[[1000, 0, -3.4], [1001, 1.7, -5.1], [1002, 3.4, -5.1], [1003, 5.1, -3.4]]

DrawBusesSLD(buslist)

-3.4]] DrawBusesSLD(buslist)