MBR model (modified Beeler-Reuter).
2D spiral waves (WebGL 2)

"the BR model (mod = 1) produces breakup because it has a very long wave length and adapts to very short at high frequencies and leads to breakup via slow recovery fronts (the wave back is slow and the wave front is too fast and crashes on it). By speeding up the calcium dynamics by two (mod = 2) we can decrease the wave length and avoid breakup."   Flavio H. Fenton
mod

dtms dxcm   it delay fps
On 2D plane Vm values are displayed by the red color. 2 x values are displayed by the green color. This script uses simple explicit algorithm and 512x512 float32 textures with the CLAMP_TO_EDGE boundary conditions. It makes 2 it time steps per frame.

Experimental WebGL 2! The script uses rendering into 2 textures (8 variables) and is a bit clear than WebGL 1 based one. It has just the same FPS on GeForce 560 and is 20-50% faster on AMD A6-5200 with 1333 MHz memory.


Heart rhythms     updated 28 Oct 2013