Can you help me to review a Python program for PSS/E simulation?
I now want to do simulations from Python not PSSE, but I can 't figure out how to do it. For example,trip Generator1 the out file name 1.out,trip Generator2, the out filee name 2.out.and so on. Thanks a lot! The commands are following:
i=1
while i<=3:
psspy.case('savcnv.sav')
psspy.rstr('savnw.snp')
psspy.strt(outfile='i.out')
psspy.run(tpause=1.0)
psspy.dist_machine_trip(ibus=101, id='1 ')
psspy.run(tpause=1.05)
psspy.dist_clear_fault()
psspy.run(tpause=5.0)
i=i+1
Is this OK? How can I do to name the outfile as a variable when the 1st (i=1) simuliatin 1.out the 2nd(i=2) simulation 2.out
I do not know how to do this properly ,please give some advices,Thanks a lot!
Could you possibly format your code so it is readable on here? What is your exact problem? Are you able to run the code? If so is it throwing error messages at you? Please try to define the problem more precisely, as that will increase the likelihood of you getting good help