Skip to content

Commit 6863be2

Browse files
authored
Merge pull request #1774 from NREL/clarify_buildreshpxml_slab_inputs
Rename slab variables in BuildResidentialHPXML measure
2 parents 15bba51 + 5d6542c commit 6863be2

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
lines changed

BuildResidentialHPXML/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ Nominal R-value of the vertical slab perimeter insulation. Applies to slab-on-gr
10111011

10121012
Depth from grade to bottom of vertical slab perimeter insulation. Applies to slab-on-grade foundations and basement/crawlspace floors.
10131013

1014-
- **Name:** ``slab_perimeter_depth``
1014+
- **Name:** ``slab_perimeter_insulation_depth``
10151015
- **Type:** ``Double``
10161016

10171017
- **Units:** ``ft``
@@ -1037,7 +1037,7 @@ Nominal R-value of the horizontal under slab insulation. Applies to slab-on-grad
10371037

10381038
Width from slab edge inward of horizontal under-slab insulation. Enter 999 to specify that the under slab insulation spans the entire slab. Applies to slab-on-grade foundations and basement/crawlspace floors.
10391039

1040-
- **Name:** ``slab_under_width``
1040+
- **Name:** ``slab_under_insulation_width``
10411041
- **Type:** ``Double``
10421042

10431043
- **Units:** ``ft``

BuildResidentialHPXML/measure.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def arguments(model) # rubocop:disable Lint/UnusedMethodArgument
632632
arg.setDefaultValue(0)
633633
args << arg
634634

635-
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('slab_perimeter_depth', true)
635+
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('slab_perimeter_insulation_depth', true)
636636
arg.setDisplayName('Slab: Perimeter Insulation Depth')
637637
arg.setUnits('ft')
638638
arg.setDescription('Depth from grade to bottom of vertical slab perimeter insulation. Applies to slab-on-grade foundations and basement/crawlspace floors.')
@@ -646,7 +646,7 @@ def arguments(model) # rubocop:disable Lint/UnusedMethodArgument
646646
arg.setDefaultValue(0)
647647
args << arg
648648

649-
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('slab_under_width', true)
649+
arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('slab_under_insulation_width', true)
650650
arg.setDisplayName('Slab: Under Slab Insulation Width')
651651
arg.setUnits('ft')
652652
arg.setDescription('Width from slab edge inward of horizontal under-slab insulation. Enter 999 to specify that the under slab insulation spans the entire slab. Applies to slab-on-grade foundations and basement/crawlspace floors.')
@@ -5157,18 +5157,18 @@ def self.set_slabs(hpxml_bldg, model, args, sorted_surfaces)
51575157
exposed_perimeter -= Geometry.get_unexposed_garage_perimeter(**args)
51585158
end
51595159

5160-
if args[:slab_under_width] >= 999
5160+
if args[:slab_under_insulation_width] >= 999
51615161
under_slab_insulation_spans_entire_slab = true
51625162
else
5163-
under_slab_insulation_width = args[:slab_under_width]
5163+
under_slab_insulation_width = args[:slab_under_insulation_width]
51645164
end
51655165

51665166
hpxml_bldg.slabs.add(id: "Slab#{hpxml_bldg.slabs.size + 1}",
51675167
interior_adjacent_to: interior_adjacent_to,
51685168
area: UnitConversions.convert(surface.grossArea, 'm^2', 'ft^2'),
51695169
thickness: args[:slab_thickness],
51705170
exposed_perimeter: exposed_perimeter,
5171-
perimeter_insulation_depth: args[:slab_perimeter_depth],
5171+
perimeter_insulation_depth: args[:slab_perimeter_insulation_depth],
51725172
under_slab_insulation_width: under_slab_insulation_width,
51735173
perimeter_insulation_r_value: args[:slab_perimeter_insulation_r],
51745174
under_slab_insulation_r_value: args[:slab_under_insulation_r],

BuildResidentialHPXML/measure.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<schema_version>3.1</schema_version>
44
<name>build_residential_hpxml</name>
55
<uid>a13a8983-2b01-4930-8af2-42030b6e4233</uid>
6-
<version_id>525d3c0b-3d9e-4b1d-b3f7-8e8e45fbcab4</version_id>
7-
<version_modified>2024-07-10T20:17:56Z</version_modified>
6+
<version_id>635a8ab6-45f1-4969-b2c5-f308519438f8</version_id>
7+
<version_modified>2024-07-11T16:09:59Z</version_modified>
88
<xml_checksum>2C38F48B</xml_checksum>
99
<class_name>BuildResidentialHPXML</class_name>
1010
<display_name>HPXML Builder</display_name>
@@ -1403,7 +1403,7 @@
14031403
<default_value>0</default_value>
14041404
</argument>
14051405
<argument>
1406-
<name>slab_perimeter_depth</name>
1406+
<name>slab_perimeter_insulation_depth</name>
14071407
<display_name>Slab: Perimeter Insulation Depth</display_name>
14081408
<description>Depth from grade to bottom of vertical slab perimeter insulation. Applies to slab-on-grade foundations and basement/crawlspace floors.</description>
14091409
<type>Double</type>
@@ -1423,7 +1423,7 @@
14231423
<default_value>0</default_value>
14241424
</argument>
14251425
<argument>
1426-
<name>slab_under_width</name>
1426+
<name>slab_under_insulation_width</name>
14271427
<display_name>Slab: Under Slab Insulation Width</display_name>
14281428
<description>Width from slab edge inward of horizontal under-slab insulation. Enter 999 to specify that the under slab insulation spans the entire slab. Applies to slab-on-grade foundations and basement/crawlspace floors.</description>
14291429
<type>Double</type>
@@ -7389,7 +7389,7 @@
73897389
<filename>README.md</filename>
73907390
<filetype>md</filetype>
73917391
<usage_type>readme</usage_type>
7392-
<checksum>C1C29998</checksum>
7392+
<checksum>BD785B9E</checksum>
73937393
</file>
73947394
<file>
73957395
<filename>README.md.erb</filename>
@@ -7406,7 +7406,7 @@
74067406
<filename>measure.rb</filename>
74077407
<filetype>rb</filetype>
74087408
<usage_type>script</usage_type>
7409-
<checksum>FE686F50</checksum>
7409+
<checksum>F41033B3</checksum>
74107410
</file>
74117411
<file>
74127412
<filename>geometry.rb</filename>
@@ -7418,7 +7418,7 @@
74187418
<filename>test_build_residential_hpxml.rb</filename>
74197419
<filetype>rb</filetype>
74207420
<usage_type>test</usage_type>
7421-
<checksum>A40F646C</checksum>
7421+
<checksum>C0AF4CE1</checksum>
74227422
</file>
74237423
</files>
74247424
</measure>

BuildResidentialHPXML/tests/test_build_residential_hpxml.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ def _set_measure_argument_values(hpxml_file, args)
430430
args['foundation_wall_insulation_distance_to_bottom'] = 8.0
431431
args['rim_joist_assembly_r'] = 23.0
432432
args['slab_perimeter_insulation_r'] = 0
433-
args['slab_perimeter_depth'] = 0
433+
args['slab_perimeter_insulation_depth'] = 0
434434
args['slab_under_insulation_r'] = 0
435-
args['slab_under_width'] = 0
435+
args['slab_under_insulation_width'] = 0
436436
args['slab_thickness'] = 4.0
437437
args['slab_carpet_fraction'] = 0.0
438438
args['slab_carpet_r'] = 0.0

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ __New Features__
1313
- Optional input `SimulationControl/AdvancedResearchFeatures/OnOffThermostatDeadbandTemperature` to model on/off thermostat deadband with start-up degradation for single and two speed AC/ASHP systems and time-based realistic staging for two speed AC/ASHP systems.
1414
- Optional input `SimulationControl/AdvancedResearchFeatures/HeatPumpBackupCapacityIncrement` to model multi-stage electric backup coils with time-based staging.
1515
- Maximum power ratio detailed schedule for variable-speed HVAC systems can now be used with `NumberofUnits` dwelling unit multiplier.
16+
- BuildResidentialScheduleFile measure:
17+
- **Breaking change**: Replaced `slab_under_width` argument with `slab_under_insulation_width`.
18+
- **Breaking change**: Replaced `slab_perimeter_depth` argument with `slab_perimeter_insulation_depth`.
1619

1720
__Bugfixes__
1821
- Prevents possible error when using multiple `Attic`/`Foundation` elements for the same attic/foundation type.

workflow/hpxml_inputs.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"foundation_wall_insulation_distance_to_bottom": 0,
3535
"rim_joist_assembly_r": 5.01,
3636
"slab_perimeter_insulation_r": 0,
37-
"slab_perimeter_depth": 0,
37+
"slab_perimeter_insulation_depth": 0,
3838
"slab_under_insulation_r": 0,
39-
"slab_under_width": 0,
39+
"slab_under_insulation_width": 0,
4040
"slab_thickness": 4,
4141
"slab_carpet_fraction": 0,
4242
"slab_carpet_r": 0,
@@ -279,7 +279,7 @@
279279
"tests/ASHRAE_Standard_140/L304XC.xml": {
280280
"parent_hpxml": "tests/ASHRAE_Standard_140/L302XC.xml",
281281
"slab_perimeter_insulation_r": 5.4,
282-
"slab_perimeter_depth": 2.5
282+
"slab_perimeter_insulation_depth": 2.5
283283
},
284284
"tests/ASHRAE_Standard_140/L322XC.xml": {
285285
"parent_hpxml": "tests/ASHRAE_Standard_140/L100AC.xml",
@@ -639,9 +639,9 @@
639639
"foundation_wall_insulation_distance_to_bottom": 8,
640640
"rim_joist_assembly_r": 23,
641641
"slab_perimeter_insulation_r": 0,
642-
"slab_perimeter_depth": 0,
642+
"slab_perimeter_insulation_depth": 0,
643643
"slab_under_insulation_r": 0,
644-
"slab_under_width": 0,
644+
"slab_under_insulation_width": 0,
645645
"slab_thickness": 4,
646646
"slab_carpet_fraction": 0,
647647
"slab_carpet_r": 0,
@@ -1813,12 +1813,12 @@
18131813
"sample_files/base-foundation-conditioned-basement-slab-insulation.xml": {
18141814
"parent_hpxml": "sample_files/base.xml",
18151815
"slab_under_insulation_r": 10,
1816-
"slab_under_width": 4
1816+
"slab_under_insulation_width": 4
18171817
},
18181818
"sample_files/base-foundation-conditioned-basement-slab-insulation-full.xml": {
18191819
"parent_hpxml": "sample_files/base.xml",
18201820
"slab_under_insulation_r": 10,
1821-
"slab_under_width": 999
1821+
"slab_under_insulation_width": 999
18221822
},
18231823
"sample_files/base-foundation-conditioned-basement-wall-insulation.xml": {
18241824
"parent_hpxml": "sample_files/base.xml",
@@ -1847,7 +1847,7 @@
18471847
"geometry_foundation_height": 0,
18481848
"geometry_foundation_height_above_grade": 0,
18491849
"slab_under_insulation_r": 5,
1850-
"slab_under_width": 999,
1850+
"slab_under_insulation_width": 999,
18511851
"slab_carpet_fraction": 1,
18521852
"slab_carpet_r": 2.5,
18531853
"ducts_supply_location": "under slab",

0 commit comments

Comments
 (0)