7

Adding summary reports through the Openstudio API

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?

jmcneill's avatar
1.7k
jmcneill
asked 2015-10-28 13:12:29 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 08:09:39 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

3

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.

macumber's avatar
12k
macumber
answered 2015-10-29 00:18:02 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
2

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
David Goldwasser's avatar
20.4k
David Goldwasser
answered 2015-10-28 23:07:46 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments