Welcome to the Pourbaix Diagram Generator (PDG), a Python (3.12.1) tool utilizing the pymatgen (2024.1.26) (A Robust, Open-Source Python Library for Materials Analysis. Computational Materials Science, 2013, 68, 314–319.) package to create Pourbaix diagrams for elements of your choice. This project serves as my initial exploration into pymatgen, making it perfect for those taking their first steps with the package.
The PDG is used in the water electrolysis (PEM/LAWE/AEM) and carbondioxide electroreduction (CO2ER) projects, conducted by the Solar Fuels SF/E4F group (lector: Peter Thüne) at the Fontys University of Applied Science - Applied Natural Science Lectorate (SIA grant for RAAK/PRO - ALMA and RELEASE).
-
Clone the repository:
git clone https://github.com/kplanken/pourbaix.git cd pourbaix
-
Install the required packages:
pip install -r requirements.txt
-
Enter element(s) to your liking in main() in main.py
def main() -> int: ... compounds: list[str] = [<elements go here>] ... return 0
-
Run the main script to generate Pourbaix diagrams for elements ():
python main.py
Explore the docstrings in main.py for detailed information on available functions.
Check out the 📁pourbaix_diagrams directory for pre-generated Pourbaix diagrams. Below is an example:
Figure: Pourbaix diagram for Nickel
The 📁pourbaix_entries directory contains Pourbaix entries for various elements saved as JSON files. Feel free to add your own entries.
If you have suggestions, improvements, or bug reports, please feel free to open an issue or submit a pull request. Your contributions are highly appreciated!
Happy Pourbaix diagram generating! 🧪📊