I have the following flowchart (e.g. Fig. 1: Simple Flowchart) that I would like to create in Brightway2. I have access to an Ecoinvent database to get e.g. CO2 equivalents when building a wind turbine. I have never worked with Brghtway2 before but have some prior knowledge with Python. The structure of my foreground system (technosphere) is composed of activities and exchanges and looks like this:
The wind turbine generates 1 kWh of electrical energy. For each kWh of energy generated from wind power, there is a certain amount of global warming potential that is released to the biosphere. These data are to be obtained from the background system, i.e. the Ecoinvent database. Water electrolysis requires about 55 kWh of electrical energy, about 9 kg of water, to produce 1 kg of hydrogen. In addition, about 8 kg of oxygen are produced and released to the biosphere. The 9 kg of ultra pure water is also obtained from the biosphere or alternatively from the Ecoinvent database. Subsequently, the generated hydrogen is to be compressed. To compress 1 kg of hydrogen from 20 bar to 50 bar, approximately 0.44 kWh of electrical energy is required, sourced from an electricity mix of any country. The global warming potential data for the generation of electricity from an electricity mix of any country shall also be obtained from the Ecoinvent database.
How can I set up this simple foreground and background system. I would be grateful if you could provide me with a sample code for the activities and exchanges described above.
I have set up my electrolysis so far as follows:
Exmpl_electrolysis = fgdb.new_activity(code='electrolysis', name='Hydrogen from PEM', unit='kilogram')
Exmpl_electrolysis.save()
Exmpl_electrolysis.new_exchange(input = [ELECTRICITY MIX], amount=55, unit='kilowatt hour', type='technosphere').save()