Skip to content

Commit

Permalink
Remove other plug loads calcs from ResStockArguments measure since it…
Browse files Browse the repository at this point in the history
… is now defaulted.
  • Loading branch information
joseph-robertson committed Sep 4, 2024
1 parent 1fa4098 commit 8585b6f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
11 changes: 11 additions & 0 deletions measures/ResStockArguments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,17 @@ Average distance from the floor to the ceiling.

<br/>

**Geometry: Unit Height Above Grade**

Describes the above-grade height of apartment units on upper floors or homes above ambient or belly-and-wing foundations. It is defined as the height of the lowest conditioned floor above grade and is used to calculate the wind speed for the infiltration model. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#hpxml-building-construction'>HPXML Building Construction</a>) is used.

- **Name:** ``geometry_unit_height_above_grade``
- **Type:** ``String``

- **Required:** ``false``

<br/>

**Geometry: Garage Width**

The width of the garage. Enter zero for no garage. Only applies to single-family detached units.
Expand Down
12 changes: 0 additions & 12 deletions measures/ResStockArguments/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -467,18 +467,6 @@ def run(model, runner, user_arguments)
args[:misc_plug_loads_well_pump_usage_multiplier] = args[:misc_plug_loads_well_pump_usage_multiplier] * args[:misc_plug_loads_well_pump_2_usage_multiplier]
args[:misc_plug_loads_vehicle_usage_multiplier] = args[:misc_plug_loads_vehicle_usage_multiplier] * args[:misc_plug_loads_vehicle_2_usage_multiplier]

# Other
if args[:misc_plug_loads_other_annual_kwh] == Constants::Auto
# TODO: Disaggregate detached and mobile home
if [HPXML::ResidentialTypeSFD, HPXML::ResidentialTypeManufactured].include?(args[:geometry_unit_type])
args[:misc_plug_loads_other_annual_kwh] = 863.26 + 219.26 * args[:geometry_unit_num_occupants] + 0.33 * args[:geometry_unit_cfa] # RECS 2020
elsif [HPXML::ResidentialTypeSFA].include?(args[:geometry_unit_type])
args[:misc_plug_loads_other_annual_kwh] = 654.92 + 206.52 * args[:geometry_unit_num_occupants] + 0.21 * args[:geometry_unit_cfa] # RECS 2020
elsif [HPXML::ResidentialTypeApartment].include?(args[:geometry_unit_type])
args[:misc_plug_loads_other_annual_kwh] = 706.6 + 149.27 * args[:geometry_unit_num_occupants] + 0.1 * args[:geometry_unit_cfa] # RECS 2020
end
end

# PV
if args[:pv_system_present]
args[:pv_system_num_bedrooms_served] = args[:geometry_unit_num_bedrooms]
Expand Down
17 changes: 13 additions & 4 deletions measures/ResStockArguments/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>res_stock_arguments</name>
<uid>c984bb9e-4ac4-4930-a399-9d23f8f6936a</uid>
<version_id>ad7a9142-bcf5-4759-a5a5-948feedf8275</version_id>
<version_modified>2024-09-04T15:18:46Z</version_modified>
<version_id>84a61234-904f-430e-b5ef-7119725b0feb</version_id>
<version_modified>2024-09-04T20:15:27Z</version_modified>
<xml_checksum>2C38F48B</xml_checksum>
<class_name>ResStockArguments</class_name>
<display_name>ResStock Arguments</display_name>
Expand Down Expand Up @@ -700,6 +700,15 @@
<model_dependent>false</model_dependent>
<default_value>8</default_value>
</argument>
<argument>
<name>geometry_unit_height_above_grade</name>
<display_name>Geometry: Unit Height Above Grade</display_name>
<description>Describes the above-grade height of apartment units on upper floors or homes above ambient or belly-and-wing foundations. It is defined as the height of the lowest conditioned floor above grade and is used to calculate the wind speed for the infiltration model. If not provided, the OS-HPXML default (see &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#hpxml-building-construction'&gt;HPXML Building Construction&lt;/a&gt;) is used.</description>
<type>String</type>
<units>ft</units>
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>geometry_garage_width</name>
<display_name>Geometry: Garage Width</display_name>
Expand Down Expand Up @@ -7545,7 +7554,7 @@
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>readme</usage_type>
<checksum>3F5066AC</checksum>
<checksum>54B12FAB</checksum>
</file>
<file>
<filename>README.md.erb</filename>
Expand All @@ -7562,7 +7571,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>4009EF25</checksum>
<checksum>CC94D3E8</checksum>
</file>
<file>
<filename>constants.rb</filename>
Expand Down

0 comments on commit 8585b6f

Please sign in to comment.