A simulation showing potential wells in ionic diffusion with an applied electric field

There are two versions, one with 30 particles and one with 100, the low particle count version is intended for use on slow computers

High particle count

Low particle count

There are three sliders, one to control wavelength, one for the energy barrier and one for the applied field. The greater the applied field the steeper the curve, and the more likely particles are to diffuse with the electric field. The smaller the energy barrier, the easier it is for particles to move between minima (either way). The wavelength control is included for fun! There are also two buttons: to reset the particles and to apply a small amount of energy to them. Without applying some energy, the particles simply sit in the minima they originally fall in, this is unrealistic as energy is supplied to them in the form of thermal energy. This could be automated, but having a button allows some extra control over the simulation.