Begin adding layer's material emission

This commit is contained in:
Alireza Adli 2024-07-20 12:17:56 -04:00
parent ee74981e7e
commit 4882023561
2 changed files with 2344 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,8 @@ from city_model_structure.life_cycle_assessment.access_nrcan_catalogue \
import AccessNrcanCatalog
from city_model_structure.life_cycle_assessment.opening_emission \
import OpeningEmission
from city_model_structure.life_cycle_assessment.envelope_emission \
import EnvelopeEmission
class LCACarbonWorkflow:
@ -66,9 +68,18 @@ class LCACarbonWorkflow:
boundary_opening_emission = []
for boundary in surface.associated_thermal_boundaries:
opening_emission = []
layer_emission = []
if boundary.window_ratio == 0:
opening_surface = 0
opening_material_emission = 0
for layer in boundary.layers:
layer_emission.append(EnvelopeEmission(
self.nrcan_catalogs.search_materials(
layer.material_name)['embodied_carbon'],
boundary.opaque_area,
layer.thickness).calculate_envelope_emission())
# continue from here, but remember, since the area of windows and opaque is at hand, we may not need a conditional for window_ratio
else:
opening_emission = self._calculate_opening_emission(
building, surface, boundary, opaque_surface_code)
@ -94,6 +105,9 @@ class LCACarbonWorkflow:
opening.area).calculate_opening_emission())
return opening_emission
def _calculate_envelope_emission(self):
pass
def calculate_emission(self):
for building in self.city.buildings:
self.calculate_building_component_emission(building)