Welcome to the PyPSA-China-PIK documentation!
This is the documentation for the Potsdam Institute for Climate Impact Studies' (PIK) Python Power System Analysis for China (PyPSA-China-PIK) model, maintained by the Energy Transition Lab at PIK. PyPSA-China-PIK is an open model to simulate the future of energy in China at provincial level. Currently, electricity and heat are covered as energy sectors.
The model can be partially coupled to the REMIND Integrated Assesment Model to obtain multi-sectoral demand pathways. In this mode, battery electric vehicles can also be modelled.
What is PyPSA-China-PIK?
PyPSA-China-PIK is a highly configurable, open-source and open data power system model that co-optimises investments (capacity expansion) and dispatch of future energy systems in China. The model covers several end-use sectors, including electricity, battery electric vehicles and heat. It comes with default data for costs, technical parameters, loads and existing infrastructure that can easily be replaced. The execution options are controlled by configuration files, meaning the code can be run with limited or even no coding expertise. A highly modular structure also makes it easy to extend the model.
PyPSA-China-PIK is built around the PyPSA "Python for Power System Analysis" (pronounced "pipes-ah") energy system modelling toolbox. PyPSA provides python objects that represent mixed AC and DC electricity networks, generators with optional unit commitment or variable generation, storage units and transformers as well as efficient bindings to open-source and commercial solvers.
Currently, hourly (and lower) time resolutions and provincial level demand and transmission are supported. It is possible to improve the spatial resolution as for other PyPSA workflows (EUR, USA, earth) if open data is available.
Capabilities
| Capability | Description |
|---|---|
| Sectors | Models both electricity and heat demand and supply |
| Open Data & Code | Fully open-source model and datasets |
| Provincial Resolution | Simulates energy systems at the provincial level across China |
| Renewables & Hydro | Models renewables and hydroelectricity availability based on historic data using Atlite. Renewables can be split by capacity factor grades |
| Storage | Long and short-term duration storage with hydrogen, pumped hydro and batteries. |
| Coupling with REMIND | Can be partially coupled to the REMIND IAM for multi-sectoral analysis |
| Cost Optimization | Minimizes system costs using a solver of your choice |
| Flexible Workflow | Managed by Snakemake for reproducible and automated analysis |
| Customizable | Modular structure can easily be customized |
| Post-processing Tools | Detailed results analysis and visualization |
The model has been validated against short term energy trends. Todo: add figure.
Learning
The model comes with an installation guide, model overview basic tutorials and references for the code and configuration options. PyPSA-China-PIK is best understood as workflow, managed by the low-code snakemake tool. It is possible to run the workflow with minimal knowledge of snakemake and we have listed a few useful tricks but we recommend going over the snakemake documentation.
The workflow consists of gathering and preparing relevant data, formulating the problem as a PyPSA network object, minimising the system costs using a solver and post-processing the data. The atlite package is used to compute renewable generator availability and potentials. You may want to look into the PyPSA documentation and the atlite documentation.

Authors and Credits
This version has is maintained by the PIK team. It is not yet published, please contact us in case you are interested in using the model.
The model is based on the PyPSA-EUR work by the Tom Brown Group, originally adapted to China by Hailiang Liu et al for their study of hydro-power in china and extended by Xiaowei Zhou et al for their "Multi-energy system horizon planning: Early decarbonisation in China avoids stranded assets" paper. It has received significant upgrades.