This repository contains a couple jupyter notebooks that simulate the electrochemical behavior of a cell. The notebooks are designed to be run in a Jupyter environment, ideally via Binder, and they provide an interactive way to explore the dynamics of electrochemical cells.
For example, the simulator displays a representative picture of a cell, and other screens portraying potassium and sodium ion concentrations inside and outside the cell. The concentrations (inside and outside) can be changed by the user via sliders. Two graphs display the evolution of the membrane potential and concentrations over time.
The advanced mode allows the user to manually control the amount of potassium and sodium channels that are open. The number of channels is of course ilustrative and the cell has an equal amount of 20 channels for each ion. In the advanced mode, the concentrations cannot be changed by the user, because their dynamics is determined by the number of channels that are open, by the initial concentrations and other parameters. Lastly, the advanced mode allows the user to optionally display the evolution of the concentrations if they would follow Fick's law of diffusion instead of the Nernst-Planck equation.
Click the button below to start the live simulator. This version allows you to interactively change the concentrations of potassium and sodium ions inside and outside the cell, and observe how these changes affect the membrane potential and ion concentrations over time.
Click the button below to start the static simulator. This version is similar to the live simulator, but it updates all time points in the view window at once. This is useful for understanding the overall dynamics of the system without real-time interaction.
