Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Dec 20, 2024
2 parents 58e9eef + a706a35 commit eedc1d3
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 185 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,16 @@ How to use it?
bw.projects.set_current("your_bw_project")

ndb = NewDatabase(
scenarios = [
{"model":"image", "pathway":"SSP2-Base", "year":2050,},
{"model":"image", "pathway":"SSP2-RCP26", "year":2030,},
],
source_db="ecoinvent 3.8 cutoff",
source_version="3.8",
key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
external_scenarios=[
ammonia, # <-- list datapackages here
]
)
scenarios = [
{"model":"image", "pathway":"SSP2-Base", "year":2050, "external scenarios": [{"scenario": "Business As Usual - image", "data": ammonia}]},
{"model":"image", "pathway":"SSP2-RCP26", "year":2030, "external scenarios": [{"scenario": "Sustainable development - image", "data": ammonia}]},
],
source_db="ecoinvent 3.10 cutoff",
source_version="3.10",
key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
)

ndb.update_external_scenario()
ndb.update("external") # or ndb.update() if you want to update the database with the IAM data plus the external scenario

```

55 changes: 0 additions & 55 deletions datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,61 +105,6 @@
]
}
},
{
"path": "inventories/lci-ammonia_310.csv",
"profile": "data-resource",
"name": "inventories",
"format": "csv",
"mediatype": "text/csv",
"encoding": "utf-8",
"schema": {
"fields": [
{
"name": "name",
"type": "string",
"format": "default"
},
{
"name": "amount",
"type": "number",
"format": "default"
},
{
"name": "database",
"type": "string",
"format": "default"
},
{
"name": "location",
"type": "string",
"format": "default"
},
{
"name": "categories",
"type": "string",
"format": "default"
},
{
"name": "unit",
"type": "string",
"format": "default"
},
{
"name": "type",
"type": "string",
"format": "default"
},
{
"name": "reference product",
"type": "string",
"format": "default"
}
],
"missingValues": [
""
]
}
},
{
"path": "configuration_file/config.yaml",
"profile": "data-resource",
Expand Down
118 changes: 0 additions & 118 deletions inventories/lci-ammonia_310.csv
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
Database,ammonia,,,,,,,,,,,
,,,,,,,,,,,,
Activity,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,,,,,,,
comment,"Carlo d'Angelo et al., 2021",,,,,,,,,,,
location,GLO,,,,,,,,,,,
reference product,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,,,,,,,
type,process,,,,,,,,,,,
unit,kilogram,,,,,,,,,,,
Exchanges,,,,,,,,,,,,
name,amount,database,location,unit,categories,type,reference product,,,,,
Ammonia,0.21,biosphere3,,kilogram,air,biosphere,,,,,,
Monoethanolamine,0.0305,biosphere3,,kilogram,air,biosphere,,,,,,
"CO2 - MEA capture, w/o energy consumption, flue gas emissions",1000,new_activities,GLO,kilogram,,production,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,
"market for activated carbon, granular",0.075,cutoff38,GLO,kilogram,,technosphere,"activated carbon, granular",,,,,
market for monoethanolamine,1.5,cutoff38,GLO,kilogram,,technosphere,monoethanolamine,,,,,
"market for sodium hydroxide, without water, in 50% solution state",0.13,cutoff38,RoW,kilogram,,technosphere,"sodium hydroxide, without water, in 50% solution state",,,,,
market for tap water,3.5,cutoff38,RoW,kilogram,,technosphere,tap water,,,,,
"treatment of spent solvent mixture, hazardous waste incineration",-2.45,cutoff38,Europe without Switzerland,kilogram,,technosphere,spent solvent mixture,,,,,
,,,,,,,,,,,,
Activity,"CO2 capture/at H2 production plant, pre, pipeline 200km, storage 1000m (excluding electricity)",,,,,,,,,,,
comment,"copied from premise with electricity removed, since the increased electricity is handled in the coal gasification w/ CCS inventory",,,,,,,,,,,
location,RER,,,,,,,,,,,
Expand Down Expand Up @@ -295,77 +278,6 @@ market for tap water,0.826,cutoff38,RoW,kilogram,,technosphere,tap water,,,,,
"natural gas burnt in furnace, excluding CO2 generated in flue gas",26.3,new_activities,GLO,megajoule,,technosphere,"natural gas burnt in furnace, excluding CO2 generated in flue gas",,,,,
"treatment of inert waste, inert material landfill",-0.000325,cutoff38,RoW,kilogram,,technosphere,"inert waste, for final disposal",,,,,
,,,,,,,,,,,,
Activity,"ammonia production, steam reforming w/ syngas CCS",,,,,,,,,,,
comment,"Based on Carlo d'Angelo et al., 2021 Supporting Information. Business-as-usual (H2 from SMR), assuming that the CO2 from syngas is compressed and stored underground. Using global markets where available.",,,,,,,,,,,
Water volumes are calculated when needed based on density @ 20C (998.19 kg/m3).,,,,,,,,,,,,
Methane, CO," and CO2 emissions to water are shown in the source documentation but not available in the biosphere3 database. """,,,,,,,,,,
location,GLO,,,,,,,,,,,
reference product,"ammonia, anhydrous, liquid",,,,,,,,,,,
type,process,,,,,,,,,,,
unit,kilogram,,,,,,,,,,,
Exchanges,,,,,,,,,,,,
name,amount,database,location,unit,categories,type,reference product,,,,,
Ammonia,0.00201,biosphere3,,kilogram,air,biosphere,,,,,,
"Carbon dioxide, fossil",0.26,biosphere3,,kilogram,air,biosphere,,,,,,
"Carbon monoxide, fossil",7.76E-16,biosphere3,,kilogram,air,biosphere,,,,,,
Hydrogen,0.000736,biosphere3,,kilogram,air,biosphere,,,,,,
"Methane, fossil",0.000862,biosphere3,,kilogram,air,biosphere,,,,,,
Monoethanolamine,0.000000115,biosphere3,,kilogram,water,biosphere,,,,,,
Nitrogen,0.0000151,biosphere3,,kilogram,water,biosphere,,,,,,
Nitrogen oxides,0.001,biosphere3,,kilogram,air,biosphere,,,,,,
Water,0.153,biosphere3,,cubic meter,air,biosphere,,,,,,
Water,0.419,biosphere3,,cubic meter,water,biosphere,,,,,,
"Water, cooling, unspecified natural origin",0.572,biosphere3,,cubic meter,natural resource::in water,biosphere,,,,,,
"ammonia production, steam reforming w/ syngas CCS",1,new_activities,GLO,kilogram,,production,"ammonia, anhydrous, liquid",,,,,
"CO2 - MEA capture, w/o energy consumption, flue gas emissions",1.17,new_activities,GLO,kilogram,,technosphere,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,
average ammonia transport,1,new_activities,GLO,unit,,technosphere,average ammonia transport,,,,,
catalysts for ammonia synthesis from SMR,0.000325,new_activities,GLO,kilogram,,technosphere,catalysts for ammonia from SMR,,,,,
"market for chemical factory, organics",4.00E-10,cutoff38,GLO,unit,,technosphere,"chemical factory, organics",,,,,
"market for natural gas, high pressure",0.747,cutoff38,US,cubic meter,,technosphere,"natural gas, high pressure",,,,,
market for tap water,0.826,cutoff38,RoW,kilogram,,technosphere,tap water,,,,,
"market for wastewater, average",-0.000156,cutoff38,RoW,cubic meter,,technosphere,"wastewater, average",,,,,
"market for water, deionised",0.00921,cutoff38,RoW,kilogram,,technosphere,"water, deionised",,,,,
"market group for electricity, high voltage",0.957,cutoff38,GLO,kilowatt hour,,technosphere,"electricity, high voltage",,,,,
"natural gas burnt in furnace, excluding CO2 generated in flue gas",26.3,new_activities,GLO,megajoule,,technosphere,"natural gas burnt in furnace, excluding CO2 generated in flue gas",,,,,
syngas CO2 transport and injection in a geological reservoir,1.17,new_activities,GLO,kilogram,,technosphere,syngas CO2 transport and injection in a geological reservoir,,,,,
"treatment of inert waste, inert material landfill",-0.000325,cutoff38,RoW,kilogram,,technosphere,"inert waste, for final disposal",,,,,
,,,,,,,,,,,,
Activity,"ammonia production, steam reforming w/ syngas and flue gas CCS",,,,,,,,,,,
comment,"Based on Carlo d'Angelo et al., 2021 Supporting Information. Business-as-usual (H2 from SMR), assuming that the CO2 from syngas and flue gas is compressed and stored underground. Using global markets where available.",,,,,,,,,,,
Water volumes are calculated when needed based on density @ 20C (998.19 kg/m3).,,,,,,,,,,,,
Methane, CO," and CO2 emissions to water are shown in the source documentation but not available in the biosphere3 database. """,,,,,,,,,,
location,GLO,,,,,,,,,,,
reference product,"ammonia, anhydrous, liquid",,,,,,,,,,,
type,process,,,,,,,,,,,
unit,kilogram,,,,,,,,,,,
Exchanges,,,,,,,,,,,,
name,amount,database,location,unit,categories,type,reference product,,,,,
Ammonia,0.00201,biosphere3,,kilogram,air,biosphere,,,,,,
"Carbon dioxide, fossil",0.0265,biosphere3,,kilogram,air,biosphere,,,,,,
"Carbon monoxide, fossil",7.76E-16,biosphere3,,kilogram,air,biosphere,,,,,,
Hydrogen,0.000736,biosphere3,,kilogram,air,biosphere,,,,,,
"Methane, fossil",0.000861,biosphere3,,kilogram,air,biosphere,,,,,,
Monoethanolamine,0.000000115,biosphere3,,kilogram,water,biosphere,,,,,,
Nitrogen,0.0000151,biosphere3,,kilogram,water,biosphere,,,,,,
Nitrogen oxides,0.001,biosphere3,,kilogram,air,biosphere,,,,,,
Water,0.153,biosphere3,,cubic meter,air,biosphere,,,,,,
Water,0.419,biosphere3,,cubic meter,water,biosphere,,,,,,
"Water, cooling, unspecified natural origin",0.572,biosphere3,,cubic meter,natural resource::in water,biosphere,,,,,,
"ammonia production, steam reforming w/ syngas and flue gas CCS",1,new_activities,GLO,kilogram,,production,"ammonia, anhydrous, liquid",,,,,
"CO2 - MEA capture, w/o energy consumption, flue gas emissions",1.41,new_activities,GLO,kilogram,,technosphere,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,
average ammonia transport,1,new_activities,GLO,unit,,technosphere,average ammonia transport,,,,,
catalysts for ammonia synthesis from SMR,0.000325,new_activities,GLO,kilogram,,technosphere,catalysts for ammonia from SMR,,,,,
"heat w/ CCS, from natural gas combined cycle power plant",0.953,new_activities,GLO,megajoule,,technosphere,heat w/ CCS,,,,,
"market for chemical factory, organics",4.00E-10,cutoff38,GLO,unit,,technosphere,"chemical factory, organics",,,,,
"market for natural gas, high pressure",0.747,cutoff38,US,cubic meter,,technosphere,"natural gas, high pressure",,,,,
market for tap water,0.826,cutoff38,RoW,kilogram,,technosphere,tap water,,,,,
"market for wastewater, average",-0.000156,cutoff38,RoW,cubic meter,,technosphere,"wastewater, average",,,,,
"market for water, deionised",0.00921,cutoff38,RoW,kilogram,,technosphere,"water, deionised",,,,,
"market group for electricity, high voltage",0.97,cutoff38,GLO,kilowatt hour,,technosphere,"electricity, high voltage",,,,,
"natural gas burnt in furnace, excluding CO2 generated in flue gas",26.3,new_activities,GLO,megajoule,,technosphere,"natural gas burnt in furnace, excluding CO2 generated in flue gas",,,,,
syngas and flue gas CO2 transport and injection in a geological reservoir,1.41,new_activities,GLO,kilogram,,technosphere,syngas and flue gas CO2 transport and injection in a geological reservoir,,,,,
"treatment of inert waste, inert material landfill",-0.000325,cutoff38,RoW,kilogram,,technosphere,"inert waste, for final disposal",,,,,
,,,,,,,,,,,,
Activity,average ammonia transport,,,,,,,,,,,
comment,"Average transport distances based on the old ecoinvent ""market for ammonia"" activities. These are added to the new individual ammonia production processes, since the custom_scenario tool cannot easily add them to the new markets. Europe did not originally have transport by sea, so this can lead to over-estimation for some regions. ",,,,,,,,,,,
location,GLO,,,,,,,,,,,
Expand Down Expand Up @@ -434,21 +346,6 @@ name,amount,database,location,unit,type,reference product,,,,,,
"electricity co-production, multifunctional coal gasification",3.18,new_activities,GLO,kilowatt hour,production,"electricity, multifunctional coal gasification",,,,,,
multifunctional coal gasification,0.1,new_activities,GLO,unit,technosphere,multifunctional coal gasification,,,,,,
,,,,,,,,,,,,
Activity,"heat w/ CCS, from natural gas combined cycle power plant",,,,,,,,,,,
comment,"Carlo d'Angelo et al., 2021",,,,,,,,,,,
location,GLO,,,,,,,,,,,
reference product,heat w/ CCS,,,,,,,,,,,
type,process,,,,,,,,,,,
unit,megajoule,,,,,,,,,,,
Exchanges,,,,,,,,,,,,
name,amount,database,location,unit,categories,type,reference product,,,,,
"Carbon dioxide, fossil",-0.0673,biosphere3,,kilogram,air,biosphere,,,,,,
"heat w/ CCS, from natural gas combined cycle power plant",1,new_activities,GLO,megajoule,,production,heat w/ CCS,,,,,
"CO2 - MEA capture, w/o energy consumption, flue gas emissions",0.0673,new_activities,GLO,kilogram,,technosphere,"CO2 - MEA capture, w/o energy consumption, flue gas emissions",,,,,
"CO2 transport and injection in a geological reservoir, infrastructure",0.0673,new_activities,GLO,kilogram,,technosphere,"CO2 transport and injection in a geological reservoir, infrastructure",,,,,
"heat production, natural gas, at industrial furnace >100kW",1.27,cutoff38,Europe without Switzerland,megajoule,,technosphere,"heat, district or industrial, natural gas",,,,,
"market group for electricity, high voltage",0.0105,cutoff38,GLO,kilowatt hour,,technosphere,"electricity, high voltage",,,,,
,,,,,,,,,,,,
Activity,"hydrogen production, alkaline electrolysis",,,,,,,,,,,
comment,"Combined cell stack fraction and electrolyser operation from Carlo d'Angelo et al., 2021",,,,,,,,,,,
location,GLO,,,,,,,,,,,
Expand Down Expand Up @@ -717,18 +614,3 @@ name,amount,database,location,unit,categories,type,reference product,,,,,
syngas and flue gas CO2 transport and injection in a geological reservoir,1000,new_activities,GLO,kilogram,,production,syngas and flue gas CO2 transport and injection in a geological reservoir,,,,,
"CO2 transport and injection in a geological reservoir, infrastructure",1000,new_activities,GLO,kilogram,,technosphere,"CO2 transport and injection in a geological reservoir, infrastructure",,,,,
"market group for electricity, high voltage",13.1,cutoff38,GLO,kilowatt hour,,technosphere,"electricity, high voltage",,,,,
,,,,,,,,,,,,
Activity,"hydrogen production, gaseous, 25 bar, from electrolysis, for ammonia production",,,,,,,,,,,
production amount,1,,,,,,,,,,,
comment,"1 kg H2 produced using a PEM electrolyzer. Source: Bareiss, K., de la Rua, C., Moeckl, M., Hamacher, T., 2019. Life cycle assessment of hydrogen from proton exchange membrane water electrolysis in future energy systems 237, 862-872. 10.1016/j.apenergy.2019.01.001",,,,,,,,,,,
reference product,"hydrogen, gaseous, 25 bar",,,,,,,,,,,
location,RER,,,,,,,,,,,
unit,kilogram,,,,,,,,,,,
Exchanges,,,,,,,,,output pressure H2 of PEM is usually around 25-30 bar,,,Note
name,amount,database,location,unit,type,reference product,categories,comment,energy content per kg h2,120,MJ/kg H2,
"hydrogen production, gaseous, 25 bar, from electrolysis, for ammonia production",1,h2_pem,RER,kilogram,production,"hydrogen, gaseous, 25 bar",,,efficiency electrolyzer,0.61,[-],
"electrolyzer production, 1MWe, PEM, Balance of Plant",3.28E-07,h2_pem,RER,unit,technosphere,"electrolyzer, 1MWe, PEM, Balance of Plant",,"Assuming lifetime of electrolyzer stack of 7 years, BOP 20 years",lifetime stack (7 years),61320,[hours],
"electrolyzer production, 1MWe, PEM, Stack",9.38E-07,h2_pem,RER,unit,technosphere,"electrolyzer, 1MWe, PEM, Stack",,,capacity factor,0.95,[-],High capacity factor since it is coupled to the grid. This will be much lower when coupled to renewable energy generators such as wind and PV (or autonomous configurations).
"market group for electricity, low voltage",54.6,ecoinvent 3.7.1,RER,kilowatt hour,technosphere,"electricity, low voltage",,Electricity consumption with 61% eff.,,,,
"market for water, deionised",12,ecoinvent 3.7.1,Europe without Switzerland,kilogram,technosphere,"water, deionised",,"A perfect reaction of H2O results in 1 kg H2 and 8 kg O2, and needs 9 kg H2O, however, considering some losses we assume 12 kg H2O. ",Simons & Bauer assumed 12.318 kg H2O per kg H2 generated (can be used as Ref.),,,"In case the LCIs are used for large-scale hydrogen production, it makes sense to add impacts for water desalinization."
Oxygen,8,biosphere3,,kilogram,biosphere,,air,this flow is available if ecoinvent 3.8 is used,,,,
6 changes: 6 additions & 0 deletions tests/.ipynb_checkpoints/run datapackage-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit eedc1d3

Please sign in to comment.