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

Revision history [back]

click to hide/show revision 1
initial version

I’m not familiar with running parametric analyses in OpenStudio or DesignBuilder, but here’s my approach for parallel processing using multiple CPU cores in a Windows/Linux environment with Python:

  1. Parameter Assignment: Write a function to apply specific parameters or inputs to your IDF file (see the EPPY library for reference).

  2. Temporary Workspace: Within that function, create random temporary folders to store copies of your IDF and EPW files for each run (see the tempfile module).

  3. Parallel Execution: Implement multiprocessing to run multiple simulations in parallel, leveraging all available CPU cores (see the multiprocessing module).

Note: Be sure to clean up by deleting all temporary folders and files once the simulations have finished. In Windows, the multiprocessing module was previously limited to a maximum of 64 CPU cores. I’m not sure if this limitation still applies.

I’m not familiar with running parametric analyses in OpenStudio or DesignBuilder, but here’s my approach for parallel processing using multiple CPU cores in a Windows/Linux environment with Python:

  1. Parameter Assignment: Write a function to apply specific parameters or inputs to your IDF file file. And assign the correct Energy+.idd path. (see the EPPY library for reference).

  2. Temporary Workspace: Within that function, create random temporary folders to store copies of your IDF and EPW files for each run (see the tempfile module).

  3. Parallel Execution: Implement multiprocessing to run multiple simulations in parallel, leveraging all available CPU cores (see the multiprocessing module).

Note: Be sure to clean up by deleting all temporary folders and files once the simulations have finished. In Windows, the multiprocessing module was previously limited to a maximum of 64 CPU cores. I’m not sure if this limitation still applies.