Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for y in range(30,50,10): x = 1+y*.001

psspy.case(r"""C:\SAVNW\C.cnv""")
psspy.rstr(r"""C:\SAVNW\C.snp""")

OutFileName = 'ANGL_test'+str(y)+'.out'

psspy.bsys(1,0,[0.0,0.0],0,[],3,[102],0,[],0,[])
psspy.chsb(1,0,[-1,-1,-1,1,1,0])
psspy.strt(0,OutFileName)

psspy.run(0, 1.0,1,1,0)
psspy.dist_bus_fault(151,1,0.0,[0.0,-0.2E+10])
psspy.run(0,x,1,1,0) 
psspy.dist_clear_fault(1)

for t in range(2,10,1):
    psspy.run(tpause = 2)       
    if psspy.chnval(1) < -1000 or psspy.chnval(1) > 1000:       
        break

for y in range(30,50,10): x = 1+y*.001

psspy.case(r"""C:\SAVNW\C.cnv""")
psspy.rstr(r"""C:\SAVNW\C.snp""")

OutFileName = 'ANGL_test'+str(y)+'.out'

psspy.bsys(1,0,[0.0,0.0],0,[],3,[102],0,[],0,[])
psspy.chsb(1,0,[-1,-1,-1,1,1,0])
psspy.strt(0,OutFileName)

psspy.run(0, 1.0,1,1,0)
psspy.dist_bus_fault(151,1,0.0,[0.0,-0.2E+10])
psspy.run(0,x,1,1,0) 
psspy.dist_clear_fault(1)

for t in range(2,10,1):
    psspy.run(tpause = 2) t)       
    if psspy.chnval(1) < -1000 or psspy.chnval(1) > 1000:       
        break