Describe _calculate_envelope_emission

This commit is contained in:
Alireza Adli 2024-10-14 11:32:02 -04:00
parent 726271aa6d
commit ed2ae3e9b6

View File

@ -142,6 +142,18 @@ class LCACarbonWorkflow:
building_opening_workload, building_component_workload building_opening_workload, building_component_workload
def _calculate_envelope_emission(self, boundary): def _calculate_envelope_emission(self, boundary):
"""
The method calculates embodied and end of life emission of the building's
envelope by iterating through each building boundary's layers. The
argument corresponding to the boundary parameter comes from the
calculate_building_component_emission() method. The output also is used
in the calculate_building_component_emission() method. So the current
method is hidden to the user.
:param boundary: <class
'hub.city_model_structure.
building_demand.thermal_boundary.ThermalBoundary'>
:return: <class 'tuple'>
"""
layer_emission = [] layer_emission = []
layer_end_of_life_emission = [] layer_end_of_life_emission = []
for layer in boundary.layers: for layer in boundary.layers:
@ -170,14 +182,16 @@ class LCACarbonWorkflow:
building, surface, boundary, opaque_surface_code, building, surface, boundary, opaque_surface_code,
density=2579): density=2579):
""" """
This calculates the opening emission based on the mentioned parameters. This calculates the opening emission by iterating through each thermal
opening of each building's boundary. It is done based on the mentioned
parameters.
The arguments come from the calculate_building_component_emission() The arguments come from the calculate_building_component_emission()
method and the output is used in the same method. So the current method method and the output is used in the same method. So the current method
is hidden to the user. is hidden to the user.
Windows have the assumed density of 2579 kg/m3 Windows have the assumed density of 2579 kg/m3
Window's thickness assumed the same as wall's thickness Window's thickness assumed the same as wall's thickness
These two values are being used to calculate window's workload These two values are being used to calculate window's workload for
for End of Life emission evaluation. the End of Life emission evaluation.
:param building: <class 'hub.city_model_structure.building.Building'> :param building: <class 'hub.city_model_structure.building.Building'>
:param surface: <class :param surface: <class
'hub.city_model_structure.building_demand.surface.Surface'> 'hub.city_model_structure.building_demand.surface.Surface'>