From 0c17fa48b547da96600bff6296575049cc7bab16 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Thu, 25 Jul 2024 15:00:04 -0400 Subject: [PATCH] Write endoflife methods/delete building component --- .../building_component.py | 33 ------------------- .../lca_end_of_life_carbon.py | 25 ++++++++++++-- 2 files changed, 23 insertions(+), 35 deletions(-) delete mode 100644 hub/city_model_structure/life_cycle_assessment/building_component.py diff --git a/hub/city_model_structure/life_cycle_assessment/building_component.py b/hub/city_model_structure/life_cycle_assessment/building_component.py deleted file mode 100644 index d241977e..00000000 --- a/hub/city_model_structure/life_cycle_assessment/building_component.py +++ /dev/null @@ -1,33 +0,0 @@ -""" -building_component module -Returns the summarize of openings, -envelopes and energy systems material emissions -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 BuildingComponent: - def __init__(self, opening_emission, - envelope_emission, energy_systems_material_emission=0): - self._opening_emission = opening_emission - self._envelope_emission = envelope_emission - self._energy_systems_material_emission = energy_systems_material_emission - - @property - def opening_emission(self): - return self._opening_emission - - @property - def envelope_emission(self): - return self._envelope_emission - - @property - def energy_systems_material_emission(self): - return self._energy_systems_material_emission - - def component_emission(self): - return self._opening_emission + self._envelope_emission + \ - self._energy_systems_material_emission diff --git a/hub/city_model_structure/life_cycle_assessment/lca_end_of_life_carbon.py b/hub/city_model_structure/life_cycle_assessment/lca_end_of_life_carbon.py index d6d2a439..f69114ed 100644 --- a/hub/city_model_structure/life_cycle_assessment/lca_end_of_life_carbon.py +++ b/hub/city_model_structure/life_cycle_assessment/lca_end_of_life_carbon.py @@ -1,5 +1,9 @@ """ lca_end_of_life_carbon module +Machine emission of different methods can be a default argument, because, +at this phase we use the average emission of different machines emission +for each part (demolition, onsite, recycling and landfilling). +For next phases, we can use a Machine object to find the corresponding emission. SPDX - License - Identifier: LGPL - 3.0 Copyright © 2024 Concordia CERC group Project Developers: Alireza Adli alireza.adli@concordia.ca @@ -7,5 +11,22 @@ Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca """ -class EndOfLife: - pass +class EndOfLifeEmission: + def __init__(self): + pass + + def demolition(self, demolition_machine_emission, demolition_work_load): + pass + + def onsite_recycling(self, onsite_machine_emission, onsite_work_load): + pass + + def companies_recycling(self, companies_recycling_machine_emission, + companies_recycling_work_load): + pass + + def landfilling(self, landfilling_machine_emission, landfilling_work_load): + pass + + def calculate_end_of_life_emission(self): + pass