Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Parallel processing of jobs with openstudio

asked 2015-08-27 16:15:28 -0500

updated 2015-11-28 08:16:25 -0500

I know there are several options for running parallel jobs with OpenStudio (e.g. PAT with Amazon EC2, Openstudio Analysis Spreadsheet). Are there any parallel processing tools built directly into the OpenStudio run manager?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-27 17:31:11 -0500

You can use the setMaxLocalJobs method of ConfigOptions. Are you using RunManager through the Python bindings?

edit flag offensive delete link more


@macumber my intent is to use the runmanager with the python bindings, but I'd happy to use whatever the recommended workflow is. I have fairly large number of OSM files that I need to run and have access to a decent server.

I've found the workflow vs job vs jobfactory convention to be confusing. I've tried to follow the descriptions in the SDK documentation, but am still working through how to make it run my simulations in parallel.

jmcneill's avatar jmcneill  ( 2015-08-27 17:36:24 -0500 )edit

I think this test shows how to run OSMs in a decent fashion, you could just enqueue several jobs before unpausing. This code snippet shows how to make a config options (that you could call setMaxLocalJobs on) and the pass that to the RunManager:

openstudio::runmanager::RunManager rm;
openstudio::runmanager::ConfigOptions co = rm.getConfigOptions();
co.findTools(true, false, true, true);
macumber's avatar macumber  ( 2015-08-28 10:35:01 -0500 )edit

Are you just looking to run OSMs and not apply measures? Or are you looking to also apply measures?

macumber's avatar macumber  ( 2015-08-28 10:35:26 -0500 )edit

@rhorsey is adding a method to the OS-spreadsheet to batch run predefined datapoints.

BrianLBall's avatar BrianLBall  ( 2015-08-28 15:51:57 -0500 )edit

@jmcneill the batch run option in the OS-spreadsheet could be used for your use case with the ReplaceModel measure. If you come in next week we should give you an overview of that approach and see if it would work for you.

macumber's avatar macumber  ( 2015-09-02 00:13:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2015-08-27 16:15:28 -0500

Seen: 247 times

Last updated: Aug 27 '15