Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to change bus status in PSS/E?

I am trying to identify the buses in PSS/E which are generator buses but have no units connected to them. After this, the bus type of these buses will be converted to 1.

The written code is: psspy.bsys(1,1,[0.0, 1200],0,[],0,[],0,[],0,[]) ierr, [busnumber, bustype, buszone, busowner] = psspy.abusint(sid=1,flag=2,string=['NUMBER','TYPE','ZONE','OWNER']) for k in range(len(bustype)): ierr,Totals,moto = psspy.scal2(0,0,1,[0,0,0,0,0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0]) if Totals[8] == 0: psspy.buschng4(busnumber[k],0,[1,i,i,i],[f,f,f,f,f,f,f],s) else: psspy.buschng4(busnumber[k],0,[2,i,i,i],[f,f,f,f,f,f,f],s)

How to change bus status in PSS/E?

I am trying to identify the buses in PSS/E which are generator buses but have no units connected to them. After this, the bus type of these buses will be converted to 1.

The written code is: psspy.bsys(1,1,[0.0, 1200],0,[],0,[],0,[],0,[]) ierr, [busnumber, bustype, buszone, busowner] = psspy.abusint(sid=1,flag=2,string=['NUMBER','TYPE','ZONE','OWNER']) for k in range(len(bustype)): ierr,Totals,moto = psspy.scal2(0,0,1,[0,0,0,0,0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0]) if Totals[8] == 0: psspy.buschng4(busnumber[k],0,[1,i,i,i],[f,f,f,f,f,f,f],s) else: psspy.buschng4(busnumber[k],0,[2,i,i,i],[f,f,f,f,f,f,f],s)