Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@jconto

Thanks for your answering. My IEEE 39 file was downloaded from your Google drive.To do dynamic simulation, I added the 0 sequence data in the sav file, but when doing simulation in the python environment the whole simulation process will prompt "Network not converged".The script is as follows:

# open .sav file
psspy.case(r"""D:\IEEE39_dyr_test\IEEE39_jconto_file_fixed\IEEE39_v33_change.sav""")
psspy.fnsl([0,0,0,1,1,0,-1,0])
psspy.cong(0)
psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0])
psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0])
psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0])
psspy.fact()
psspy.tysl(0)

# open .dyr file for dynamic simulation
# 1 for original dyr file
# 2 for modified dyr file 
dyr_flag = 1
if dyr_flag == 1:
    psspy.dyre_new([1,1,1,1],r"""D:\IEEE39_dyr_test\IEEE39_jconto_file_fixed\IEEE39.dyr""","","","")
elif dyr_flag == 2:
    psspy.dyre_new([1,1,1,1],r"""D:\IEEE39_dyr_test\IEEE39_jconto_file_fixed\IEEE39_pdf.dyr""","","","")

# set output channells
psspy.chsb(0,1,[-1,-1,-1,1,1,0])    # ANGLE
psspy.chsb(0,1,[-1,-1,-1,1,13,0])   # VOLT

# create .out file
psspy.strt_2([0,1],r"""D:\IEEE39_dyr_test\IEEE39_jconto_file_fixed\test1.out""")
psspy.run(0, 1.0,0,1,1)    # run to 1.0 seconds after initiate  

# apply unbalanced-branch-fault between bus1 and bus2
psspy.dist_spcb_fault_2(1,2,r"""1""",[3,0,3,1,0,0,1],[ 0.425,0.0,0.0,0.0,0.0])
psspy.run(0, 1.05,0,1,1)   # run to 1.05 seconds after applying fault  

# clear fault
psspy.dist_clear_fault(1)
psspy.run(0, 10.0,0,1,1)  # run to 10 seconds after clearing fault