A Chemical Equilibrium Simulator
The code can be found here
One day, while in AP Chemistry, I decided to write a simulator for chemical equilibrium in Python.
My goals:
- to apply my knowledge of chemical equilibrium (forward/backward reactions & Le Chatelier’s Principle)
- to generate nice-looking plots
Success!
As seen above, increasing the amount of product (at t=30) shifts the equilibrium from the product (C) towards the reactants (A & B).