0

retrieve convergence status after power flow in python

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

psse_user_88's avatar
31
psse_user_88
asked 2022-03-24 15:45:13 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

perolofl's avatar
3.8k
perolofl
answered 2022-03-24 17:02:26 -0500
edit flag offensive 0 remove flag delete link

Comments

great, thank you.

psse_user_88's avatar psse_user_88 (2022-03-25 05:03:25 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer