3

OS v1.14 Output Table to IP Units Measure

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!

Tim Johnson's avatar
617
Tim Johnson
asked 2017-03-09 09:25:26 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 07:54:32 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

ericringold's avatar
10.6k
ericringold
answered 2017-03-09 10:08:30 -0500, updated 2017-03-09 10:17:09 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments