@@ -758,13 +758,13 @@ def self.apply_floor(model, surfaces, constr_name,
758758 def self . apply_foundation_wall ( model , surfaces , constr_name ,
759759 ext_rigid_ins_offset , int_rigid_ins_offset , ext_rigid_ins_height ,
760760 int_rigid_ins_height , ext_rigid_r , int_rigid_r , mat_int_finish ,
761- mat_wall , height_above_grade )
761+ mat_wall , height_above_grade , soil_k_in )
762762
763763 # Create Kiva foundation
764764 foundation = apply_kiva_walled_foundation ( model , ext_rigid_r , int_rigid_r , ext_rigid_ins_offset ,
765765 int_rigid_ins_offset , ext_rigid_ins_height ,
766766 int_rigid_ins_height , height_above_grade ,
767- mat_wall . thick_in , mat_int_finish )
767+ mat_wall . thick_in , mat_int_finish , soil_k_in )
768768
769769 # Define construction
770770 constr = Construction . new ( constr_name , [ 1 ] )
@@ -786,7 +786,7 @@ def self.apply_foundation_slab(model, surface, constr_name,
786786 under_r , under_width , gap_r ,
787787 perimeter_r , perimeter_depth ,
788788 whole_r , concrete_thick_in , exposed_perimeter ,
789- mat_carpet , foundation )
789+ mat_carpet , soil_k_in , foundation )
790790
791791 return if surface . nil?
792792
@@ -795,7 +795,7 @@ def self.apply_foundation_slab(model, surface, constr_name,
795795 thick = UnitConversions . convert ( concrete_thick_in , 'in' , 'ft' )
796796 foundation = create_kiva_slab_foundation ( model , under_r , under_width ,
797797 gap_r , thick , perimeter_r , perimeter_depth ,
798- concrete_thick_in )
798+ concrete_thick_in , soil_k_in )
799799 else
800800 # Kiva foundation (for crawlspace/basement) exists
801801 if ( under_r > 0 ) && ( under_width > 0 )
@@ -813,7 +813,7 @@ def self.apply_foundation_slab(model, surface, constr_name,
813813 mat_concrete = Material . Concrete ( concrete_thick_in )
814814 else
815815 # Use 0.5 - 1.0 inches of soil, per Neal Kruis recommendation
816- mat_soil = Material . Soil ( 0.5 )
816+ mat_soil = Material . Soil ( 0.5 , soil_k_in )
817817 end
818818 mat_rigid = nil
819819 if whole_r > 0
@@ -1214,7 +1214,7 @@ def self.get_gap_factor(install_grade, framing_factor, cavity_r)
12141214
12151215 def self . create_kiva_slab_foundation ( model , int_horiz_r , int_horiz_width , int_vert_r ,
12161216 int_vert_depth , ext_vert_r , ext_vert_depth ,
1217- concrete_thick_in )
1217+ concrete_thick_in , soil_k_in )
12181218
12191219 # Create the Foundation:Kiva object for slab foundations
12201220 foundation = OpenStudio ::Model ::FoundationKiva . new ( model )
@@ -1244,14 +1244,15 @@ def self.create_kiva_slab_foundation(model, int_horiz_r, int_horiz_width, int_ve
12441244 foundation . setWallHeightAboveGrade ( UnitConversions . convert ( concrete_thick_in , 'in' , 'm' ) )
12451245 foundation . setWallDepthBelowSlab ( UnitConversions . convert ( 8.0 , 'in' , 'm' ) )
12461246
1247- apply_kiva_settings ( model )
1247+ apply_kiva_settings ( model , soil_k_in )
12481248
12491249 return foundation
12501250 end
12511251
12521252 def self . apply_kiva_walled_foundation ( model , ext_vert_r , int_vert_r ,
12531253 ext_vert_offset , int_vert_offset , ext_vert_depth , int_vert_depth ,
1254- wall_height_above_grade , wall_material_thick_in , wall_mat_int_finish )
1254+ wall_height_above_grade , wall_material_thick_in , wall_mat_int_finish ,
1255+ soil_k_in )
12551256
12561257 # Create the Foundation:Kiva object for crawl/basement foundations
12571258 foundation = OpenStudio ::Model ::FoundationKiva . new ( model )
@@ -1289,14 +1290,14 @@ def self.apply_kiva_walled_foundation(model, ext_vert_r, int_vert_r,
12891290 foundation . setWallHeightAboveGrade ( UnitConversions . convert ( wall_height_above_grade , 'ft' , 'm' ) )
12901291 foundation . setWallDepthBelowSlab ( UnitConversions . convert ( 8.0 , 'in' , 'm' ) )
12911292
1292- apply_kiva_settings ( model )
1293+ apply_kiva_settings ( model , soil_k_in )
12931294
12941295 return foundation
12951296 end
12961297
1297- def self . apply_kiva_settings ( model )
1298+ def self . apply_kiva_settings ( model , soil_k_in )
12981299 # Set the Foundation:Kiva:Settings object
1299- soil_mat = BaseMaterial . Soil
1300+ soil_mat = BaseMaterial . Soil ( soil_k_in )
13001301 settings = model . getFoundationKivaSettings
13011302 settings . setSoilConductivity ( UnitConversions . convert ( soil_mat . k_in , 'Btu*in/(hr*ft^2*R)' , 'W/(m*K)' ) )
13021303 settings . setSoilDensity ( UnitConversions . convert ( soil_mat . rho , 'lbm/ft^3' , 'kg/m^3' ) )
@@ -1589,7 +1590,7 @@ def self.apply_wall_construction(runner, model, surfaces, wall_id, wall_type, as
15891590 base_mat = BaseMaterial . Brick
15901591 elsif wall_type == HPXML ::WallTypeAdobe
15911592 thick_in = 10.0
1592- base_mat = BaseMaterial . Soil
1593+ base_mat = BaseMaterial . Soil ( 12.0 )
15931594 elsif wall_type == HPXML ::WallTypeStrawBale
15941595 thick_in = 23.0
15951596 base_mat = BaseMaterial . StrawBale
0 commit comments