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
3

OS v1.14 Output Table to IP Units Measure

asked 8 years ago

Tim Johnson's avatar

updated 7 years ago

I recently converted to OpenStudio 1.14 and can no longer run the "Set Output Table to IP Units" measure. Can someone help me modify the script to run with this version? Also, is there a way to get the OpenStudio output report and the EnergyPlus report in IP units? I am often running two separate simulations just to get the output reports I need. Thanks in advance!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

updated 8 years ago

I see the simulation failing in 1.14 with the 'Set Output Table to IP Units' measure, but it's not (directly) that measure's fault. The eplustbl.html is still created with IP units. The failure is with the OpenStudio Results measure, at line 254:

annual_peak_electric_demand_kw = OpenStudio.convert(sql_file.execAndReturnFirstDouble(annual_peak_electric_demand_k_query).get, 'W', 'kW').get

The measure is attempting a query of the SQL file that fails, because the lookup units are now wrong. The comments above that line explain:

# adding additional runner.registerValues needed for project scripts in 2.x PAT
# note: these are not in begin rescue like individual sections. Won't fail gracefully if any SQL query's can't be found

Paging @David Goldwasser.

Re: modifying the report script, there's some discussion on that here (the measure has changed somewhat since v1.9, but the concept should be the same). The measure currently checks the energyplus output units with the if statement at line 164. To get the measure to work with IP units you'd need to use that check to then change all the places where the measure calls OpenStudio.convert in 'os_lib_reporting.rb'.

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

Stats

Asked: 8 years ago

Seen: 326 times

Last updated: Mar 09 '17