Finalize end of life emission

This commit is contained in:
Alireza Adli 2024-08-01 13:01:22 -04:00
parent 5d9aaa63ad
commit 8a92731359

View File

@ -15,8 +15,10 @@ class EndOfLifeEmission:
def __init__( def __init__(
self, recycling_ratio, onsite_recycling_ratio, self, recycling_ratio, onsite_recycling_ratio,
company_recycling_ratio, landfilling_ratio, company_recycling_ratio, landfilling_ratio,
demolition_machine_emission, onsite_machine_emission, demolition_work_load, onsite_work_load,
companies_recycling_machine_emission, landfilling_machine_emission): 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.recycling_ratio = recycling_ratio
self.onsite_recycling_ratio = onsite_recycling_ratio self.onsite_recycling_ratio = onsite_recycling_ratio
self.company_recycling_ratio = company_recycling_ratio self.company_recycling_ratio = company_recycling_ratio
@ -26,24 +28,31 @@ class EndOfLifeEmission:
self.companies_recycling_machine_emission = \ self.companies_recycling_machine_emission = \
companies_recycling_machine_emission companies_recycling_machine_emission
self.landfilling_machine_emission = landfilling_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): def demolition(self):
return self.demolition_machine_emission * demolition_work_load return self.demolition_machine_emission * self.demolition_work_load
def onsite_recycling(self, onsite_work_load): def onsite_recycling(self):
return self.onsite_recycling_ratio * \ return self.recycling_ratio * (self.onsite_recycling_ratio *
self.onsite_machine_emission * \ self.onsite_machine_emission *
onsite_work_load self.onsite_work_load)
def companies_recycling(self, companies_recycling_work_load): def companies_recycling(self):
return self.company_recycling_ratio * \ return self.recycling_ratio * (self.company_recycling_ratio *
self.companies_recycling_machine_emission * \ self.companies_recycling_machine_emission *
companies_recycling_work_load self.companies_recycling_work_load)
def landfilling(self, landfilling_work_load): def landfilling(self):
return self.landfilling_ratio * \ return self.landfilling_ratio * \
self.landfilling_machine_emission * \ self.landfilling_machine_emission * \
landfilling_work_load self.landfilling_work_load
def calculate_end_of_life_emission(self): def calculate_end_of_life_emission(self):
pass return self.demolition() + \
self.onsite_recycling() + \
self.companies_recycling() + \
self.landfilling()