modifications in city_objects and init.py to define the relationship between thermal_zones and usage_zones
This commit is contained in:
parent
e455dce9af
commit
3fa2425be0
@ -126,6 +126,7 @@ class Surface:
|
||||
self._inclination = np.arccos(self.normal[2])
|
||||
return self._inclination
|
||||
|
||||
# todo: share wall
|
||||
@property
|
||||
def type(self):
|
||||
if self._type is None:
|
||||
|
@ -14,6 +14,7 @@ class ThermalZone:
|
||||
self._indirectly_heated_area_ratio = None
|
||||
self._infiltration_rate_system_on = None
|
||||
self._infiltration_rate_system_off = None
|
||||
self._usage_zones = None
|
||||
|
||||
@property
|
||||
def heated(self):
|
||||
@ -84,3 +85,11 @@ class ThermalZone:
|
||||
def infiltration_rate_system_off(self, value):
|
||||
self._infiltration_rate_system_off = value
|
||||
|
||||
# todo: is it well defined?
|
||||
def set_usage_zones(self, usage_zones_list):
|
||||
if self._usage_zones is None:
|
||||
self._usage_zones = []
|
||||
for usage_zone in usage_zones_list:
|
||||
self._usage_zones.append((usage_zone.percentage, usage_zone.type))
|
||||
return self._usage_zones
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user