Changes idf to incorporate multifloor

This commit is contained in:
Oriol Gavalda 2023-03-24 12:15:10 -04:00
parent f8b33fa5bf
commit f48d5214f4

View File

@ -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))