MEB workflow run to the end only with option: sra_calculated = True

This commit is contained in:
pilar 2020-06-11 18:30:50 -04:00
parent 2de8869dd3
commit 2da64d7c60
5 changed files with 15 additions and 4 deletions

View File

@ -72,7 +72,7 @@ class Polyhedron:
if self._mesh is None:
self._mesh = Trimesh(vertices=np.asarray(self.vertices), faces=np.asarray(self.faces))
if not self._mesh.is_volume:
print('error')
print('The geometry is not a closed volume')
return None
return self._mesh

View File

@ -209,7 +209,7 @@ class Surface:
equal = 0
for terrain_point in terrain_points:
for ground_point in ground_points:
if self._geometry.almost_equal(terrain_point, ground_point):
if self._geometry_helper.almost_equal(terrain_point, ground_point):
equal += 1
return equal == len(terrain_points)

View File

@ -5,6 +5,7 @@ Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@conc
"""
from typing import List
from city_model_structure.internal_gains import InternalGains
from helpers.configuration_helper import ConfigurationHelper
class UsageZone:
@ -19,7 +20,8 @@ class UsageZone:
self._cooling_setpoint = None
self._hours_day = None
self._days_year = None
self._mechanical_air_change = None
# todo: this must come from library, talk to Rabeeh
self._mechanical_air_change = ConfigurationHelper().min_air_change
@property
def internal_gains(self) -> List[InternalGains]:

View File

@ -16,3 +16,4 @@ indirectly_heated_area_ratio = 0
infiltration_rate_system_on = 0
outside_solar_absorptance = 0.2
shortwave_reflectance = 0.8
min_air_change = 0.5

View File

@ -85,7 +85,15 @@ class ConfigurationHelper:
@property
def outside_solar_absorptance(self):
"""
Configured infiltration rate system off in air change per hour
Configured exterior solar absorptance
:return: float
"""
return self._config.getfloat('thermal_zones', 'outside_solar_absorptance')
@property
def min_air_change(self):
"""
Configured minimum air change rate in air changes per hour
:return: float
"""
return self._config.getfloat('thermal_zones', 'min_air_change')