Skip to content

Commit c44d746

Browse files
committed
Convert var to snake_case
1 parent c98cf46 commit c44d746

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
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>a76321a6-1fe2-4a9b-8574-86c1fa95f899</version_id>
7-
<version_modified>2025-10-31T20:47:24Z</version_modified>
6+
<version_id>d4c3a38f-b5f9-4f1a-9cf0-63aa5ec29b3b</version_id>
7+
<version_modified>2025-10-31T20:50:56Z</version_modified>
88
<xml_checksum>D8922A73</xml_checksum>
99
<class_name>HPXMLtoOpenStudio</class_name>
1010
<display_name>HPXML to OpenStudio Translator</display_name>
@@ -420,7 +420,7 @@
420420
<filename>hvac_sizing.rb</filename>
421421
<filetype>rb</filetype>
422422
<usage_type>resource</usage_type>
423-
<checksum>EE39F054</checksum>
423+
<checksum>AE488BAC</checksum>
424424
</file>
425425
<file>
426426
<filename>internal_gains.rb</filename>

HPXMLtoOpenStudio/resources/hvac_sizing.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3411,20 +3411,20 @@ def self.get_geothermal_loop_borefield_ft_per_ton(mj, hpxml_bldg, geothermal_loo
34113411

34123412
# Runtime fraction average in heating/cooling months, assumed
34133413
if mj.htd > 0
3414-
rtf_DesignMon_Heat = (mj.heat_setpoint - weather.data.MonthlyAvgDrybulbs[heating_month]) / mj.htd
3414+
rtf_design_mon_heat = (mj.heat_setpoint - weather.data.MonthlyAvgDrybulbs[heating_month]) / mj.htd
34153415
else
3416-
rtf_DesignMon_Heat = 0
3416+
rtf_design_mon_heat = 0
34173417
end
34183418
if mj.ctd > 0
3419-
rtf_DesignMon_Cool = (weather.data.MonthlyAvgDrybulbs[cooling_month] - mj.cool_setpoint) / mj.ctd
3419+
rtf_design_mon_cool = (weather.data.MonthlyAvgDrybulbs[cooling_month] - mj.cool_setpoint) / mj.ctd
34203420
else
3421-
rtf_DesignMon_Cool = 0
3421+
rtf_design_mon_cool = 0
34223422
end
3423-
rtf_DesignMon_Heat = [[rtf_DesignMon_Heat, 0.25].max, 1.0].min
3424-
rtf_DesignMon_Cool = [[rtf_DesignMon_Cool, 0.25].max, 1.0].min
3423+
rtf_design_mon_heat = [[rtf_design_mon_heat, 0.25].max, 1.0].min
3424+
rtf_design_mon_cool = [[rtf_design_mon_cool, 0.25].max, 1.0].min
34253425

3426-
nom_length_heat = (1.0 - 1.0 / clg_ap.heat_rated_cops[0]) * (r_value_bore + r_value_ground * rtf_DesignMon_Heat) / (weather.data.DeepGroundAnnualTemp - (2.0 * clg_ap.design_hw - clg_ap.design_delta_t) / 2.0) * UnitConversions.convert(1.0, 'ton', 'Btu/hr')
3427-
nom_length_cool = (1.0 + 1.0 / clg_ap.cool_rated_cops[0]) * (r_value_bore + r_value_ground * rtf_DesignMon_Cool) / ((2.0 * clg_ap.design_chw + clg_ap.design_delta_t) / 2.0 - weather.data.DeepGroundAnnualTemp) * UnitConversions.convert(1.0, 'ton', 'Btu/hr')
3426+
nom_length_heat = (1.0 - 1.0 / clg_ap.heat_rated_cops[0]) * (r_value_bore + r_value_ground * rtf_design_mon_heat) / (weather.data.DeepGroundAnnualTemp - (2.0 * clg_ap.design_hw - clg_ap.design_delta_t) / 2.0) * UnitConversions.convert(1.0, 'ton', 'Btu/hr')
3427+
nom_length_cool = (1.0 + 1.0 / clg_ap.cool_rated_cops[0]) * (r_value_bore + r_value_ground * rtf_design_mon_cool) / ((2.0 * clg_ap.design_chw + clg_ap.design_delta_t) / 2.0 - weather.data.DeepGroundAnnualTemp) * UnitConversions.convert(1.0, 'ton', 'Btu/hr')
34283428

34293429
return nom_length_heat, nom_length_cool
34303430
end

0 commit comments

Comments
 (0)