Ask Your Question
0

pause psspy.run based on the status of a monitored variable (to simulate an SPS)

asked 2019-02-04 21:46:50 -0500

Peter B gravatar image

updated 2019-02-04 21:47:17 -0500

Hi there,

In PSS/E dynamics I want to model a Special Protection Scheme (SPS), that takes some action (e.g. tripping specific generators, lines or loads) based on the value of some other monitored parameter or parameters (e.g. voltage/frequency at a given bus, flow on particular lines etc).

To achieve this, I think I'll need to be able to monitor the relevant parameters (easily done), and then when they reach given value(s), pause the dynamic simulation (the part I don't know) and take whatever is action is relevant (via some python command - easy), and then set psspy.run going again.

psspy.run syntax is below. It will run until time tpause, which must be a real number. I don't know how to pause the simulation other than that.

psspy.run(option, tpause, nprt, nplt,crtplt)

Does anyone know if it's possible to pause a simulation based on a monitored variable criteria? I fear that if it can't be done my only option will be to write a bespoke dynamic model in Fortran.

P.S. I know about load trip relay models etc in PSS/E. They won't achieve what I'm trying to do, which is monitor element X trip element Y.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-06 05:54:44 -0500

perolofl gravatar image

Only a dynamic model can pause an ongoing simulation so you have two options:

1) Write a dynamic model to stop the ongoing simulation.

2) Use a Python loop to advance the simulation in small steps with psspy.run, checking the monitored parameters and perform any necessary action in each loop.

edit flag offensive delete link more

Comments

Thanks perolofl, I feared that would be the case. I thought of the loop solution as well, but I anticipate it will make my simulation very slow. I'll do some experimentation and see how I go. I may also see if I can take this opportunity to learn how to code my own dynamic model.

Peter B gravatar imagePeter B ( 2019-02-06 16:35:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2019-02-04 21:46:50 -0500

Seen: 623 times

Last updated: Feb 06 '19