@@ -409,12 +409,12 @@ def _set_measure_argument_values(hpxml_file, args)
409409 args [ 'geometry_garage_width' ] = 0.0
410410 args [ 'geometry_garage_depth' ] = 20.0
411411 args [ 'geometry_garage_protrusion' ] = 0.0
412- args [ 'geometry_garage_position' ] = 'Right'
412+ args [ 'geometry_garage_position' ] = Constants :: PositionRight
413413 args [ 'geometry_foundation_type' ] = HPXML ::FoundationTypeBasementConditioned
414414 args [ 'geometry_foundation_height' ] = 8.0
415415 args [ 'geometry_foundation_height_above_grade' ] = 1.0
416416 args [ 'geometry_rim_joist_height' ] = 9.25
417- args [ 'geometry_roof_type' ] = 'gable'
417+ args [ 'geometry_roof_type' ] = Constants :: RoofTypeGable
418418 args [ 'geometry_roof_pitch' ] = '6:12'
419419 args [ 'geometry_attic_type' ] = HPXML ::AtticTypeUnvented
420420 args [ 'geometry_eaves_depth' ] = 0
@@ -440,7 +440,7 @@ def _set_measure_argument_values(hpxml_file, args)
440440 args [ 'roof_material_type' ] = HPXML ::RoofTypeAsphaltShingles
441441 args [ 'roof_color' ] = HPXML ::ColorMedium
442442 args [ 'roof_assembly_r' ] = 2.3
443- args [ 'radiant_barrier_attic_location' ] = 'none'
443+ args [ 'radiant_barrier_attic_location' ] = Constants :: None
444444 args [ 'radiant_barrier_grade' ] = 1
445445 args [ 'neighbor_front_distance' ] = 0
446446 args [ 'neighbor_back_distance' ] = 0
@@ -500,7 +500,7 @@ def _set_measure_argument_values(hpxml_file, args)
500500 args [ 'cooling_system_cooling_capacity' ] = 24000.0
501501 args [ 'cooling_system_fraction_cool_load_served' ] = 1
502502 args [ 'cooling_system_is_ducted' ] = false
503- args [ 'heat_pump_type' ] = 'none'
503+ args [ 'heat_pump_type' ] = Constants :: None
504504 args [ 'heat_pump_heating_efficiency_type' ] = HPXML ::UnitsHSPF
505505 args [ 'heat_pump_heating_efficiency' ] = 7.7
506506 args [ 'heat_pump_cooling_efficiency_type' ] = HPXML ::UnitsSEER
@@ -515,7 +515,7 @@ def _set_measure_argument_values(hpxml_file, args)
515515 args [ 'heat_pump_backup_fuel' ] = HPXML ::FuelTypeElectricity
516516 args [ 'heat_pump_backup_heating_efficiency' ] = 1
517517 args [ 'heat_pump_backup_heating_capacity' ] = 36000.0
518- args [ 'geothermal_loop_configuration' ] = 'none'
518+ args [ 'geothermal_loop_configuration' ] = Constants :: None
519519 args [ 'hvac_control_heating_weekday_setpoint' ] = 68
520520 args [ 'hvac_control_heating_weekend_setpoint' ] = 68
521521 args [ 'hvac_control_cooling_weekday_setpoint' ] = 78
@@ -530,19 +530,19 @@ def _set_measure_argument_values(hpxml_file, args)
530530 args [ 'ducts_supply_surface_area' ] = 150.0
531531 args [ 'ducts_return_surface_area' ] = 50.0
532532 args [ 'ducts_number_of_return_registers' ] = 2
533- args [ 'heating_system_2_type' ] = 'none'
533+ args [ 'heating_system_2_type' ] = Constants :: None
534534 args [ 'heating_system_2_fuel' ] = HPXML ::FuelTypeElectricity
535535 args [ 'heating_system_2_heating_efficiency' ] = 1.0
536536 args [ 'heating_system_2_fraction_heat_load_served' ] = 0.25
537- args [ 'mech_vent_fan_type' ] = 'none'
537+ args [ 'mech_vent_fan_type' ] = Constants :: None
538538 args [ 'mech_vent_flow_rate' ] = 110
539539 args [ 'mech_vent_hours_in_operation' ] = 24
540540 args [ 'mech_vent_recovery_efficiency_type' ] = 'Unadjusted'
541541 args [ 'mech_vent_total_recovery_efficiency' ] = 0.48
542542 args [ 'mech_vent_sensible_recovery_efficiency' ] = 0.72
543543 args [ 'mech_vent_fan_power' ] = 30
544544 args [ 'mech_vent_num_units_served' ] = 1
545- args [ 'mech_vent_2_fan_type' ] = 'none'
545+ args [ 'mech_vent_2_fan_type' ] = Constants :: None
546546 args [ 'mech_vent_2_flow_rate' ] = 110
547547 args [ 'mech_vent_2_hours_in_operation' ] = 24
548548 args [ 'mech_vent_2_recovery_efficiency_type' ] = 'Unadjusted'
@@ -571,12 +571,12 @@ def _set_measure_argument_values(hpxml_file, args)
571571 args [ 'hot_water_distribution_recirc_branch_piping_length' ] = 50
572572 args [ 'hot_water_distribution_recirc_pump_power' ] = 50
573573 args [ 'hot_water_distribution_pipe_r' ] = 0.0
574- args [ 'dwhr_facilities_connected' ] = 'none'
574+ args [ 'dwhr_facilities_connected' ] = Constants :: None
575575 args [ 'dwhr_equal_flow' ] = true
576576 args [ 'dwhr_efficiency' ] = 0.55
577577 args [ 'water_fixtures_shower_low_flow' ] = true
578578 args [ 'water_fixtures_sink_low_flow' ] = false
579- args [ 'solar_thermal_system_type' ] = 'none'
579+ args [ 'solar_thermal_system_type' ] = Constants :: None
580580 args [ 'solar_thermal_collector_area' ] = 40.0
581581 args [ 'solar_thermal_collector_loop_type' ] = HPXML ::SolarThermalLoopTypeDirect
582582 args [ 'solar_thermal_collector_type' ] = HPXML ::SolarThermalCollectorTypeEvacuatedTube
@@ -605,7 +605,7 @@ def _set_measure_argument_values(hpxml_file, args)
605605 args [ 'lighting_garage_fraction_lfl' ] = 0.1
606606 args [ 'lighting_garage_fraction_led' ] = 0.25
607607 args [ 'holiday_lighting_present' ] = false
608- args [ 'dehumidifier_type' ] = 'none'
608+ args [ 'dehumidifier_type' ] = Constants :: None
609609 args [ 'dehumidifier_efficiency_type' ] = 'EnergyFactor'
610610 args [ 'dehumidifier_efficiency' ] = 1.8
611611 args [ 'dehumidifier_capacity' ] = 40
@@ -784,16 +784,16 @@ def _set_measure_argument_values(hpxml_file, args)
784784 args [ 'heating_system_heating_efficiency' ] = 1.0
785785 args [ 'heating_system_heating_capacity' ] = 48000.0
786786 args [ 'heating_system_fraction_heat_load_served' ] = 0.75
787- args [ 'cooling_system_type' ] = 'none'
787+ args [ 'cooling_system_type' ] = Constants :: None
788788 args [ 'heating_system_2_type' ] = HPXML ::HVACTypeFireplace
789789 args [ 'heating_system_2_heating_capacity' ] = 16000.0
790790 elsif [ 'extra-second-heating-system-boiler-to-heating-system.xml' ] . include? hpxml_file
791791 args [ 'heating_system_type' ] = HPXML ::HVACTypeBoiler
792792 args [ 'heating_system_fraction_heat_load_served' ] = 0.75
793793 args [ 'heating_system_2_type' ] = HPXML ::HVACTypeBoiler
794794 elsif [ 'extra-second-heating-system-portable-heater-to-heat-pump.xml' ] . include? hpxml_file
795- args [ 'heating_system_type' ] = 'none'
796- args [ 'cooling_system_type' ] = 'none'
795+ args [ 'heating_system_type' ] = Constants :: None
796+ args [ 'cooling_system_type' ] = Constants :: None
797797 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpAirToAir
798798 args [ 'heat_pump_backup_type' ] = HPXML ::HeatPumpBackupTypeIntegrated
799799 args [ 'heat_pump_backup_fuel' ] = HPXML ::FuelTypeElectricity
@@ -806,8 +806,8 @@ def _set_measure_argument_values(hpxml_file, args)
806806 args [ 'heating_system_2_type' ] = HPXML ::HVACTypeSpaceHeater
807807 args [ 'heating_system_2_heating_capacity' ] = 16000.0
808808 elsif [ 'extra-second-heating-system-fireplace-to-heat-pump.xml' ] . include? hpxml_file
809- args [ 'heating_system_type' ] = 'none'
810- args [ 'cooling_system_type' ] = 'none'
809+ args [ 'heating_system_type' ] = Constants :: None
810+ args [ 'cooling_system_type' ] = Constants :: None
811811 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpMiniSplit
812812 args . delete ( 'heat_pump_cooling_compressor_type' )
813813 args [ 'heat_pump_heating_efficiency' ] = 10.0
@@ -818,8 +818,8 @@ def _set_measure_argument_values(hpxml_file, args)
818818 args [ 'heating_system_2_type' ] = HPXML ::HVACTypeFireplace
819819 args [ 'heating_system_2_heating_capacity' ] = 16000.0
820820 elsif [ 'extra-second-heating-system-boiler-to-heat-pump.xml' ] . include? hpxml_file
821- args [ 'heating_system_type' ] = 'none'
822- args [ 'cooling_system_type' ] = 'none'
821+ args [ 'heating_system_type' ] = Constants :: None
822+ args [ 'cooling_system_type' ] = Constants :: None
823823 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpGroundToAir
824824 args [ 'heat_pump_heating_efficiency_type' ] = HPXML ::UnitsCOP
825825 args [ 'heat_pump_heating_efficiency' ] = 3.6
@@ -860,7 +860,7 @@ def _set_measure_argument_values(hpxml_file, args)
860860 args [ 'ducts_supply_location' ] = HPXML ::LocationUnderSlab
861861 args [ 'ducts_return_location' ] = HPXML ::LocationUnderSlab
862862 elsif [ 'extra-enclosure-atticroof-conditioned-eaves-hip.xml' ] . include? hpxml_file
863- args [ 'geometry_roof_type' ] = 'hip'
863+ args [ 'geometry_roof_type' ] = Constants :: RoofTypeHip
864864 elsif [ 'extra-gas-pool-heater-with-zero-kwh.xml' ] . include? hpxml_file
865865 args [ 'pool_present' ] = true
866866 args [ 'pool_heater_type' ] = HPXML ::HeaterTypeGas
@@ -902,8 +902,8 @@ def _set_measure_argument_values(hpxml_file, args)
902902 args [ 'utility_bill_wood_pellets_fixed_charges' ] = '16, 17'
903903 args [ 'utility_bill_wood_pellets_marginal_rates' ] = '18, 19'
904904 elsif [ 'extra-seasons-building-america.xml' ] . include? hpxml_file
905- args [ 'hvac_control_heating_season_period' ] = HPXML ::BuildingAmerica
906- args [ 'hvac_control_cooling_season_period' ] = HPXML ::BuildingAmerica
905+ args [ 'hvac_control_heating_season_period' ] = Constants ::BuildingAmerica
906+ args [ 'hvac_control_cooling_season_period' ] = Constants ::BuildingAmerica
907907 elsif [ 'extra-ducts-crawlspace.xml' ] . include? hpxml_file
908908 args [ 'geometry_foundation_type' ] = HPXML ::FoundationTypeCrawlspaceUnvented
909909 args [ 'geometry_foundation_height' ] = 4
@@ -933,8 +933,8 @@ def _set_measure_argument_values(hpxml_file, args)
933933 args [ 'battery_present' ] = true
934934 args [ 'battery_location' ] = HPXML ::LocationAttic
935935 elsif [ 'extra-detailed-performance-autosize.xml' ] . include? hpxml_file
936- args [ 'heating_system_type' ] = 'none'
937- args [ 'cooling_system_type' ] = 'none'
936+ args [ 'heating_system_type' ] = Constants :: None
937+ args [ 'cooling_system_type' ] = Constants :: None
938938 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpAirToAir
939939 args [ 'heat_pump_heating_efficiency' ] = 10.0
940940 args [ 'heat_pump_cooling_efficiency' ] = 17.25
@@ -969,7 +969,7 @@ def _set_measure_argument_values(hpxml_file, args)
969969 args [ 'ducts_supply_location' ] = HPXML ::LocationConditionedSpace
970970 args [ 'ducts_return_location' ] = HPXML ::LocationConditionedSpace
971971 elsif [ 'extra-sfa-atticroof-conditioned-eaves-hip.xml' ] . include? hpxml_file
972- args [ 'geometry_roof_type' ] = 'hip'
972+ args [ 'geometry_roof_type' ] = Constants :: RoofTypeHip
973973 elsif [ 'extra-mf-eaves.xml' ] . include? hpxml_file
974974 args [ 'geometry_eaves_depth' ] = 2
975975 elsif [ 'extra-sfa-slab.xml' ] . include? hpxml_file
@@ -1138,10 +1138,10 @@ def _set_measure_argument_values(hpxml_file, args)
11381138
11391139 # Error
11401140 if [ 'error-heating-system-and-heat-pump.xml' ] . include? hpxml_file
1141- args [ 'cooling_system_type' ] = 'none'
1141+ args [ 'cooling_system_type' ] = Constants :: None
11421142 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpAirToAir
11431143 elsif [ 'error-cooling-system-and-heat-pump.xml' ] . include? hpxml_file
1144- args [ 'heating_system_type' ] = 'none'
1144+ args [ 'heating_system_type' ] = Constants :: None
11451145 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpAirToAir
11461146 elsif [ 'error-sfd-conditioned-basement-zero-foundation-height.xml' ] . include? hpxml_file
11471147 args [ 'geometry_foundation_height' ] = 0.0
@@ -1158,11 +1158,11 @@ def _set_measure_argument_values(hpxml_file, args)
11581158 args [ 'geometry_attic_type' ] = HPXML ::AtticTypeBelowApartment
11591159 args . delete ( 'foundation_wall_insulation_distance_to_bottom' )
11601160 elsif [ 'error-second-heating-system-but-no-primary-heating.xml' ] . include? hpxml_file
1161- args [ 'heating_system_type' ] = 'none'
1161+ args [ 'heating_system_type' ] = Constants :: None
11621162 args [ 'heating_system_2_type' ] = HPXML ::HVACTypeFireplace
11631163 elsif [ 'error-second-heating-system-ducted-with-ducted-primary-heating.xml' ] . include? hpxml_file
1164- args [ 'heating_system_type' ] = 'none'
1165- args [ 'cooling_system_type' ] = 'none'
1164+ args [ 'heating_system_type' ] = Constants :: None
1165+ args [ 'cooling_system_type' ] = Constants :: None
11661166 args [ 'heat_pump_type' ] = HPXML ::HVACTypeHeatPumpMiniSplit
11671167 args . delete ( 'heat_pump_cooling_compressor_type' )
11681168 args [ 'heat_pump_is_ducted' ] = true
@@ -1248,7 +1248,7 @@ def _set_measure_argument_values(hpxml_file, args)
12481248 args [ 'geometry_unit_front_wall_is_adiabatic' ] = true
12491249 args [ 'geometry_unit_back_wall_is_adiabatic' ] = true
12501250 elsif [ 'error-hip-roof-and-protruding-garage.xml' ] . include? hpxml_file
1251- args [ 'geometry_roof_type' ] = 'hip'
1251+ args [ 'geometry_roof_type' ] = Constants :: RoofTypeHip
12521252 args [ 'geometry_garage_width' ] = 12
12531253 args [ 'geometry_garage_protrusion' ] = 0.5
12541254 elsif [ 'error-protruding-garage-under-gable-roof.xml' ] . include? hpxml_file
0 commit comments