Write endoflife methods/delete building component

This commit is contained in:
Alireza Adli 2024-07-25 15:00:04 -04:00
parent 4f9e5157a1
commit 0c17fa48b5
2 changed files with 23 additions and 35 deletions

View File

@ -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

View File

@ -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:
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