Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The time under fault (5 sec = 15-10) is too long! Check the examples below. Check the commands at API manual for details.

# fault at branch 2-3-'1':
psspy.run(0, 10.0,9,9,0)           #run to 10 sec (second value)
psspy.dist_branch_fault(2,3,r"""1""",1, 0,[0.0,-0.2E+10])
psspy.run(0, 10.15,5,1,0)             #run under fault for 0.15 sec = 9 cycles @ 60 Hz
psspy.dist_clear_fault(1)
#psspy.dist_branch_trip(2,3,r"""1""") 
#continue with simulation
psspy.run(0, 21.0,9,9,0)

# fault at bus 2:
psspy.run(0, 10.0,9,9,0)
psspy.dist_bus_fault(2,1, 0,[0.0,-0.2E+10])
psspy.run(0, 10.1,1000,1,0)          #run under fault for 0.1 sec = 6 cycles @ 60 Hz
psspy.dist_clear_fault(1)
#psspy.dist_branch_trip(2,3,r"""1""") 
#continue with simulation