First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

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

asked Sep 7 '13

anonymous user

Anonymous

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!

1 answer

Sort by » oldest newest most voted
0

answered Sep 11 '13

JervisW gravatar image

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.

link

Comments

Thanks a lot.

Bob gravatar imageBob (Sep 11 '13)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Sep 7 '13

Seen: 1,795 times

Last updated: Sep 11 '13