Check the boundary loop in calculate opening emission
This commit is contained in:
parent
14291a8789
commit
2aaf66e884
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../hub_new/hub" />
|
||||
<content url="file://$MODULE_DIR$/../hub_new/hub/hub" />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.10 (conda-hub)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
@ -1,48 +0,0 @@
|
||||
"""
|
||||
building_component_surface module
|
||||
Returns each individual surface values that are needed for
|
||||
carbon emission calculation in building_component and eventually in
|
||||
lca_carbon_workflow modules.
|
||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||
Copyright © 2024 Concordia CERC group
|
||||
Code contributors: Alireza Adli alireza.adli@concordia.ca
|
||||
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
|
||||
"""
|
||||
|
||||
|
||||
class BuildingComponentSurface:
|
||||
def __init__(self):
|
||||
self._opening_material_emission = None
|
||||
self._opening_surface = None
|
||||
self._envelope_material_emission = None
|
||||
self._envelope_thickness = None
|
||||
self._envelope_surface = None
|
||||
|
||||
@property
|
||||
def opening_material_emission(self):
|
||||
return self._opening_material_emission
|
||||
|
||||
@opening_material_emission.setter
|
||||
def opening_material_emission(self, value):
|
||||
pass
|
||||
|
||||
@property
|
||||
def opening_surface(self):
|
||||
return self._opening_surface
|
||||
|
||||
@opening_surface.setter
|
||||
def opening_surface(self, value):
|
||||
pass
|
||||
|
||||
@property
|
||||
def envelope_material_emission(self):
|
||||
return self._envelope_material_emission
|
||||
|
||||
@property
|
||||
def envelope_thickness(self):
|
||||
return self._envelope_thickness
|
||||
|
||||
@property
|
||||
def envelope_surface(self):
|
||||
return self._envelope_surface
|
||||
|
@ -64,7 +64,4 @@ class LCACarbonWorkflow:
|
||||
def calculate_emission(self):
|
||||
emitted_carbon = []
|
||||
for building in self.city.buildings:
|
||||
# self.calculate_opening_emission(building)
|
||||
for surface in building.surfaces:
|
||||
for boundary in surface.associated_thermal_boundaries:
|
||||
print(boundary.window_ratio)
|
||||
self.calculate_opening_emission(building)
|
Loading…
Reference in New Issue
Block a user