First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
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.distmachinetrip(ibus=101, id='1 ') psspy.run(tpause=1.05) psspy.distclearfault() 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!
2 | No.2 Revision |
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:
following:
i=1
while i<=3
i<=3:
psspy.case('savcnv.sav')
psspy.rstr('savnw.snp')
psspy.strt(outfile='i.out')
psspy.run(tpause=1.0)
psspy.distmachinetrip(ibus=101, psspy.dist_machine_trip(ibus=101, id='1 ')
psspy.run(tpause=1.05)
psspy.distclearfault()
psspy.dist_clear_fault()
psspy.run(tpause=5.0)
i=i+1 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!