First time here? Check out the Help page!

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

Adding summary reports through the Openstudio API

asked 9 years ago

updated 7 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
3

answered 9 years ago

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.

Preview: (hide)
link
2

answered 9 years ago

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
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 9 years ago

Seen: 255 times

Last updated: Oct 29 '15