forked from s_ranjbar/city_retrofit
Merge branch 'print_erased' into 'master'
Print erased See merge request Guille/hub!26
This commit is contained in:
commit
04ef5d2c2e
|
@ -467,7 +467,7 @@ class ThermalZone:
|
||||||
_base_schedule.time_step = cte.HOUR
|
_base_schedule.time_step = cte.HOUR
|
||||||
_base_schedule.data_type = cte.ANY_NUMBER
|
_base_schedule.data_type = cte.ANY_NUMBER
|
||||||
_schedules_defined = True
|
_schedules_defined = True
|
||||||
values = numpy.zeros(24, 8)
|
values = numpy.zeros([24, 8])
|
||||||
for usage_zone in self.usage_zones:
|
for usage_zone in self.usage_zones:
|
||||||
for internal_gain in usage_zone.internal_gains:
|
for internal_gain in usage_zone.internal_gains:
|
||||||
_average_internal_gain += internal_gain.average_internal_gain * usage_zone.percentage
|
_average_internal_gain += internal_gain.average_internal_gain * usage_zone.percentage
|
||||||
|
|
|
@ -455,7 +455,6 @@ class Idf:
|
||||||
construction_name = f'{boundary.construction_name}_{boundary.vegetation.name}'
|
construction_name = f'{boundary.construction_name}_{boundary.vegetation.name}'
|
||||||
else:
|
else:
|
||||||
construction_name = boundary.construction_name
|
construction_name = boundary.construction_name
|
||||||
print(outside_boundary_condition, sun_exposure, wind_exposure)
|
|
||||||
surface = self._idf.newidfobject(self._SURFACE, Name=f'{boundary.parent_surface.name}',
|
surface = self._idf.newidfobject(self._SURFACE, Name=f'{boundary.parent_surface.name}',
|
||||||
Surface_Type=idf_surface_type,
|
Surface_Type=idf_surface_type,
|
||||||
Zone_Name=thermal_zone.id,
|
Zone_Name=thermal_zone.id,
|
||||||
|
|
|
@ -298,7 +298,7 @@ class ComnetUsageParameters:
|
||||||
_radiative_heat_gain = archetype.occupancy.sensible_radiative_internal_gain
|
_radiative_heat_gain = archetype.occupancy.sensible_radiative_internal_gain
|
||||||
_total_heat_gain = (_latent_heat_gain + _convective_heat_gain + _radiative_heat_gain)
|
_total_heat_gain = (_latent_heat_gain + _convective_heat_gain + _radiative_heat_gain)
|
||||||
|
|
||||||
_schedule_values = numpy.zeros(24, 7)
|
_schedule_values = numpy.zeros([24, 8])
|
||||||
_sum = 0
|
_sum = 0
|
||||||
for day, _schedule in enumerate(archetype.occupancy.schedules):
|
for day, _schedule in enumerate(archetype.occupancy.schedules):
|
||||||
for v, value in enumerate(_schedule.values):
|
for v, value in enumerate(_schedule.values):
|
||||||
|
|
|
@ -60,7 +60,7 @@ class TestGeometryFactory(TestCase):
|
||||||
self.assertIsNotNone(thermal_zone.days_year, 'thermal_zone days a year is none')
|
self.assertIsNotNone(thermal_zone.days_year, 'thermal_zone days a year is none')
|
||||||
self.assertIsNotNone(thermal_zone.occupancy, 'thermal_zone occupancy is none')
|
self.assertIsNotNone(thermal_zone.occupancy, 'thermal_zone occupancy is none')
|
||||||
self.assertIsNotNone(thermal_zone.thermal_control, 'thermal_zone thermal control is none')
|
self.assertIsNotNone(thermal_zone.thermal_control, 'thermal_zone thermal control is none')
|
||||||
self.assertIsNotNone(thermal_zone.get_internal_gains(), 'thermal_zone internal gains returns none')
|
self.assertIsNotNone(thermal_zone.internal_gains, 'thermal_zone internal gains returns none')
|
||||||
|
|
||||||
def _check_extra_thermal_zone(self, thermal_zone):
|
def _check_extra_thermal_zone(self, thermal_zone):
|
||||||
self.assertIsNotNone(thermal_zone.lighting, 'thermal_zone lighting is none')
|
self.assertIsNotNone(thermal_zone.lighting, 'thermal_zone lighting is none')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user