This repository contains the full model code to run the technology diffusion simulation and reproduce all figures of the article:
Odenweller, A., Ueckerdt, F., Nemet, G. F., Jensterle, M., and Luderer, G.: Probabilistic feasibility space of scaling up green hydrogen supply
main.Rmd
- The main R Markdown file01_input_data
- Input data files02_output_plots
- Output folder for simulation data and plots03_functions
- Helper functions04_plotting
- Plotting functions
There are two options to use this code, which are controlled by a switch in main.Rmd
- Reproduction mode (default)
- Download the pre-run simulation output from Zenodo and put all files into
02_output_plots
- Run
main.Rmd
- This imports the simulation output, reproduces all article figures, and saves them into
02_output_plots
- Download the pre-run simulation output from Zenodo and put all files into
- Simulation mode
- Set
model.mode = "simulation"
inmain.Rmd
- Adjust the sample size
n
of the simulation as desired - Run
main.Rmd
- This starts the simulation, which will take some time, depending on the sample size
- Figures are saved into
02_output_plots
and might deviate slightly from article figures due to randomness
- Set