FitzHugh-Nagumo on a 2D square

This Applet substitutes my old X-spiral program which used to run on Unix machines under X-windows.
Click the Start button to initiate a plane wave from the left.

You can click on the Reset h (reset half plane) key when the plane wave is somewhere in the middle of the tissue. This will break the front and initate a spiral wave. More instructions below.

Some buttons are not functional yet, such as R IC (read initial conditions), W IC (write initial conditions), Tip off/on (finds and plots the tip trajectory of any spiral) and Periodic Boundary Conditions (for periodicity along one of the axes) since I still need to implement them from my Fortran code (hope to get to that soon).

Things to do:
1) Record the signal at a given point in the tissue. For this use the Trace button located at the lower right end to activate it (trace on), select which traces to record ( Voltage, v-gate or both) and then click anywhere in the tissue.
Note 1: When you click in a new possition in the tissue, the recording automatically switch to that location.
Note 2: The Trace button activates and deactivates each time it is clicked (Trace on, Trace off).

2) Induce stimulus on the tissue. Click on S1 button so it says S1 on and choose the size of the stimulus in the box below. Click anywhere in the tissue to introduce a stimulus at that location. Repeat as desired to form conduction blocks and multiple waves. One can also use a really big size stimulus to "defibrillate" the tissue.

3) Visualize either the Voltage field or v-gate field in 2D (For this use the radio buttons).

4) Change the color map (three choices).

5) Change parameters