First time here? Check out the Help page!
1 | initial version |
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",
}