Describe _calculate_opening_emission

This commit is contained in:
Alireza Adli 2024-10-14 11:22:27 -04:00
parent b974496348
commit 726271aa6d

View File

@ -40,12 +40,12 @@ class LCACarbonWorkflow:
It puts out the results of opening and envelop emission for each It puts out the results of opening and envelop emission for each
mentioned cycle separately. mentioned cycle separately.
Final results will be stored in the below attributes: Final results will be stored in the below attributes:
building_envelope_emission building_envelope_emission: <class 'float'>
building_opening_emission building_opening_emission: <class 'float'>
building_component_emission building_component_emission: <class 'float'>
building_envelope_end_of_life_emission building_envelope_end_of_life_emission: <class 'float'>
building_opening_end_of_life_emission building_opening_end_of_life_emission: <class 'float'>
building_component_end_of_life_emission building_component_end_of_life_emission: <class 'float'>
:param city_path: Either a path to the buildings (GeoJson) :param city_path: Either a path to the buildings (GeoJson)
file or the content of such a file. file or the content of such a file.
:param archetypes_catalog_file_name: Path to the buildings' :param archetypes_catalog_file_name: Path to the buildings'
@ -169,10 +169,25 @@ class LCACarbonWorkflow:
self, self,
building, surface, boundary, opaque_surface_code, building, surface, boundary, opaque_surface_code,
density=2579): density=2579):
"""Windows have the assumed density of 2579 kg/m3 """
This calculates the opening emission based on the mentioned parameters.
The arguments come from the calculate_building_component_emission()
method and the output is used in the same method. So the current method
is hidden to the user.
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 End of Life emission evaluation.""" for End of Life emission evaluation.
:param building: <class 'hub.city_model_structure.building.Building'>
:param surface: <class
'hub.city_model_structure.building_demand.surface.Surface'>
:param boundary: <class
'hub.city_model_structure.
building_demand.thermal_boundary.ThermalBoundary'>
:param opaque_surface_code: <class 'str'>
:param density: <class 'int'>
:return: <class 'tuple'>
"""
opening_emission = [] opening_emission = []
opening_end_of_life_emission = [] opening_end_of_life_emission = []
for opening in boundary.thermal_openings: for opening in boundary.thermal_openings: