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 2017-03-09 09:25:26 -0600

Tim Johnson's avatar

updated 2017-08-05 07:54:32 -0600

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-09 10:08:30 -0600

updated 2017-03-09 10:17:09 -0600

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'.

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

Careers

Question Tools

Stats

Asked: 2017-03-09 09:25:26 -0600

Seen: 310 times

Last updated: Mar 09 '17