Ask Your Question

gaurab_dash's profile - activity

2022-06-11 14:03:33 -0500 received badge  Famous Question (source)
2022-06-08 23:25:04 -0500 received badge  Notable Question (source)
2022-06-08 03:32:33 -0500 commented answer How to change bus type in PSS/E?

Thank You. It works.

2022-06-08 00:03:01 -0500 received badge  Popular Question (source)
2022-06-07 05:13:21 -0500 received badge  Editor (source)
2022-06-07 05:12:34 -0500 asked a question How to change bus type 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)