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

Ask Your Question
0

Automated Simulations in PSSE

asked Oct 5 '15

FFL gravatar image

Hi everyone,

I would like to ask on how to automate simulations in PSS/E using python scripting or through PSEB/PSAS. Would be glad if you can provide a concise tutorial about this matter. Thanks.

Regards,

Francis

Comments

What type of simulations?

The simulations are contingency analysis (outage of equipment) and transient stability simulations (testing of fault clearing at different fault clearing times, etc.). Would be glad if you can provide even a helpful insights. Thanks

FFL gravatar imageFFL (Oct 7 '15)

1 answer

Sort by » oldest newest most voted
0

answered Oct 12 '15

SqFKYo gravatar image

For dynamics simulation in Python my basic workflow is something like this:

Initializing

psspy.case(case file converted.cnv)
psspy.rstr(dynamics file.snp)
psspy.strt(outfile=file to save.out)
psspy.run(tpause=time_before fault)

Applying fault

psspy.dist_bus_fault(faulted bus number)
psspy.run(tpause=time when the fault ends)

Clearing fault, tripping equipment and finishing simulation

psspy.dist_branch_trip(ibus=frombus, jbus=tobus, id=busid)
psspy.dist_machine_trip(ibus=<machine bus, id=machine id)
psspy.dist_clear_fault(1)
psspy.run(tpause=end time)

Extra: If you're using custom models, you'll also need to load the custom models:

psspy.dropmodellibrary(user_model.dll)
psspy.addmodellibrary(user_model.dll)

Chapter 4 in the API manual has tons of commands if you need something more specific.

link

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: Oct 5 '15

Seen: 2,441 times

Last updated: Oct 12 '15