Ask Your Question

Use multiple Processor for PSSE Dynamics Run

asked 2019-08-26 13:06:01 -0500

ddhungana gravatar image

Is there an easy way via python scripting to use multiple cores on a single computer for PSSE Dynamics Run. It is taking too long to complete dynamics runs, and I suspect the default system is only using a single core. Any help will be appreciated.

edit retag flag offensive close merge delete


Thank you all for your responses. This is adequate information for me to get started.

ddhungana gravatar imageddhungana ( 2019-08-29 10:05:48 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2019-08-29 08:11:46 -0500

bronco7TX gravatar image

updated 2019-08-29 08:14:28 -0500

Python also has the ability to split work across multiple cores. Some sample code below on how we run multiple dynamic simulations on the same machine in parallel. Be careful on how many workers you add. The problem can become I/O with all the data from the multiple runs and running 4 in parallel will not be 400% faster than running 1. You get a diminishing rate of return the more cores you add. With this code, you can easily play around with how many cores you want to use and find the optimal number for your machine.

Sample code:

import multiprocessing
from multiprocessing import Process
from multiprocessing import Pool

workers = multiprocessing.cpu_count() - 1 # Run on N-1 cores on local machine
p = Pool(workers), tests) # run_test is a function you call in parallel, tests is an array of data that gets passed to the function (could be case name, snapshot, fault name, etc...)

def run_test(test):
    # Run you stability run here...
edit flag offensive delete link more

answered 2019-08-26 13:34:54 -0500

jconto gravatar image

Check the post "Python Parallel Dynamics Simulations", with a link to my python tool MPjobs.

edit flag offensive delete link more

answered 2019-08-26 13:28:36 -0500

ademuth93 gravatar image

You may know this already, but Siemens sells a "Parallel Dynamics Module," which I'm sure will fit your needs. There is a 1-month free trial available by the looks of it. I'm sure it's quite expensive after that.

I couldn't tell you if there's a good way of parallelizing a dynamics run with Python.

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

1 follower


Asked: 2019-08-26 13:06:01 -0500

Seen: 87 times

Last updated: Aug 29 '19