1

How to Use Python bat command to simuliation on PSS/E?

I want to do a lot of tests to anlysis some features of the power system, so I want to ask if I can do this series of tests by Python batch command.

I have very limited knowledge about both PSSE and Python, so any tips and tricks (best practice) would be most welcome!

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!

anonymous user
asked 2013-09-07 05:26:23 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It sounds like you want to write a Dynamics routing as a Python script is that right?

Here are some commands and references to the documentation to get you started:

psspy.case('savcnv.sav')
psspy.rstr('savnw.snp')
psspy.strt(outfile='1.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)

If you've run PSSE studies by hand before, these commands should look somehow familiar to you.

There is much more information about PSSE and Dynamics with Python in Chapter 4 of the PSSE API document.

JervisW's avatar
1.3k
JervisW
answered 2013-09-11 00:44:23 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks a lot.

Bob's avatar Bob (2013-09-11 10:40:03 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer