Automated Simulations in PSSE
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
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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
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.
Asked: 2015-10-05 02:35:17 -0500
Seen: 2,373 times
Last updated: Oct 12 '15
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