Giter Site home page Giter Site logo

kplanken / pourbaix Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 569 KB

This project reports a method to generate Pourbaix diagrams using Python and the pymatgen package.

License: Creative Commons Zero v1.0 Universal

Python 100.00%
electrochemistry electrolysis pourbaix

pourbaix's Introduction

Pourbaix Diagram Generator

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).

Getting Started

  1. Clone the repository:

     git clone https://github.com/kplanken/pourbaix.git
     cd pourbaix
    
  2. Install the required packages:

     pip install -r requirements.txt
    
  3. Enter element(s) to your liking in main() in main.py

     def main() -> int:
         ...
         compounds: list[str] = [<elements go here>]
         ...
         return 0
    
  4. 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.

Sample Pourbaix Diagrams

Check out the 📁pourbaix_diagrams directory for pre-generated Pourbaix diagrams. Below is an example:

Pourbaix diagram for Nickel Figure: Pourbaix diagram for Nickel

Pourbaix Entries

The 📁pourbaix_entries directory contains Pourbaix entries for various elements saved as JSON files. Feel free to add your own entries.

Contributing

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! 🧪📊

pourbaix's People

Contributors

kplanken avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

segcd

pourbaix's Issues

First Steps: Explore pymatgen

Couple of Tasks

  1. First create a branch "feature_first_steps"
  2. Assign this issue to the branch
  3. Install pymatgen in venv
  4. import pymatgen or appropriate parts of it in a file main.py
  5. Explore the docs
  6. Figure out how to generate a Pourbaix diagram

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.