@@ -497,7 +497,8 @@ class HPXML < Object
497
497
hdl_slabs : 'Slabs' ,
498
498
hdl_ceilings : 'Ceilings' ,
499
499
hdl_infil : 'Infiltration' ,
500
- hdl_vent : 'Ventilation' }
500
+ hdl_vent : 'Ventilation' ,
501
+ hdl_piping : 'Piping' }
501
502
CDL_SENS_ATTRS = { cdl_sens_total : 'Total' ,
502
503
cdl_sens_ducts : 'Ducts' ,
503
504
cdl_sens_windows : 'Windows' ,
@@ -511,6 +512,7 @@ class HPXML < Object
511
512
cdl_sens_infil : 'Infiltration' ,
512
513
cdl_sens_vent : 'Ventilation' ,
513
514
cdl_sens_intgains : 'InternalLoads' ,
515
+ cdl_sens_blowerheat : 'BlowerHeat' ,
514
516
cdl_sens_aedexcursion : 'AEDExcursion' ,
515
517
cdl_sens_aed_curve : 'AEDCurve' }
516
518
CDL_LAT_ATTRS = { cdl_lat_total : 'Total' ,
@@ -4776,7 +4778,8 @@ def initialize(hpxml_object, *args, **kwargs)
4776
4778
:third_party_certification , :htg_seed_id , :is_shared_system , :number_of_units_served ,
4777
4779
:shared_loop_watts , :shared_loop_motor_efficiency , :fan_coil_watts , :fan_watts_per_cfm ,
4778
4780
:airflow_defect_ratio , :fan_watts , :heating_airflow_cfm , :location , :primary_system ,
4779
- :pilot_light , :pilot_light_btuh , :electric_resistance_distribution , :heating_autosizing_factor , :heating_autosizing_limit ]
4781
+ :pilot_light , :pilot_light_btuh , :electric_resistance_distribution , :heating_autosizing_factor ,
4782
+ :heating_autosizing_limit ]
4780
4783
attr_accessor ( *ATTRS )
4781
4784
attr_reader ( :heating_detailed_performance_data )
4782
4785
@@ -5776,7 +5779,8 @@ def initialize(hpxml_bldg, *args, **kwargs)
5776
5779
super ( hpxml_bldg , *args , **kwargs )
5777
5780
end
5778
5781
ATTRS = [ :id , :distribution_system_type , :annual_heating_dse , :annual_cooling_dse , :duct_system_sealed ,
5779
- :conditioned_floor_area_served , :number_of_return_registers , :air_type , :hydronic_type ]
5782
+ :conditioned_floor_area_served , :number_of_return_registers , :air_type , :hydronic_type ,
5783
+ :manualj_blower_fan_heat_btuh , :manualj_hot_water_piping_btuh ]
5780
5784
attr_accessor ( *ATTRS )
5781
5785
attr_reader ( :duct_leakage_measurements , :ducts )
5782
5786
@@ -5857,15 +5861,23 @@ def to_doc(building)
5857
5861
end
5858
5862
5859
5863
if [ HPXML ::HVACDistributionTypeHydronic ] . include? @distribution_system_type
5860
- distribution = XMLHelper . get_element ( hvac_distribution , 'DistributionSystemType/HydronicDistribution' )
5861
- XMLHelper . add_element ( distribution , 'HydronicDistributionType' , @hydronic_type , :string ) unless @hydronic_type . nil?
5864
+ hydronic_distribution = XMLHelper . get_element ( hvac_distribution , 'DistributionSystemType/HydronicDistribution' )
5865
+ XMLHelper . add_element ( hydronic_distribution , 'HydronicDistributionType' , @hydronic_type , :string ) unless @hydronic_type . nil?
5866
+ if not @manualj_hot_water_piping_btuh . nil?
5867
+ manualj_inputs = XMLHelper . create_elements_as_needed ( hydronic_distribution , [ 'extension' , 'ManualJInputs' ] )
5868
+ XMLHelper . add_element ( manualj_inputs , 'HotWaterPipingBtuh' , @manualj_hot_water_piping_btuh , :float , @manualj_hot_water_piping_btuh_isdefaulted )
5869
+ end
5862
5870
end
5863
5871
if [ HPXML ::HVACDistributionTypeAir ] . include? @distribution_system_type
5864
- distribution = XMLHelper . get_element ( hvac_distribution , 'DistributionSystemType/AirDistribution' )
5865
- XMLHelper . add_element ( distribution , 'AirDistributionType' , @air_type , :string ) unless @air_type . nil?
5866
- @duct_leakage_measurements . to_doc ( distribution )
5867
- @ducts . to_doc ( distribution )
5868
- XMLHelper . add_element ( distribution , 'NumberofReturnRegisters' , @number_of_return_registers , :integer , @number_of_return_registers_isdefaulted ) unless @number_of_return_registers . nil?
5872
+ air_distribution = XMLHelper . get_element ( hvac_distribution , 'DistributionSystemType/AirDistribution' )
5873
+ XMLHelper . add_element ( air_distribution , 'AirDistributionType' , @air_type , :string ) unless @air_type . nil?
5874
+ @duct_leakage_measurements . to_doc ( air_distribution )
5875
+ @ducts . to_doc ( air_distribution )
5876
+ XMLHelper . add_element ( air_distribution , 'NumberofReturnRegisters' , @number_of_return_registers , :integer , @number_of_return_registers_isdefaulted ) unless @number_of_return_registers . nil?
5877
+ if not @manualj_blower_fan_heat_btuh . nil?
5878
+ manualj_inputs = XMLHelper . create_elements_as_needed ( air_distribution , [ 'extension' , 'ManualJInputs' ] )
5879
+ XMLHelper . add_element ( manualj_inputs , 'BlowerFanHeatBtuh' , @manualj_blower_fan_heat_btuh , :float , @manualj_blower_fan_heat_btuh_isdefaulted )
5880
+ end
5869
5881
end
5870
5882
5871
5883
if not @duct_system_sealed . nil?
@@ -5892,12 +5904,14 @@ def from_doc(hvac_distribution)
5892
5904
5893
5905
if not hydronic_distribution . nil?
5894
5906
@hydronic_type = XMLHelper . get_value ( hydronic_distribution , 'HydronicDistributionType' , :string )
5907
+ @manualj_hot_water_piping_btuh = XMLHelper . get_value ( hydronic_distribution , 'extension/ManualJInputs/HotWaterPipingBtuh' , :float )
5895
5908
end
5896
5909
if not air_distribution . nil?
5897
5910
@air_type = XMLHelper . get_value ( air_distribution , 'AirDistributionType' , :string )
5898
5911
@number_of_return_registers = XMLHelper . get_value ( air_distribution , 'NumberofReturnRegisters' , :integer )
5899
5912
@duct_leakage_measurements . from_doc ( air_distribution )
5900
5913
@ducts . from_doc ( air_distribution )
5914
+ @manualj_blower_fan_heat_btuh = XMLHelper . get_value ( air_distribution , 'extension/ManualJInputs/BlowerFanHeatBtuh' , :float )
5901
5915
end
5902
5916
end
5903
5917
end
0 commit comments