Describe _calculate_opening_emission
This commit is contained in:
parent
b974496348
commit
726271aa6d
|
@ -40,12 +40,12 @@ class LCACarbonWorkflow:
|
|||
It puts out the results of opening and envelop emission for each
|
||||
mentioned cycle separately.
|
||||
Final results will be stored in the below attributes:
|
||||
building_envelope_emission
|
||||
building_opening_emission
|
||||
building_component_emission
|
||||
building_envelope_end_of_life_emission
|
||||
building_opening_end_of_life_emission
|
||||
building_component_end_of_life_emission
|
||||
building_envelope_emission: <class 'float'>
|
||||
building_opening_emission: <class 'float'>
|
||||
building_component_emission: <class 'float'>
|
||||
building_envelope_end_of_life_emission: <class 'float'>
|
||||
building_opening_end_of_life_emission: <class 'float'>
|
||||
building_component_end_of_life_emission: <class 'float'>
|
||||
:param city_path: Either a path to the buildings (GeoJson)
|
||||
file or the content of such a file.
|
||||
:param archetypes_catalog_file_name: Path to the buildings'
|
||||
|
@ -169,10 +169,25 @@ class LCACarbonWorkflow:
|
|||
self,
|
||||
building, surface, boundary, opaque_surface_code,
|
||||
density=2579):
|
||||
"""Windows have the assumed density of 2579 kg/m3
|
||||
Window's thickness assumed the same as wall's thickness
|
||||
These two values are being used to calculate window's workload
|
||||
for End of Life emission evaluation."""
|
||||
"""
|
||||
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
|
||||
These two values are being used to calculate window's workload
|
||||
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_end_of_life_emission = []
|
||||
for opening in boundary.thermal_openings:
|
||||
|
@ -197,11 +212,11 @@ class LCACarbonWorkflow:
|
|||
|
||||
def calculate_emission(self):
|
||||
"""
|
||||
It iterates through the city object and gives each building to the
|
||||
calculate_building_component_emission() method. Then it unpack the results
|
||||
of the mentioned method to the (currently six) attributes which hold the
|
||||
final results. These attributes are mentioned in the constructor method
|
||||
description.
|
||||
It iterates through the city object and gives each building to the
|
||||
calculate_building_component_emission() method. Then it unpack the results
|
||||
of the mentioned method to the (currently six) attributes which hold the
|
||||
final results. These attributes are mentioned in the constructor method
|
||||
description.
|
||||
"""
|
||||
for building in self.city.buildings:
|
||||
envelope_emission, opening_emission, component_emission, \
|
||||
|
|
Loading…
Reference in New Issue
Block a user