Published September 1, 2022 | Version 1.1

"Carbon-water-nitrogen nexus of bio-jet fuel under the general framework of nitrogen flow accounting". Source code.

  • 1. China-EU Institute for Clean and Renewable Energy, Huazhong University of Science and Technology, Wuhan 430074, China
  • 2. Department of New Energy Science and Technology, School of Energy and Power Engineering, Huazhong University of Science and Technology, Wuhan 430074, China
  • 3. John A. Paulson School of Engineering and Applied Sciences, Harvard University, Cambridge, MA 02138, USA
  • 4. State Key Laboratory of Coal Combustion, Huazhong University of Science and Technology, Wuhan 430074, China

Description

“Carbon-water-nitrogen nexus of bio-jet fuel under the general framework of nitrogen flow accounting”. The jupyter notebook file in python code contains corresponding parametric life cycle models for all bio-jet fuel’s life cycle scenarios analyzed to reproduce and replicate the analysis.

For questions, comments, or remarks about the code, please contact Q. Wang (wangqr@hust.edu.cn).

The jupyter notebook file, ‘bio-jet fuel carbon-water-nitrogen nexus by the GFNFA methodology.ipynb’, is structured in 7 chapters, and during the execution of each chapter:

• Chapter one, ‘Environment preparing’, imports, and builds all the necessary python libraries, modules, and functions to guarantee the complete execution of the entire jupyter notebook code.

• Chapter two, ‘Zoom into the Biosphere3 database’, is used to derive the Biosphere3 database, which is normalized to the Ecoinvent version 3 standard by the brightway2 LCA platform, to excel (Supplementary Data 1-2).

• Chapter three, ‘Explaining the GFNFA methodology’, contains the full code to reproduce and replicate Figure 16 in the manuscript, demonstrating the application of the ternary N flow sustainability indicators on tier 3 of the general framework of nitrogen flow accounting, based on two hypothetical systems (Figure 11).

• Chapter four, ‘Definition of carbon and water impact categories’, specifies the midpoint impact categories utilized to evaluate each scenario’s carbon and water footprint (Table 1 of the manuscripts) from the impact categories library pre-installed in the brightway2 LCA platform.

• Chapter five, ‘Importation of the planet-generalized version nitrogen flow database (creation of the nitrogen flow sustainability impact categories)’, imports the planet-generalized version N flow database on GFNFA tier 1 constructed in this paper (Supplementary Data 1-2, and Supplementary Data 6) into the brightway2 LCA platform. It also regroups corresponding N characterization factors to form callable N characterization factor arrays to enable the calculation of the N flow footprint on each ecosphere level discerned in the N flow footprint level classification logic on GFNFA tier 2. The chapter is finished by storing each array built in the impact categories library of the brightway2 LCA platform, following the logic in Figure 12.

• Chapter six, ‘Bio-jet fuel life cycle scenarios definition’, constructs the parametric life cycle models for each scenario analyzed based on corresponding life cycle inventories compiled according to the logic in Figures 12, 17, and 19 of the manuscript, representing the average Chinese context.

• Chapter seven, ‘Bio-jet fuel life cycle scenarios carbon, water, and N flow nexus result’, analyzes all parametric life cycle models built in the chapters above and identifies the synergy effects during system’s sustainability indicators co-management based on scenarios comparison, sensitivity analysis, and uncertainty analysis.

The python file, ‘init_bio-jet_fuel_carbon-water-nitrogen.py’, contains the basic python libraries, modules, and primary project initializations of the brightway2 LCA platform that are read and executed in the above described jupyter notebook file. This python file should be placed at the same location as the jupyter notebook file to guarantee successful code execution.

The raw data exhibited in each figure of this research, generated during the execution of each jupyter notebook chapter indicated above, are stored as corresponding excel files and re-imported into the brightway2 LCA platform to facilitate the figure plotting process. These excel files are also provided here.

 

Comments:

• The jupyter notebook file has been executed with the Jupyter Notebook version 6.4.12 (2022-06-15) under Python version 3.8.12 (2021-08-30) and jupyter-contrib-nbextensions version 0.5.1 (2019-01-02); brightway2 version 2.4.2 (2022-04-23); lca-algebraic version 1.0.2 (2021-06-23); Running under: Windows >= 8 x64 (build 9200)

• We recommend executing the jupyter notebook code in the order they have been introduced in the present document.

• It is recommended to activate ‘the Table of Contents’ function in the jupyter-contrib-nbextensions and turn on the ‘Automatically number notebook's sections’ command.

 

Note:

• For more detailed and systemic descriptions of each file related to the code execution, please read the ‘Description of Source Code.pdf’ uploaded.

 

Files

Supplementary Source Code.zip

Files (15.1 MB)

Name Size
md5:e0edf8ec715aae6ed22a955029cbcbfa
15.1 MB Preview Download