Skip to content

Commit

Permalink
Merge pull request #2210 from NREL/160428_standard_report_update
Browse files Browse the repository at this point in the history
updating ext lighting and pump reporting
  • Loading branch information
DavidGoldwasser committed Apr 29, 2016
2 parents bae4da6 + bdf705b commit 89fea7c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<schema_version>3.0</schema_version>
<name>open_studio_results</name>
<uid>a6b9a024-0912-4be3-a55d-57dfe0b8586c</uid>
<version_id>e9fa6088-381f-4e10-9927-07c6305b08ac</version_id>
<version_modified>20160315T205436Z</version_modified>
<version_id>54c5c464-8235-45bd-9859-9461e43abe05</version_id>
<version_modified>20160429T151606Z</version_modified>
<xml_checksum>557BF06F</xml_checksum>
<class_name>OpenStudioResults</class_name>
<display_name>OpenStudio Results</display_name>
Expand Down Expand Up @@ -489,13 +489,13 @@
<filename>ExampleModel.osm</filename>
<filetype>osm</filetype>
<usage_type>test</usage_type>
<checksum>D64D89EE</checksum>
<checksum>E7812BB5</checksum>
</file>
<file>
<filename>os_lib_reporting.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>EC89B286</checksum>
<checksum>DCCD722E</checksum>
</file>
</files>
</measure>
Original file line number Diff line number Diff line change
Expand Up @@ -1026,10 +1026,10 @@ def self.plant_loop_component_summary_logic(component, model)
else
sizing_ip_neat = 'Autosized'
end
value_source_units = 'Pa'
value_source_units = 'W'
value_target_units = 'W'
if component.ratedFlowRate.is_initialized
value_ip = OpenStudio.convert(component.ratedFlowRate.get, sizing_source_units, sizing_target_units).get
if component.ratedPowerConsumption.is_initialized
value_ip = component.ratedPowerConsumption.get
value_ip_neat = OpenStudio.toNeatString(value_ip, 2, true)
else
value_ip_neat = 'Autosized'
Expand All @@ -1039,18 +1039,18 @@ def self.plant_loop_component_summary_logic(component, model)

elsif component.to_PumpVariableSpeed.is_initialized
component = component.to_PumpVariableSpeed.get
sizing_source_units = 'm^3/s'
sizing_source_units = 'm^3/s'
sizing_target_units = 'gal/min'
if component.ratedFlowRate.is_initialized
sizing_ip = OpenStudio.convert(component.ratedFlowRate.get, sizing_source_units, sizing_target_units).get
sizing_ip_neat = OpenStudio.toNeatString(sizing_ip, 2, true)
else
sizing_ip_neat = 'Autosized'
end
value_source_units = 'Pa'
value_source_units = 'W'
value_target_units = 'W'
if component.ratedFlowRate.is_initialized
value_ip = OpenStudio.convert(component.ratedFlowRate.get, sizing_source_units, sizing_target_units).get
if component.ratedPowerConsumption.is_initialized
value_ip = component.ratedPowerConsumption.get
value_ip_neat = OpenStudio.toNeatString(value_ip, 2, true)
else
value_ip_neat = 'Autosized'
Expand Down Expand Up @@ -1813,7 +1813,7 @@ def self.exterior_light_section(model, sqlFile, runner, name_only = false)
# Exterior Lighting from output
ext_light_data = {}
ext_light_data[:title] = ''
ext_light_data[:header] = ['Description', 'Total Power', 'Consumption']
ext_light_data[:header] = ['Description', 'Total Power', 'Annual Consumption']
power_units = 'W'
consumption_units = 'kWh'
ext_light_data[:units] = ['', power_units, consumption_units]
Expand All @@ -1838,7 +1838,7 @@ def self.exterior_light_section(model, sqlFile, runner, name_only = false)
else
# add data
total_watts_ip = total_watts.get
consumption_ip = consumption.get * 0.2778 # value * energy conversion GJ to kWh todo - use real conversion
consumption_ip = OpenStudio.convert(sqlFile.netSiteEnergy.get,'GJ','kWh').get
total_watts_ip_neat = OpenStudio.toNeatString(total_watts_ip, 2, true)
consumption_ip_neat = OpenStudio.toNeatString(consumption_ip, 2, true)
ext_light_data[:data] << ['Exterior Lighting Total', total_watts_ip_neat, consumption_ip_neat]
Expand Down Expand Up @@ -2871,7 +2871,7 @@ def self.interior_lighting_section(model, sqlFile, runner, name_only = false)
# data for query
report_name = 'LightingSummary'
table_name = 'Interior Lighting'
columns = ['', 'Zone', 'Lighting Power Density', 'Total Power', 'Schedule Name', 'Scheduled Hours/Week', 'Actual Load Hours/Week', 'Return Air Fraction', 'Consumption']
columns = ['', 'Zone', 'Lighting Power Density', 'Total Power', 'Schedule Name', 'Scheduled Hours/Week', 'Actual Load Hours/Week', 'Return Air Fraction', 'Annual Consumption']
columns_query = ['', 'Zone', 'Lighting Power Density', 'Total Power', 'Schedule Name', 'Scheduled Hours/Week', 'Full Load Hours/Week', 'Return Air Fraction', 'Consumption']

# populate dynamic rows
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

OS:Version,
{407f94b6-3561-478a-b6dc-51aa10b1659c}, !- Handle
1.10.5; !- Version Identifier
{38c2d8db-a7a8-4ea9-bac5-9b2bb64fa982}, !- Handle
1.11.0; !- Version Identifier

OS:SimulationControl,
{41f65c43-2dc9-4d82-a6e4-a562bae08803}, !- Handle
Expand Down Expand Up @@ -3232,20 +3232,6 @@ OS:Rendering:Color,
0, !- Rendering Green Value
255; !- Rendering Blue Value

OS:WeatherFile,
{cc5a7650-318f-41dd-a20a-acaeef25de6a}, !- Handle
Denver Centennial Golden Nr, !- City
CO, !- State Province Region
USA, !- Country
TMY3, !- Data Source
724666, !- WMO Number
39.74, !- Latitude {deg}
-105.18, !- Longitude {deg}
-7, !- Time Zone {hr}
1829, !- Elevation {m}
file:///C:/Users/dgoldwas/Documents/GitHub/OpenStudio-measures/NREL working measures/OpenStudioResults/tests/ExampleModel/files/USA_CO_Golden-NREL.724666_TMY3.epw, !- Url
BDF687C1; !- Checksum

OS:Rendering:Color,
{05fe2a32-7705-4617-9d37-17b9d1c310c0}, !- Handle
Rendering Color 3, !- Name
Expand Down Expand Up @@ -5314,9 +5300,9 @@ OS:Pump:VariableSpeed,
Pump Variable Speed 2, !- Name
{ed247646-d754-4074-b9a1-53a43f00cba3}, !- Inlet Node Name
{801dc7a8-844d-4acd-83ad-1f4de198c1c4}, !- Outlet Node Name
, !- Rated Flow Rate {m3/s}
0.00630901963994975, !- Rated Flow Rate {m3/s}
, !- Rated Pump Head {Pa}
, !- Rated Power Consumption {W}
2500, !- Rated Power Consumption {W}
, !- Motor Efficiency
, !- Fraction of Motor Inefficiencies to Fluid Stream
, !- Coefficient 1 of the Part Load Performance Curve
Expand Down Expand Up @@ -6419,3 +6405,17 @@ OS:Connection,
{3ac6de72-4ea4-483d-960c-138d32cbf8d9}, !- Target Object
2; !- Inlet Port

OS:WeatherFile,
{f8d26468-476f-405d-bb2c-6a73e549fd50}, !- Handle
Denver Centennial Golden Nr, !- City
CO, !- State Province Region
USA, !- Country
TMY3, !- Data Source
724666, !- WMO Number
39.74, !- Latitude {deg}
-105.18, !- Longitude {deg}
-7, !- Time Zone {hr}
1829, !- Elevation {m}
file:files/USA_CO_Golden-NREL.724666_TMY3.epw, !- Url
BDF687C1; !- Checksum

8 comments on commit 89fea7c

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (DavidGoldwasser) - x86_64-MacOS-10.10-clang: OK (2377 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (DavidGoldwasser) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2337 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (DavidGoldwasser) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iteration (DavidGoldwasser) - x86_64-MacOS-10.10-clang: OK (2372 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iteration (DavidGoldwasser) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2346 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iteration (DavidGoldwasser) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iteration (DavidGoldwasser) - i386-Windows-7-VisualStudio-12: Tests Failed (2147 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iteration (DavidGoldwasser) - Win64-Windows-7-VisualStudio-12: OK (2383 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.