From 8a92731359efd7c8d6f53ab789bc2529c989e430 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Thu, 1 Aug 2024 13:01:22 -0400 Subject: [PATCH] Finalize end of life emission --- .../lca_end_of_life_carbon.py | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) 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 04346a74..397b10c1 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 @@ -15,8 +15,10 @@ class EndOfLifeEmission: def __init__( self, recycling_ratio, onsite_recycling_ratio, company_recycling_ratio, landfilling_ratio, - demolition_machine_emission, onsite_machine_emission, - companies_recycling_machine_emission, landfilling_machine_emission): + demolition_work_load, onsite_work_load, + companies_recycling_work_load, landfilling_work_load, + demolition_machine_emission=4.3577325, onsite_machine_emission=2.0576313, + companies_recycling_machine_emission=0.6189555, landfilling_machine_emission=15.7364044): self.recycling_ratio = recycling_ratio self.onsite_recycling_ratio = onsite_recycling_ratio self.company_recycling_ratio = company_recycling_ratio @@ -26,24 +28,31 @@ class EndOfLifeEmission: self.companies_recycling_machine_emission = \ companies_recycling_machine_emission self.landfilling_machine_emission = landfilling_machine_emission + self.demolition_work_load = demolition_work_load + self.onsite_work_load = onsite_work_load + self.companies_recycling_work_load = companies_recycling_work_load + self.landfilling_work_load = landfilling_work_load - def demolition(self, demolition_work_load): - return self.demolition_machine_emission * demolition_work_load + def demolition(self): + return self.demolition_machine_emission * self.demolition_work_load - def onsite_recycling(self, onsite_work_load): - return self.onsite_recycling_ratio * \ - self.onsite_machine_emission * \ - onsite_work_load + def onsite_recycling(self): + return self.recycling_ratio * (self.onsite_recycling_ratio * + self.onsite_machine_emission * + self.onsite_work_load) - def companies_recycling(self, companies_recycling_work_load): - return self.company_recycling_ratio * \ - self.companies_recycling_machine_emission * \ - companies_recycling_work_load + def companies_recycling(self): + return self.recycling_ratio * (self.company_recycling_ratio * + self.companies_recycling_machine_emission * + self.companies_recycling_work_load) - def landfilling(self, landfilling_work_load): + def landfilling(self): return self.landfilling_ratio * \ self.landfilling_machine_emission * \ - landfilling_work_load + self.landfilling_work_load def calculate_end_of_life_emission(self): - pass + return self.demolition() + \ + self.onsite_recycling() + \ + self.companies_recycling() + \ + self.landfilling()