Begin adding layer's material emission
This commit is contained in:
parent
ee74981e7e
commit
4882023561
2330
input_files/nrcan_materials_dictionaries.json
Normal file
2330
input_files/nrcan_materials_dictionaries.json
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -16,6 +16,8 @@ from city_model_structure.life_cycle_assessment.access_nrcan_catalogue \
|
||||||
import AccessNrcanCatalog
|
import AccessNrcanCatalog
|
||||||
from city_model_structure.life_cycle_assessment.opening_emission \
|
from city_model_structure.life_cycle_assessment.opening_emission \
|
||||||
import OpeningEmission
|
import OpeningEmission
|
||||||
|
from city_model_structure.life_cycle_assessment.envelope_emission \
|
||||||
|
import EnvelopeEmission
|
||||||
|
|
||||||
|
|
||||||
class LCACarbonWorkflow:
|
class LCACarbonWorkflow:
|
||||||
|
@ -66,9 +68,18 @@ class LCACarbonWorkflow:
|
||||||
boundary_opening_emission = []
|
boundary_opening_emission = []
|
||||||
for boundary in surface.associated_thermal_boundaries:
|
for boundary in surface.associated_thermal_boundaries:
|
||||||
opening_emission = []
|
opening_emission = []
|
||||||
|
layer_emission = []
|
||||||
if boundary.window_ratio == 0:
|
if boundary.window_ratio == 0:
|
||||||
opening_surface = 0
|
opening_surface = 0
|
||||||
opening_material_emission = 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:
|
else:
|
||||||
opening_emission = self._calculate_opening_emission(
|
opening_emission = self._calculate_opening_emission(
|
||||||
building, surface, boundary, opaque_surface_code)
|
building, surface, boundary, opaque_surface_code)
|
||||||
|
@ -94,6 +105,9 @@ class LCACarbonWorkflow:
|
||||||
opening.area).calculate_opening_emission())
|
opening.area).calculate_opening_emission())
|
||||||
return opening_emission
|
return opening_emission
|
||||||
|
|
||||||
|
def _calculate_envelope_emission(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def calculate_emission(self):
|
def calculate_emission(self):
|
||||||
for building in self.city.buildings:
|
for building in self.city.buildings:
|
||||||
self.calculate_building_component_emission(building)
|
self.calculate_building_component_emission(building)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user