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

What OpenStudio measure will create an EnergyPlus Zone Component Load Summary Report

asked 2022-10-19 10:20:20 -0600

RCulham's avatar

Adding an EnergyPlus ZoneComponentLoadSummary Report is easy in the EnergyPlus IDF Editor. In Obj 1 of the Output:Table:SummaryReports, all you have to do is select it from the drop-down list in one of the Report Name fields.

I created this OpenStudio EnergyPlus workspace measure:

image description

and received the following error:

* Severe * <root>[Output:Table:SummaryReports] - Object should have no more than 1 properties. * Fatal * Errors occurred on processing input file. Preceding condition(s) cause termination. ...Summary of Errors that led to program termination: ..... Reference severe error count=1 ..... Last severe error=<root>[Output:Table:SummaryReports] - Object should have no more than 1 properties.

I then opened up the OpenStudio IDF Editor and noticed the measure created a new Output:Table:SummaryReports object with ZoneComponentLoadSummary Report 1 in Obj2.

image description

So what the measure seems to be doing is appending the "call" for the ZoneComponentLoadSummary as a new object to the AllSummary report created by OpenStudio.

I am new to Ruby measure writing. Can my measure be modified to achieve this simple task?

Thank you for your assistance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-10-19 14:06:00 -0600

updated 2022-11-09 14:15:28 -0600

An easier way would be to create an OpenStudio measure with the following in the run method:

model.getOutputTableSummaryReports.addSummaryReport("ZoneComponentLoadSummary")

Your EnergyPlus model is adding a new instance of the Output:Table:SummaryReports object (with workspace.addObject) which EnergyPlus doens't like because there should only be one.

With your EnergyPlus measure, you would do this by getting the object and changing it with:

obj = workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType)[0]
obj.setString(0,"ZoneComponentLoadSummary")
edit flag offensive delete link more

Comments

Eric, I appreciate your answer to steer this measure in an easier direction. Within the measure, I created a new run method incorporating your Ruby statements, however I am getting a programming error. I am delving into the measure writing guide and other measure examples to see where I have gone amiss. Coming from an age-old background in Fortran programming, Ruby is a challenge for me.

RCulham's avatar RCulham  ( 2022-10-21 08:56:02 -0600 )edit

Feel free to post the error you're seeing, or even a link to the measure.rb file, and I'd be happy to take a look and try to help you out more. But you're doing the right things by consulting the guide and examples!

Eric Ringold's avatar Eric Ringold  ( 2022-10-22 10:34:33 -0600 )edit

I tried to do the same a few years ago but I couldn't achieve it:

Component Sizing Summary Report

obuchely's avatar obuchely  ( 2022-10-23 10:48:16 -0600 )edit

Good day Eric. I have been working with this measure. I had to drop the quotation mark in your code line at .to_IddObjectType) [0]

OpenStudio reports this error:

Applying ZoneComponentLoadSummary Result: Fail Error: undefined local variable or method model' for #<ZoneComponentLoadSummary:0x0001d37412eb90> C:/.../measures/zone_component_load_summary 1 1 1 1/measure.rb:36:inrun'

There seems to be code missing related to the model.get statement (line 36)

The measure should be located here: https://www.dropbox.com/s/g8ztq7cfvky...

If not, please let me know. Thankyou

RCulham's avatar RCulham  ( 2022-11-09 14:03:42 -0600 )edit

@RCulham Sorry about the erroneous quotation mark in my answer. In your measure you don't need the model line (line 36) - that is how you would accomplish the same thing using an OpenStudio measure (different type of measure which passes the OpenStudio model to the run method in the variable model). If you want to use an EnergyPlus measure, you would just need Lines 40 and 42.

Eric Ringold's avatar Eric Ringold  ( 2022-11-09 14:15:16 -0600 )edit

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

2 followers

Stats

Asked: 2022-10-19 10:20:20 -0600

Seen: 93 times

Last updated: Nov 09