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

Ask Your Question
0

retrieve convergence status after power flow in python

asked Mar 24 '2

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

1 answer

Sort by » oldest newest most voted
1

answered Mar 24 '2

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.

link

Comments

great, thank you.

psse_user_88 gravatar imagepsse_user_88 (Mar 25 '2)

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

1 follower

Stats

Asked: Mar 24 '2

Seen: 735 times

Last updated: Mar 24 '22