Ask Your Question

Open several psspy-instances from Python

asked 2015-02-19 05:50:15 -0500

Transmission Impossible gravatar image

updated 2015-02-24 04:49:24 -0500

Is it possible to have open several sav-files in Python, and do operations on them in parallel. For instance, I may want to run load flow analysis on two different load scenarios, or different topologies for the same power system and compare them. I would like to do something like:


And compare the branch flows etc. Is this possible? Any help is greatly appreciated!

edit retag flag offensive close merge delete


Thank you both jconto and sheng! I think I understand how it works now, and how I can solve the issues I'm having.

Transmission Impossible gravatar imageTransmission Impossible ( 2015-02-23 05:52:45 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-22 10:40:41 -0500

jconto gravatar image

You cannot access the memory data in one PSSe GUI instance from a second PSSe GUI instance. Complementing Sheng's answer:

step1: run your LF activities (in parallel, distributed in several pcs or serially). Save the cases.

step2: run a python script to work on comparing (PSSe has an activity to compare two cases) the cases - you can process the cases within a loop to extract the information to be compared and write it to a csv file.

step3: The output csvfile can be loaded to excel for quick comparison of the variables of interest (or post-processed with a third python code)

edit flag offensive delete link more

answered 2015-02-19 06:26:52 -0500

sheng gravatar image

I'm not sure what you have proposed will work.

Try using the Python Multiprocessing module--I have used it to run multiple instances of PSSE to perform tasks currently.

However if you are only solving couple of load flows, it is probably not worth the trouble.

edit flag offensive delete link more


Thanks for the answer. I'm new to Python, so I don't really understand how the information is stored. I assume it's inside some object in the module psspy, but I'm not really sure. Is psspy a module that can only handle one object at a time? If the terminology I'm using is wrong, please correct it=)

Transmission Impossible gravatar imageTransmission Impossible ( 2015-02-20 03:37:59 -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


Asked: 2015-02-19 05:50:15 -0500

Seen: 1,085 times

Last updated: Feb 24 '15