From f48d5214f4d77c4b0922e5add0fd07b12abd87a6 Mon Sep 17 00:00:00 2001 From: jgavalda Date: Fri, 24 Mar 2023 12:15:10 -0400 Subject: [PATCH] Changes idf to incorporate multifloor --- hub/exports/building_energy/idf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index 8b1b09c9..9693fcbb 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -322,6 +322,7 @@ class Idf: def _add_occupancy(self, thermal_zone, zone_name): number_of_people = thermal_zone.occupancy.occupancy_density * thermal_zone.total_floor_area + print(thermal_zone.occupancy.occupancy_density) fraction_radiant = 0 total_sensible = thermal_zone.occupancy.sensible_radiative_internal_gain + \ thermal_zone.occupancy.sensible_convective_internal_gain @@ -343,7 +344,6 @@ class Idf: # todo: fraction visible should come from catalog fraction_visible = 0.3 method = 'Watts/Area' - # todo: check the value of the factor to increase the density for the change of multizone to unizone factor_size = thermal_zone.total_floor_area / thermal_zone.footprint_area watts_per_zone_floor_area = thermal_zone.lighting.density*factor_size # todo: fraction replaceable should come from catalog @@ -368,7 +368,10 @@ class Idf: fraction_convective = thermal_zone.appliances.convective_fraction fraction_latent = 0 method = 'Watts/Area' - watts_per_zone_floor_area = thermal_zone.appliances.density + factor_size = thermal_zone.total_floor_area / thermal_zone.footprint_area + watts_per_zone_floor_area = thermal_zone.appliances.density*factor_size + print(thermal_zone.appliances.density) + print(watts_per_zone_floor_area) subcategory = f'ELECTRIC EQUIPMENT#{zone_name}#InteriorEquipment' # _object = self._idf.newidfobject(self._APPLIANCES) # print(vars(_object))