Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildResidentialHPXML measure: Shared recirculation #1310

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
67b2852
Add new hw dist recirc num units served argument.
joseph-robertson Mar 8, 2023
b22d98d
Build the shared recirc sample file with BuildResHPXML.
joseph-robertson Mar 8, 2023
d94d473
Update build measure test.
joseph-robertson Mar 8, 2023
acfbe0c
Make the new argument optional since a recirc is optional.
joseph-robertson Mar 8, 2023
eb5869c
Update the changelog.
joseph-robertson Mar 8, 2023
16786ea
Argument description updates.
joseph-robertson Mar 9, 2023
63ad3e3
Merge branch 'master' into shared-recirc
joseph-robertson Mar 14, 2023
a9f6d99
Merge branch 'master' into shared-recirc
joseph-robertson Mar 21, 2023
973826e
Merge branch 'master' into shared-recirc
joseph-robertson Apr 25, 2023
a63b2af
Merge branch 'master' into shared-recirc
joseph-robertson May 22, 2023
cc8711e
Fix measure xml merge conflict.
joseph-robertson May 22, 2023
d58b5e9
Merge branch 'master' into shared-recirc
joseph-robertson Jun 23, 2023
8bf088a
Merge branch 'master' into shared-recirc
joseph-robertson Jun 28, 2023
d232795
Merge branch 'master' into shared-recirc
joseph-robertson Aug 14, 2023
4a99ddc
Merge branch 'master' into shared-recirc
joseph-robertson May 28, 2024
1a00313
Update the changelog. [ci skip]
joseph-robertson May 28, 2024
6d3ee17
Fix build test.
joseph-robertson May 28, 2024
623e4d5
Merge branch 'master' into shared-recirc
joseph-robertson May 29, 2024
625a9c1
Merge branch 'master' into shared-recirc
joseph-robertson Jun 4, 2024
1715d40
Merge branch 'master' into shared-recirc
joseph-robertson Jun 7, 2024
aba84db
Update measure descriptions, etc.
joseph-robertson Jun 7, 2024
8101b4d
Merge branch 'master' into shared-recirc
joseph-robertson Jun 25, 2024
4d44413
Merge branch 'master' into shared-recirc
joseph-robertson Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions BuildResidentialHPXML/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3806,7 +3806,7 @@ The type of the hot water distribution system.

**Hot Water Distribution: Standard Piping Length**

If the distribution system is Standard, the length of the piping. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#standard'>Standard</a>) is used.
If the distribution system is Standard or Recirculation (Shared), the length of the piping. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#standard'>Standard</a> or <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-shared'>Recirculation (Shared)</a>) is used.

- **Name:** ``hot_water_distribution_standard_piping_length``
- **Type:** ``Double``
Expand Down Expand Up @@ -3858,7 +3858,7 @@ If the distribution system is Recirculation, the length of the recirculation bra

**Hot Water Distribution: Recirculation Pump Power**

If the distribution system is Recirculation, the recirculation pump power. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-in-unit'>Recirculation (In-Unit)</a>) is used.
If the distribution system is Recirculation, the recirculation pump power. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-in-unit'>Recirculation (In-Unit)</a> or <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-shared'>Recirculation (Shared)</a>) is used.

- **Name:** ``hot_water_distribution_recirc_pump_power``
- **Type:** ``Double``
Expand All @@ -3869,6 +3869,19 @@ If the distribution system is Recirculation, the recirculation pump power. If no

<br/>

**Hot Water Distribution: Recirculation Number of Bedrooms Served**

If the distribution system is Recirculation, number of bedrooms served by the recirculation system. Only needed if single-family attached or apartment unit and it is a shared recirculation system serving multiple dwelling units. Used to apportion recirculation pump power to the unit.

- **Name:** ``hot_water_distribution_recirc_num_bedrooms_served``
- **Type:** ``Integer``

- **Units:** ``#``

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

<br/>

**Hot Water Distribution: Pipe Insulation Nominal R-Value**

Nominal R-value of the pipe insulation. If not provided, the OS-HPXML default (see <a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#hpxml-hot-water-distribution'>HPXML Hot Water Distribution</a>) is used.
Expand Down
40 changes: 31 additions & 9 deletions BuildResidentialHPXML/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ def arguments(model) # rubocop:disable Lint/UnusedMethodArgument
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('hot_water_distribution_standard_piping_length', false)
arg.setDisplayName('Hot Water Distribution: Standard Piping Length')
arg.setUnits('ft')
arg.setDescription("If the distribution system is #{HPXML::DHWDistTypeStandard}, the length of the piping. If not provided, the OS-HPXML default (see <a href='#{docs_base_url}#standard'>Standard</a>) is used.")
arg.setDescription("If the distribution system is #{HPXML::DHWDistTypeStandard} or #{HPXML::DHWDistTypeRecirc} (Shared), the length of the piping. If not provided, the OS-HPXML default (see <a href='#{docs_base_url}#standard'>Standard</a> or <a href='#{docs_base_url}#recirculation-shared'>Recirculation (Shared)</a>) is used.")
args << arg

recirculation_control_type_choices = OpenStudio::StringVector.new
Expand Down Expand Up @@ -2299,7 +2299,13 @@ def arguments(model) # rubocop:disable Lint/UnusedMethodArgument
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('hot_water_distribution_recirc_pump_power', false)
arg.setDisplayName('Hot Water Distribution: Recirculation Pump Power')
arg.setUnits('W')
arg.setDescription("If the distribution system is #{HPXML::DHWDistTypeRecirc}, the recirculation pump power. If not provided, the OS-HPXML default (see <a href='#{docs_base_url}#recirculation-in-unit'>Recirculation (In-Unit)</a>) is used.")
arg.setDescription("If the distribution system is #{HPXML::DHWDistTypeRecirc}, the recirculation pump power. If not provided, the OS-HPXML default (see <a href='#{docs_base_url}#recirculation-in-unit'>Recirculation (In-Unit)</a> or <a href='#{docs_base_url}#recirculation-shared'>Recirculation (Shared)</a>) is used.")
args << arg

arg = OpenStudio::Measure::OSArgument::makeIntegerArgument('hot_water_distribution_recirc_num_bedrooms_served', false)
arg.setDisplayName('Hot Water Distribution: Recirculation Number of Bedrooms Served')
arg.setDescription("If the distribution system is #{HPXML::DHWDistTypeRecirc}, number of bedrooms served by the recirculation system. Only needed if #{HPXML::ResidentialTypeSFA} or #{HPXML::ResidentialTypeApartment} and it is a shared recirculation system serving multiple dwelling units. Used to apportion recirculation pump power to the unit.")
arg.setUnits('#')
args << arg

arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('hot_water_distribution_pipe_r', false)
Expand Down Expand Up @@ -6552,17 +6558,29 @@ def self.set_hot_water_distribution(hpxml_bldg, args)
dwhr_efficiency = args[:dwhr_efficiency]
end

if args[:hot_water_distribution_system_type] == HPXML::DHWDistTypeStandard
system_type = args[:hot_water_distribution_system_type]
if system_type == HPXML::DHWDistTypeStandard
standard_piping_length = args[:hot_water_distribution_standard_piping_length]
elsif system_type == HPXML::DHWDistTypeRecirc
if ([HPXML::ResidentialTypeSFA, HPXML::ResidentialTypeApartment].include? args[:geometry_unit_type]) && (args[:hot_water_distribution_recirc_num_bedrooms_served].to_f > args[:geometry_unit_num_bedrooms])
system_type = HPXML::DHWDistTypeStandard
standard_piping_length = args[:hot_water_distribution_standard_piping_length]
has_shared_recirculation = true
shared_recirculation_number_of_bedrooms_served = args[:hot_water_distribution_recirc_num_bedrooms_served]
shared_recirculation_control_type = args[:hot_water_distribution_recirc_control_type]
shared_recirculation_pump_power = args[:hot_water_distribution_recirc_pump_power]
else
recirculation_control_type = args[:hot_water_distribution_recirc_control_type]
recirculation_piping_length = args[:hot_water_distribution_recirc_piping_length]
recirculation_branch_piping_length = args[:hot_water_distribution_recirc_branch_piping_length]
recirculation_pump_power = args[:hot_water_distribution_recirc_pump_power]
end
else
recirculation_control_type = args[:hot_water_distribution_recirc_control_type]
recirculation_piping_length = args[:hot_water_distribution_recirc_piping_length]
recirculation_branch_piping_length = args[:hot_water_distribution_recirc_branch_piping_length]
recirculation_pump_power = args[:hot_water_distribution_recirc_pump_power]
fail 'Unexpected hot water distribution system type.'
end

hpxml_bldg.hot_water_distributions.add(id: "HotWaterDistribution#{hpxml_bldg.hot_water_distributions.size + 1}",
system_type: args[:hot_water_distribution_system_type],
system_type: system_type,
standard_piping_length: standard_piping_length,
recirculation_control_type: recirculation_control_type,
recirculation_piping_length: recirculation_piping_length,
Expand All @@ -6571,7 +6589,11 @@ def self.set_hot_water_distribution(hpxml_bldg, args)
pipe_r_value: args[:hot_water_distribution_pipe_r],
dwhr_facilities_connected: dwhr_facilities_connected,
dwhr_equal_flow: dwhr_equal_flow,
dwhr_efficiency: dwhr_efficiency)
dwhr_efficiency: dwhr_efficiency,
has_shared_recirculation: has_shared_recirculation,
shared_recirculation_number_of_bedrooms_served: shared_recirculation_number_of_bedrooms_served,
shared_recirculation_pump_power: shared_recirculation_pump_power,
shared_recirculation_control_type: shared_recirculation_control_type)
end

# Set the water fixtures properties, including:
Expand Down
21 changes: 15 additions & 6 deletions BuildResidentialHPXML/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>build_residential_hpxml</name>
<uid>a13a8983-2b01-4930-8af2-42030b6e4233</uid>
<version_id>1cf787b3-6890-4f06-a3b0-38e992fa387b</version_id>
<version_modified>2024-07-03T22:55:11Z</version_modified>
<version_id>81b606f5-3522-4b9b-ba02-f97e2c7c3834</version_id>
<version_modified>2024-07-08T15:47:50Z</version_modified>
<xml_checksum>2C38F48B</xml_checksum>
<class_name>BuildResidentialHPXML</class_name>
<display_name>HPXML Builder</display_name>
Expand Down Expand Up @@ -4657,7 +4657,7 @@
<argument>
<name>hot_water_distribution_standard_piping_length</name>
<display_name>Hot Water Distribution: Standard Piping Length</display_name>
<description>If the distribution system is Standard, the length of the piping. If not provided, the OS-HPXML default (see &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#standard'&gt;Standard&lt;/a&gt;) is used.</description>
<description>If the distribution system is Standard or Recirculation (Shared), the length of the piping. If not provided, the OS-HPXML default (see &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#standard'&gt;Standard&lt;/a&gt; or &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-shared'&gt;Recirculation (Shared)&lt;/a&gt;) is used.</description>
<type>Double</type>
<units>ft</units>
<required>false</required>
Expand Down Expand Up @@ -4715,12 +4715,21 @@
<argument>
<name>hot_water_distribution_recirc_pump_power</name>
<display_name>Hot Water Distribution: Recirculation Pump Power</display_name>
<description>If the distribution system is Recirculation, the recirculation pump power. If not provided, the OS-HPXML default (see &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-in-unit'&gt;Recirculation (In-Unit)&lt;/a&gt;) is used.</description>
<description>If the distribution system is Recirculation, the recirculation pump power. If not provided, the OS-HPXML default (see &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-in-unit'&gt;Recirculation (In-Unit)&lt;/a&gt; or &lt;a href='https://openstudio-hpxml.readthedocs.io/en/v1.8.1/workflow_inputs.html#recirculation-shared'&gt;Recirculation (Shared)&lt;/a&gt;) is used.</description>
<type>Double</type>
<units>W</units>
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>hot_water_distribution_recirc_num_bedrooms_served</name>
<display_name>Hot Water Distribution: Recirculation Number of Bedrooms Served</display_name>
<description>If the distribution system is Recirculation, number of bedrooms served by the recirculation system. Only needed if single-family attached or apartment unit and it is a shared recirculation system serving multiple dwelling units. Used to apportion recirculation pump power to the unit.</description>
<type>Integer</type>
<units>#</units>
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>hot_water_distribution_pipe_r</name>
<display_name>Hot Water Distribution: Pipe Insulation Nominal R-Value</display_name>
Expand Down Expand Up @@ -7361,7 +7370,7 @@
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>readme</usage_type>
<checksum>38C93847</checksum>
<checksum>A729C48B</checksum>
</file>
<file>
<filename>README.md.erb</filename>
Expand All @@ -7378,7 +7387,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>EA194ADD</checksum>
<checksum>E1BF8309</checksum>
</file>
<file>
<filename>geometry.rb</filename>
Expand Down
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ __New Features__
- Add soil and moisture type arguments (for determining ground conductivity and diffusivity) and optional geothermal loop arguments for ground source heat pumps.
- The "Geometry: Building Number of Units" input is now written to the HPXML `NumberofUnitsInBuilding` element.
- Adds a blower fan efficiency input for specifying fan power W/cfm at maximum speed.
- Allows specifying number of bedrooms served by the recirculation system which is used for apportioning recirculation pump power.
- BuildResidentialScheduleFile measure:
- Allows appending columns to an existing CSV file rather than overwriting.
- Other plug load schedules now use Other schedule fractions per ANSI/RESNET/ICC 301-2022 Addendum C.
Expand Down
22 changes: 2 additions & 20 deletions HPXMLtoOpenStudio/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>hpxm_lto_openstudio</name>
<uid>b1543b30-9465-45ff-ba04-1d1f85e763bc</uid>
<version_id>657677c3-58a6-4357-bfe1-fcd7f6b039eb</version_id>
<version_modified>2024-07-06T05:17:52Z</version_modified>
<version_id>06ff6e91-3d2e-4cc1-86a9-db930b3f21f3</version_id>
<version_modified>2024-07-08T15:47:52Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>HPXMLtoOpenStudio</class_name>
<display_name>HPXML to OpenStudio Translator</display_name>
Expand Down Expand Up @@ -623,24 +623,6 @@
<usage_type>resource</usage_type>
<checksum>E12E2D75</checksum>
</file>
<file>
<filename>in.schedules.csv</filename>
<filetype>csv</filetype>
<usage_type>test</usage_type>
<checksum>2B9C5C95</checksum>
</file>
<file>
<filename>results_annual.csv</filename>
<filetype>csv</filetype>
<usage_type>test</usage_type>
<checksum>3C4C7BF6</checksum>
</file>
<file>
<filename>results_design_load_details.csv</filename>
<filetype>csv</filetype>
<usage_type>test</usage_type>
<checksum>0892DD62</checksum>
</file>
<file>
<filename>test_airflow.rb</filename>
<filetype>rb</filetype>
Expand Down
10 changes: 0 additions & 10 deletions tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1955,16 +1955,6 @@ def apply_hpxml_modification_sample_files(hpxml_path, hpxml)
hpxml_bldg.water_heating.water_fixtures_weekday_fractions = '0.012, 0.006, 0.004, 0.005, 0.010, 0.034, 0.078, 0.087, 0.080, 0.067, 0.056, 0.047, 0.040, 0.035, 0.033, 0.031, 0.039, 0.051, 0.060, 0.060, 0.055, 0.048, 0.038, 0.026'
hpxml_bldg.water_heating.water_fixtures_weekend_fractions = '0.012, 0.006, 0.004, 0.005, 0.010, 0.034, 0.078, 0.087, 0.080, 0.067, 0.056, 0.047, 0.040, 0.035, 0.033, 0.031, 0.039, 0.051, 0.060, 0.060, 0.055, 0.048, 0.038, 0.026'
hpxml_bldg.water_heating.water_fixtures_monthly_multipliers = '1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0'
elsif ['base-bldgtype-mf-unit-shared-water-heater-recirc.xml',
'base-bldgtype-mf-unit-shared-water-heater-recirc-beds-0.xml',
'base-bldgtype-mf-unit-shared-water-heater-recirc-scheduled.xml'].include? hpxml_file
hpxml_bldg.hot_water_distributions[0].has_shared_recirculation = true
hpxml_bldg.hot_water_distributions[0].shared_recirculation_number_of_bedrooms_served = 18
hpxml_bldg.hot_water_distributions[0].shared_recirculation_pump_power = 220
hpxml_bldg.hot_water_distributions[0].shared_recirculation_control_type = HPXML::DHWRecircControlTypeTimer
if hpxml_file == 'base-bldgtype-mf-unit-shared-water-heater-recirc-beds-0.xml'
hpxml_bldg.hot_water_distributions[0].shared_recirculation_number_of_bedrooms_served = 6
end
elsif ['base-bldgtype-mf-unit-shared-laundry-room.xml',
'base-bldgtype-mf-unit-shared-laundry-room-multiple-water-heaters.xml'].include? hpxml_file
hpxml_bldg.water_heating_systems.reverse_each do |water_heating_system|
Expand Down
18 changes: 15 additions & 3 deletions workflow/hpxml_inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1266,15 +1266,27 @@
"water_heater_num_bedrooms_served": 18
},
"sample_files/base-bldgtype-mf-unit-shared-water-heater-recirc.xml": {
"parent_hpxml": "sample_files/base-bldgtype-mf-unit-shared-water-heater.xml"
"parent_hpxml": "sample_files/base-bldgtype-mf-unit-shared-water-heater.xml",
"hot_water_distribution_system_type": "Recirculation",
"hot_water_distribution_recirc_control_type": "timer",
"hot_water_distribution_recirc_pump_power": 220.0,
"hot_water_distribution_recirc_num_bedrooms_served": 18
},
"sample_files/base-bldgtype-mf-unit-shared-water-heater-recirc-beds-0.xml": {
"parent_hpxml": "sample_files/base-bldgtype-mf-unit-shared-water-heater.xml",
"geometry_unit_num_bedrooms": 0,
"water_heater_num_bedrooms_served": 6
"water_heater_num_bedrooms_served": 6,
"hot_water_distribution_system_type": "Recirculation",
"hot_water_distribution_recirc_control_type": "timer",
"hot_water_distribution_recirc_pump_power": 220.0,
"hot_water_distribution_recirc_num_bedrooms_served": 6
},
"sample_files/base-bldgtype-mf-unit-shared-water-heater-recirc-scheduled.xml": {
"parent_hpxml": "sample_files/base-bldgtype-mf-unit-shared-water-heater-recirc.xml"
"parent_hpxml": "sample_files/base-bldgtype-mf-unit-shared-water-heater-recirc.xml",
"hot_water_distribution_system_type": "Recirculation",
"hot_water_distribution_recirc_control_type": "timer",
"hot_water_distribution_recirc_pump_power": 220.0,
"hot_water_distribution_recirc_num_bedrooms_served": 18
},
"sample_files/base-dhw-combi-tankless.xml": {
"parent_hpxml": "sample_files/base-dhw-indirect.xml",
Expand Down