Add layer_workload
This commit is contained in:
parent
8d3b8cdc45
commit
a5dc259861
|
@ -72,7 +72,6 @@ class LCACarbonWorkflow:
|
||||||
boundary_envelope_emission = []
|
boundary_envelope_emission = []
|
||||||
boundary_opening_emission = []
|
boundary_opening_emission = []
|
||||||
|
|
||||||
|
|
||||||
for boundary in surface.associated_thermal_boundaries:
|
for boundary in surface.associated_thermal_boundaries:
|
||||||
opening_emission = None
|
opening_emission = None
|
||||||
layer_emission = self._calculate_envelope_emission(boundary)
|
layer_emission = self._calculate_envelope_emission(boundary)
|
||||||
|
@ -99,10 +98,12 @@ class LCACarbonWorkflow:
|
||||||
layer_emission = []
|
layer_emission = []
|
||||||
for layer in boundary.layers:
|
for layer in boundary.layers:
|
||||||
if not layer.no_mass:
|
if not layer.no_mass:
|
||||||
|
layer_material = \
|
||||||
|
self.nrcan_catalogs.search_materials(layer.material_name)
|
||||||
layer_emission.append(EnvelopeEmission(
|
layer_emission.append(EnvelopeEmission(
|
||||||
self.nrcan_catalogs.search_materials(
|
layer_material['embodied_carbon'],
|
||||||
layer.material_name)['embodied_carbon'],
|
|
||||||
boundary.opaque_area, layer.thickness).calculate_envelope_emission())
|
boundary.opaque_area, layer.thickness).calculate_envelope_emission())
|
||||||
|
layer_workload = boundary.opaque_area * layer.thickness * layer_material['density']
|
||||||
return layer_emission
|
return layer_emission
|
||||||
|
|
||||||
def _calculate_opening_emission(
|
def _calculate_opening_emission(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user