File Exchange

image thumbnail

A Basic Tool to Construct Basic Pourbaix and Tafel Diagrams

version 1.0.1 (5.25 KB) by Austin Hernandez
This program is mainly intended to assist in coursework for any student that comes across the science of corrosion

7 Downloads

Updated 30 Apr 2020

View Version History

View License

This program was mainly written as an exercise for the author and to aid in coursework. Since learning MATLAB for 2 weeks, I was inspired by the repetitive calculations required to construct a Pourbaix and Tafel diagram. This program takes user inputs, which are values (like ion concentration, delta G, pH) that should be given to user before using the program.

Unfortunately, if the user doesn't have certain values then they have to find the values that fit the prompt, or the program may be impossible to use. Since I am so new to MATLAB, I am unsure of how to make this program into the best it could be, but I will mainly work towards improving the program to handle many ionic species.

Pourbaix diagrams are diagrams that can paint a picture of a species that undergoes corrosion -- specifically, we are able to determine the areas of pH and cell voltage that allows a metal to be noble, have a protective passive layer, or will corrode into ionic species and cause loss of mass.

Tafel diagrams are diagrams that show us how the voltage of an electrochemical reaction changes with respect to the log of the current dissolution constant. We can then calculate the critical current dissolution and voltage that will cause penetration into the metal. The program will calculate these provided with the right values. These diagrams aid corrosion scientists in determining what conditions are ideal for an alloy in a corrosive environment.

Cite As

Austin Hernandez (2021). A Basic Tool to Construct Basic Pourbaix and Tafel Diagrams (https://www.mathworks.com/matlabcentral/fileexchange/75267-a-basic-tool-to-construct-basic-pourbaix-and-tafel-diagrams), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!