From 5a686f867af4c0f4996de1354d3b43a1d34c8585 Mon Sep 17 00:00:00 2001 From: atiya Date: Tue, 16 Nov 2021 14:25:25 -0500 Subject: [PATCH] LCA materials XML --- data/life_cycle_assessment/lca_data.xml | 790 +++++++++--------- imports/life_cycle_assessment/lca_material.py | 92 +- 2 files changed, 434 insertions(+), 448 deletions(-) diff --git a/data/life_cycle_assessment/lca_data.xml b/data/life_cycle_assessment/lca_data.xml index 22ad467b..8d5b2dda 100644 --- a/data/life_cycle_assessment/lca_data.xml +++ b/data/life_cycle_assessment/lca_data.xml @@ -168,406 +168,392 @@ - - - 1.8 - 560 - 0.8 - 0.3 - 0.7 - 0.2 - .... - - - 1.2 - 310 - 0.8 - 0.3 - 0.7 - 0.2 - .... - - - 2 - 3080 - 0.8 - 0.3 - 0.7 - 0.2 - .... - - - 1.4 - 300 - 0.8 - 0.3 - 0.7 - 0.2 - .... - - - - - 1.6 - 900 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.6 - 2340 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.6 - 1570 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.4 - 1840 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.3 - 410 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.3 - 160 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.3 - 170 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.3 - 230 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.4 - 240 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.4 - 280 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.3 - 170 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.2 - 440 - 0.8 - 0 - 1 - 0.2 - .... - - - - - 2.58 - 2660 - 0.95 - 0 - 1 - 0.05 - .... - - - 2.58 - 5260 - 0.95 - 0 - 1 - 0.05 - .... - - - - - 0.06 - 1760 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.122 - 3080 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.028 - 3180 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.024 - 5140 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.1 - 6040 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.3 - 5380 - 0.9 - 0 - 1 - 0.1 - .... - - - 0.032 - 2150 - 0.9 - 0 - 1 - 0.1 - .... - - - - - 0.9 - 3420 - 0.6 - 0 - 1 - 0.4 - .... - - - 0.7 - 1430 - 0.6 - 0 - 1 - 0.4 - .... - - - 0.65 - 2780 - 0.6 - 0 - 1 - 0.4 - .... - - - 0.72 - 2190 - 0.6 - 0 - 1 - 0.4 - .... - - - - - 1.43 - 1070 - 0 - 0 - 0 - 1 - .... - - - 1.43 - 240 - 0 - 0 - 0 - 1 - .... - - - 1.43 - 430 - 0 - 0 - 0 - 1 - .... - - - 1.43 - 340 - 0 - 0 - 0 - 1 - .... - - - 1.2 - 440 - 0.8 - 0 - 1 - 0.2 - .... - - - 2.1 - 1410 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.43 - 250 - 0 - 0 - 0 - 1 - .... - - - 1.44 - 1480 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.44 - 2220 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.27 - 3960 - 0.8 - 0 - 1 - 0.2 - .... - - - 1.15 - 760 - 0.8 - 0 - 1 - 0.2 - .... - - - - - 8 - 3160 - 0.98 - 0 - 1 - 0.02 - .... - - - 2.7 - 5370 - 0.98 - 0 - 1 - 0.02 - .... - - - 7.85 - 3910 - 0.98 - 0 - 1 - 0.02 - .... - - - + + 1.8 + 560 + 0.8 + 0.3 + 0.7 + 0.2 + .... + + + 1.2 + 310 + 0.8 + 0.3 + 0.7 + 0.2 + .... + + + 2 + 3080 + 0.8 + 0.3 + 0.7 + 0.2 + .... + + + 1.4 + 300 + 0.8 + 0.3 + 0.7 + 0.2 + .... + + + 1.6 + 900 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.6 + 2340 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.6 + 1570 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.4 + 1840 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.3 + 410 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.3 + 160 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.3 + 170 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.3 + 230 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.4 + 240 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.4 + 280 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.3 + 170 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.2 + 440 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.58 + 2660 + 0.95 + 0 + 1 + 0.05 + .... + + + 2.58 + 5260 + 0.95 + 0 + 1 + 0.05 + .... + + + 0.06 + 1760 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.122 + 3080 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.028 + 3180 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.024 + 5140 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.1 + 6040 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.3 + 5380 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.032 + 2150 + 0.9 + 0 + 1 + 0.1 + .... + + + 0.9 + 3420 + 0.6 + 0 + 1 + 0.4 + .... + + + 0.7 + 1430 + 0.6 + 0 + 1 + 0.4 + .... + + + 0.65 + 2780 + 0.6 + 0 + 1 + 0.4 + .... + + + 0.72 + 2190 + 0.6 + 0 + 1 + 0.4 + .... + + + 1.43 + 1070 + 0 + 0 + 0 + 1 + .... + + + 1.43 + 240 + 0 + 0 + 0 + 1 + .... + + + 1.43 + 430 + 0 + 0 + 0 + 1 + .... + + + 1.43 + 340 + 0 + 0 + 0 + 1 + .... + + + 1.2 + 440 + 0.8 + 0 + 1 + 0.2 + .... + + + 2.1 + 1410 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.43 + 250 + 0 + 0 + 0 + 1 + .... + + + 1.44 + 1480 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.44 + 2220 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.27 + 3960 + 0.8 + 0 + 1 + 0.2 + .... + + + 1.15 + 760 + 0.8 + 0 + 1 + 0.2 + .... + + + 8 + 3160 + 0.98 + 0 + 1 + 0.02 + .... + + + 2.7 + 5370 + 0.98 + 0 + 1 + 0.02 + .... + + + 7.85 + 3910 + 0.98 + 0 + 1 + 0.02 + .... + + \ No newline at end of file diff --git a/imports/life_cycle_assessment/lca_material.py b/imports/life_cycle_assessment/lca_material.py index 6b88496d..cce8e94e 100644 --- a/imports/life_cycle_assessment/lca_material.py +++ b/imports/life_cycle_assessment/lca_material.py @@ -24,49 +24,49 @@ class LcaMaterial: # self._city.vehicles.append(Vehicle(vehicle['@id'], vehicle['@name'], vehicle['fuel_consumption_rate']['#text'], # vehicle['fuel_consumption_rate']['@unit'], vehicle['carbon_emission_factor']['#text'], # vehicle['carbon_emission_factor']['@unit'])) - for brick in self._lca["library"]["building_materials"]['bricks']['brick']: - material_name = "brick" - self._city.materials.append(Material(material_name, brick['@id'], brick['@type'], brick['density']['#text'], brick['density']['@unit'], - brick['embodied_carbon']['#text'], brick['embodied_carbon']['@unit'], brick['recycling_ratio'], - brick['onsite_recycling_ratio'], brick['company_recycling_ratio'], brick['landfilling_ratio'], - brick['cost']['#text'], brick['cost']['@unit'])) - for concrete in self._lca["library"]["building_materials"]['concretes']['concrete']: - material_name = "concrete" - self._city.materials.append(Material(material_name, concrete['@id'], brick['@type'], concrete['density']['#text'], concrete['density']['@unit'], - concrete['embodied_carbon']['#text'], concrete['embodied_carbon']['@unit'], concrete['recycling_ratio'], - concrete['onsite_recycling_ratio'], concrete['company_recycling_ratio'], concrete['landfilling_ratio'], - concrete['cost']['#text'], concrete['cost']['@unit'])) - for glass in self._lca["library"]["building_materials"]['glasses']['glass']: - material_name = "glass" - self._city.materials.append(Material(material_name, glass['@id'], brick['@type'], glass['density']['#text'], glass['density']['@unit'], - glass['embodied_carbon']['#text'], glass['embodied_carbon']['@unit'], glass['recycling_ratio'], - glass['onsite_recycling_ratio'], glass['company_recycling_ratio'], glass['landfilling_ratio'], - glass['cost']['#text'], glass['cost']['@unit'])) - - for insulation in self._lca["library"]["building_materials"]['insulations']['insulation']: - material_name = "insulation" - self._city.materials.append(Material(material_name, insulation['@id'], brick['@type'], insulation['density']['#text'], insulation['density']['@unit'], - insulation['embodied_carbon']['#text'], insulation['embodied_carbon']['@unit'], insulation['recycling_ratio'], - insulation['onsite_recycling_ratio'], insulation['company_recycling_ratio'], insulation['landfilling_ratio'], - insulation['cost']['#text'], insulation['cost']['@unit'])) - - for wood in self._lca["library"]["building_materials"]['woods']['wood']: - material_name = "wood" - self._city.materials.append(Material(material_name, wood['@id'], brick['@type'], wood['density']['#text'], wood['density']['@unit'], - wood['embodied_carbon']['#text'], wood['embodied_carbon']['@unit'], wood['recycling_ratio'], - wood['onsite_recycling_ratio'], wood['company_recycling_ratio'], wood['landfilling_ratio'], - wood['cost']['#text'], wood['cost']['@unit'])) - - for covering in self._lca["library"]["building_materials"]['coverings']['covering']: - material_name = "covering" - self._city.materials.append(Material(material_name, covering['@id'], brick['@type'], covering['density']['#text'], covering['density']['@unit'], - covering['embodied_carbon']['#text'], covering['embodied_carbon']['@unit'], covering['recycling_ratio'], - covering['onsite_recycling_ratio'], covering['company_recycling_ratio'], covering['landfilling_ratio'], - covering['cost']['#text'], covering['cost']['@unit'])) - - for metal in self._lca["library"]["building_materials"]['metals']['metal']: - material_name = "metal" - self._city.materials.append(Material(material_name, metal['@id'], brick['@type'], metal['density']['#text'], metal['density']['@unit'], - metal['embodied_carbon']['#text'], metal['embodied_carbon']['@unit'], metal['recycling_ratio'], - metal['onsite_recycling_ratio'], metal['company_recycling_ratio'], metal['landfilling_ratio'], - metal['cost']['#text'], metal['cost']['@unit'])) \ No newline at end of file + for material in self._lca["library"]["building_materials"]['material']: + material_name = "material" + self._city.materials.append(Material(material['@type'], material['@id'], material['@name'], material['density']['#text'], material['density']['@unit'], + material['embodied_carbon']['#text'], material['embodied_carbon']['@unit'], material['recycling_ratio'], + material['onsite_recycling_ratio'], material['company_recycling_ratio'], material['landfilling_ratio'], + material['cost']['#text'], material['cost']['@unit'])) + # for concrete in self._lca["library"]["building_materials"]['concretes']['concrete']: + # material_name = "concrete" + # self._city.materials.append(Material(material_name, concrete['@id'], material['@type'], concrete['density']['#text'], concrete['density']['@unit'], + # concrete['embodied_carbon']['#text'], concrete['embodied_carbon']['@unit'], concrete['recycling_ratio'], + # concrete['onsite_recycling_ratio'], concrete['company_recycling_ratio'], concrete['landfilling_ratio'], + # concrete['cost']['#text'], concrete['cost']['@unit'])) + # for glass in self._lca["library"]["building_materials"]['glasses']['glass']: + # material_name = "glass" + # self._city.materials.append(Material(material_name, glass['@id'], material['@type'], glass['density']['#text'], glass['density']['@unit'], + # glass['embodied_carbon']['#text'], glass['embodied_carbon']['@unit'], glass['recycling_ratio'], + # glass['onsite_recycling_ratio'], glass['company_recycling_ratio'], glass['landfilling_ratio'], + # glass['cost']['#text'], glass['cost']['@unit'])) + # + # for insulation in self._lca["library"]["building_materials"]['insulations']['insulation']: + # material_name = "insulation" + # self._city.materials.append(Material(material_name, insulation['@id'], material['@type'], insulation['density']['#text'], insulation['density']['@unit'], + # insulation['embodied_carbon']['#text'], insulation['embodied_carbon']['@unit'], insulation['recycling_ratio'], + # insulation['onsite_recycling_ratio'], insulation['company_recycling_ratio'], insulation['landfilling_ratio'], + # insulation['cost']['#text'], insulation['cost']['@unit'])) + # + # for wood in self._lca["library"]["building_materials"]['woods']['wood']: + # material_name = "wood" + # self._city.materials.append(Material(material_name, wood['@id'], material['@type'], wood['density']['#text'], wood['density']['@unit'], + # wood['embodied_carbon']['#text'], wood['embodied_carbon']['@unit'], wood['recycling_ratio'], + # wood['onsite_recycling_ratio'], wood['company_recycling_ratio'], wood['landfilling_ratio'], + # wood['cost']['#text'], wood['cost']['@unit'])) + # + # for covering in self._lca["library"]["building_materials"]['coverings']['covering']: + # material_name = "covering" + # self._city.materials.append(Material(material_name, covering['@id'], material['@type'], covering['density']['#text'], covering['density']['@unit'], + # covering['embodied_carbon']['#text'], covering['embodied_carbon']['@unit'], covering['recycling_ratio'], + # covering['onsite_recycling_ratio'], covering['company_recycling_ratio'], covering['landfilling_ratio'], + # covering['cost']['#text'], covering['cost']['@unit'])) + # + # for metal in self._lca["library"]["building_materials"]['metals']['metal']: + # material_name = "metal" + # self._city.materials.append(Material(material_name, metal['@id'], material['@type'], metal['density']['#text'], metal['density']['@unit'], + # metal['embodied_carbon']['#text'], metal['embodied_carbon']['@unit'], metal['recycling_ratio'], + # metal['onsite_recycling_ratio'], metal['company_recycling_ratio'], metal['landfilling_ratio'], + # metal['cost']['#text'], metal['cost']['@unit'])) \ No newline at end of file