Skip to content

Commit aac78ef

Browse files
Update sizing tests since pipe diameter affects bore length.
1 parent f53e307 commit aac78ef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

HPXMLtoOpenStudio/measure.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<schema_version>3.1</schema_version>
44
<name>hpxm_lto_openstudio</name>
55
<uid>b1543b30-9465-45ff-ba04-1d1f85e763bc</uid>
6-
<version_id>1514c9e1-0bfb-46e3-a387-64747abce65c</version_id>
7-
<version_modified>2023-11-21T14:20:22Z</version_modified>
6+
<version_id>e2954b03-99a0-4e2f-a076-a4f1a8bee83f</version_id>
7+
<version_modified>2023-11-21T15:32:09Z</version_modified>
88
<xml_checksum>D8922A73</xml_checksum>
99
<class_name>HPXMLtoOpenStudio</class_name>
1010
<display_name>HPXML to OpenStudio Translator</display_name>
@@ -622,7 +622,7 @@
622622
<filename>test_hvac_sizing.rb</filename>
623623
<filetype>rb</filetype>
624624
<usage_type>test</usage_type>
625-
<checksum>CA23771E</checksum>
625+
<checksum>716C37CA</checksum>
626626
</file>
627627
<file>
628628
<filename>test_lighting.rb</filename>

HPXMLtoOpenStudio/tests/test_hvac_sizing.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,15 +477,15 @@ def test_ground_loop
477477
XMLHelper.write_file(hpxml.to_doc, @tmp_hpxml_path)
478478
_model, _test_hpxml, test_hpxml_bldg = _test_measure(args_hash)
479479
assert_equal(3, test_hpxml_bldg.geothermal_loops[0].num_bore_holes)
480-
assert_in_epsilon(776.7 / 3 + 5.0, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
480+
assert_in_epsilon(688.5 / 3 + 5.0, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
481481

482482
# Bore depth greater than the max -> increase number of boreholes
483483
hpxml, hpxml_bldg = _create_hpxml('base-hvac-ground-to-air-heat-pump.xml')
484484
hpxml_bldg.site.ground_conductivity = 0.2
485485
XMLHelper.write_file(hpxml.to_doc, @tmp_hpxml_path)
486486
_model, _test_hpxml, test_hpxml_bldg = _test_measure(args_hash)
487487
assert_equal(5, test_hpxml_bldg.geothermal_loops[0].num_bore_holes)
488-
assert_in_epsilon(2151.1 / 5 + 5, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
488+
assert_in_epsilon(2062.9 / 5 + 5, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
489489

490490
# Bore depth greater than the max -> increase number of boreholes until the max, set depth to the max, and issue warning
491491
hpxml, hpxml_bldg = _create_hpxml('base-hvac-ground-to-air-heat-pump.xml')
@@ -501,7 +501,7 @@ def test_ground_loop
501501
XMLHelper.write_file(hpxml.to_doc, @tmp_hpxml_path)
502502
_model, _test_hpxml, test_hpxml_bldg = _test_measure(args_hash)
503503
assert_equal(10, test_hpxml_bldg.geothermal_loops[0].num_bore_holes)
504-
assert_in_epsilon(3761.5 / 10 + 5, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
504+
assert_in_epsilon(3187.0 / 10 + 5, test_hpxml_bldg.geothermal_loops[0].bore_length, 0.01)
505505
end
506506

507507
def test_g_function_library_linear_interpolation_example

0 commit comments

Comments
 (0)