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

Adding summary reports through the Openstudio API

asked 2015-10-28 13:12:29 -0500

updated 2017-08-05 08:09:39 -0500

I'm trying to add the Component Sizing Summary Report in OS (i.e. How do I add the Component Sizing Summary Report in OS?) through the API directly. I keep having issues actually getting this to work within my RunManager job. Is there a way to add the report through createEnergyPlusPreProcessJob, or can I directly call the associated measure as a part of my workflow in the API?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-10-29 00:18:02 -0500

I think James is using RunManager to run these jobs so there is no way to inject the code that @David Goldwasser suggested without running a measure. I think this test has a decent example of how to add a measure to the workflow.

edit flag offensive delete link more

answered 2015-10-28 23:07:46 -0500

You can call measures from ruby. That's how we run measures for measure unit tests as described here. If you don't want to run a measure you can directly use the API as described below.

First add in the code from the other post that describes the object.

request = OpenStudio::IdfObject.load("Output:Table:SummaryReports,AllSummaryAndSizingPeriod;").get

Then add the line below to that code to add the object. These lines would be added after forward translation to IDF but before you run EnergyPlus.

object = workspace.addObject(request).get
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

Training Workshops

Question Tools



Asked: 2015-10-28 13:12:29 -0500

Seen: 195 times

Last updated: Oct 29 '15