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

Revision history [back]

In order to actually run a simulation, you must have the openstudio SDK installed separately (get it from here), so you can use the Command Line Interface (CLI) openstudio(.exe). Make a syscall to it once you've prepared your OSM model and Workflow JSON (workflow.osw).

import subprocess
subprocess.run(['openstudio', 'run', '-w', 'workflow.osw'])

example workflow.osw:

{
  "weather_file": "weather.epw",
  "seed_file": "model.osm",
}