From c2cde926cbe123ff4c2385d43df65b06fa95fc84 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Tue, 16 Jul 2024 16:29:33 -0400 Subject: [PATCH] Check --- .../lca_carbon_workflow.cpython-310.pyc | Bin 1848 -> 0 bytes building_component_surface.py | 48 ++++++++++++++++++ lca_carbon_workflow.py | 25 +++++++-- 3 files changed, 69 insertions(+), 4 deletions(-) delete mode 100644 __pycache__/lca_carbon_workflow.cpython-310.pyc diff --git a/__pycache__/lca_carbon_workflow.cpython-310.pyc b/__pycache__/lca_carbon_workflow.cpython-310.pyc deleted file mode 100644 index 42c9fa4321a3d7d4e346cf19c31e75f5a5b7444d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1848 zcmZuy&2J+$6t`z4^O2_MC#z*a$e1{KoIYp5MIp^NUUw#`r^AY;n zD$BzKWf!J?3WA{+G0dC{=T7WkyLK}-_hPSJds!p*W4~TEvLFxR5TgUcd=^|H7F;-S z#KKe5iOPoU6Ch`pL|AovPh+3f|A~sCp|J$vYbE|<0O@ZQKDZOsq_xn%Y@=HO7>VL z2%Rfk3d%0T%}?m2wE2x3QNYj0i48vGQ_g6gG67#YcXai_wwqItb>GfMW`#EkLY|DpMn5@!H(l7qtaa$8~CtSssh3egsyIVhojaA{;p^ zWG?eAaqO}N^Dj~CvA|ZW+Bod(^{DF0;+a%G3^MtmY7{D^#g$w6BW`n8ZBIE>i5x&d zUqh)V*$(H~B|XALxKXv3p5q4oqLxKSBbDuP3lZ3$|{9@m&C0kpS#QMP39hq=85 zoMy@YKrQsjv*?s(qkUc|k&bK*G|vWcWL@*(Vb@>x zcFw-lU^t_Ry<=y`({w~teyrq}r$(P;DNWLvoym(EdcMupolI?lL?KL)Y{JRNyDus5o7`6;HUp2EofCVrKjqyHu z9{!AtbB@QrOb1wXI_DKW>Uhe6iKE*T=*rD_5r?`|1DbN(anzO#2yX-Gw9Lgj;HWlJ znx&S2JmI;}8hH2#*fn%?)WU7-y_!9|3;*t>BY0B)dz8JJP&G(a0kr@&HIroCoMGKc zk{?T&%{}U#jlXY&t<{pS$dpB}0aIH}g~(|*xcP7E-P(TCX;wj!Fqy)kf#qQ)`ZbN? z_kreJ0e=h1=q}u(y6Gj54BPc;I>uxHY^N{S4Ir diff --git a/building_component_surface.py b/building_component_surface.py index e69de29..7d648d3 100644 --- a/building_component_surface.py +++ b/building_component_surface.py @@ -0,0 +1,48 @@ +""" +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 + diff --git a/lca_carbon_workflow.py b/lca_carbon_workflow.py index 23d500b..079f157 100644 --- a/lca_carbon_workflow.py +++ b/lca_carbon_workflow.py @@ -1,5 +1,5 @@ """ -building_component module +lca_carbon_workflow module Returns the summarize of envelope and energy systems SPDX - License - Identifier: LGPL - 3.0 - or -later Copyright © 2024 Concordia CERC group @@ -40,6 +40,23 @@ class LCACarbonWorkflow: print(f'city created from {self.file_path}') ConstructionFactory(self.handler, self.city).enrich() - def calculate_emission(self): - for building in self.city.buildings: - return len(building.surfaces) + @staticmethod + def calculate_opening_emission(building): + surface_emission = [] + for surface in building.surfaces: + if surface.window_ratio == 0: + opening_surface = 0 + opening_material_emission = 0 + else: + opening_surface = 0 + opening_material_emission = 0 + for opening in surface.associated_thermal_boundaries.thermal_openings: + opening_surface += opening.area + opening_material_emission = + + + +# def calculate_emission(self): + # emitted_carbon = [] + # for building in self.city.buildings: + # return len(building.surfaces)