This repository contains the necessary scripts and instructions to simulate the global electricity grid using Python and Jupyter Notebook. The simulation is performed in globalgrid.ipynb
, leveraging predefined region and interconnector data, as well as helper functions for efficient data handling.
globalgrid.ipynb
: Main Jupyter Notebook for running the global grid simulation.regiondefinition.py
: Defines dictionaries containing the regions and links.interconnectors.py
: Contains helper functions for the links.data_import.py
: Contains helper functions for data import and processing.
When running the global grid simulation, users can choose between:
- Importing existing results
- Running the simulation with a custom set of parameters or different input data
Precomputed simulation results are available and can be accessed at the following location:
To use these results, set import_existing_network = True in the User Input field.
Users can modify input parameters to explore different scenarios. Ensure that:
- All required data is downloaded to the local machine and the paths in the scripts match the corresponding paths on your local machine.
- Any modifications to the input data align with the expected data format.
The function renewable_potential_atlite
, located in data_import.py
, allows for the calculation of capacity factors at any resolution using an Atlite cutout.
Requirements for Atlite cutout:
- The cutout must cover the entire Earth.
Synthetic demand can be calculated using 'GlobalEnergyGIS'. The adapted repository and instructions on how to use it can be found at https://github.com/FrederickIvens/GlobalEnergyGIS.
To run the simulation, ensure that you have the required Python libraries installed. You can install them using:
pip install -r requirements.txt