Ask Your Question
0

Storing PSSE data in python variables

asked 2017-12-19 19:17:17 -0500

camerond12 gravatar image

Hello,

Going through the API, I have noticed that there are a bunch of functions which return a value. An example of this would be the function 'abusint', where in the script, you can store something as 'bus = abusint(...)'.

My question is if there is a way to do this for the functions that don't specify that they return a value.

My specific case includes the fnsl function. From my understanding, calling this function executes the newton load flow study and outputs the results in the python terminal. Is there a way to store these results in my own variable so that I can reference them and store them into excel?

There is a case where executing a fault study analysis and exporting the results to excel was done using the pssarrays class, (object = pssarrays.iecs_currents) and this would return an object which you could access in python and grab its results for different cases (3phase, line to line etc...)

How can you do this using the API functions such as fnsl and others?

Thanks a tonne in advance!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-12-22 01:36:08 -0500

SqFKYo gravatar image

What do you need from the output? If you're only interested in whether or not it was successful and post-powerflow mismatch, you can call psspy.solved() and psspy.sysmsm() functions to get the two out without changing where the input goes.

edit flag offensive delete link more
0

answered 2017-12-21 17:46:18 -0500

nelak gravatar image

I think you can use ierr = report_output(islct, filarg, options)

edit flag offensive delete link more

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

Stats

Asked: 2017-12-19 19:17:17 -0500

Seen: 6,075 times

Last updated: Dec 22 '17