Ask Your Question
0

retrieve convergence status after power flow in python

asked 2022-03-24 15:45:13 -0500

psse_user_88 gravatar image

Hello,

Up to now, I have used this script for creating 24 cases in PSSE(one day), using python to read load, generation, branches status, choose swing node for different scenarios ect.

https://drive.google.com/file/d/1fiOUOSUqiIUZA8tkIkxnKBwclqYNjmCs/view?usp=sharing (link text)

I need to make the following updates to my script:

  1. create a table for reporting the convergence status of each case. is there a command to retrieve for each run of power flow, the messages whether the case did converge or not? I mean to retrieve the part "reached tolerance..in 5 iterations"

This would help, so the user at the end of the run of the script will know if any case did not converge.

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2022-03-24 17:02:26 -0500

perolofl gravatar image

Use API ival = psspy.solved() to retrieve the status of the solution attempt.

ival = 0 if solution met convergence tolerance. ival > 0 otherwise.

See API manual for details.

edit flag offensive delete link more

Comments

great, thank you.

psse_user_88 gravatar imagepsse_user_88 ( 2022-03-25 05:03:25 -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: 2022-03-24 15:45:13 -0500

Seen: 654 times

Last updated: Mar 24 '22