Simulations
Two simulators solve models of cardiac tissue in real time on your graphics card. They run in the browser, with nothing to install.
Before you start
Flickering patterns. Both simulators show bright waves crossing a dark background, so parts of the picture alternate between light and dark a few times each second. Each simulator starts paused, and you can pause it again at any time.
What you need. A browser with WebGL 2. The simulators were last tested in Chrome on a desktop computer. If one does not start, try a current version of Chrome or Firefox.
Keyboard and screen reader use. Every control can be reached with the Tab key, and each simulator offers a way to stimulate the tissue without a mouse. The pictures themselves are visual. Each simulator page describes what its pictures show and reports the state of the simulation as text.
Fast AF Simulator 2D
A three-variable minimal model of cardiac tissue on a square sheet. The edges are periodic, so the sheet is a torus: a wave that leaves on the right re-enters on the left.
Stimulate the tissue to launch waves, break them into spirals, follow the spiral tips, and download the tip trajectories as a CSV file. See reference 2 below.
How to download spiral tip trajectories
- Launch the 2D simulator.
- Press Solve/Pause once, then stimulate the tissue in several places until the pattern looks suitably chaotic. With a mouse, click in the left picture. With a keyboard, use the controls under “Stimulate without a mouse”.
- Check Plot Tip Trajectories? to begin calculating spiral tips.
- Check Also Record Tip Trajectories? to begin recording them.
- Type the prefix you want for the file name into File Name Prefix.
- When enough time has passed, press Save Log of Tips.
The output file has a header in its first line. In each following line, the first value is the time of that frame, and the remaining values alternate between the (x, y) coordinates of a spiral tip and (0, 0). There may be extra (0, 0) entries at the end of a line; ignore those. Tip coordinates range from (0, 0) to (1, 1), and time is in milliseconds.
You can change how often tips are sampled under Sampling Rate, which starts at its minimum of 0.2. Recording at the minimum sampling rate is slow. Save Parameters saves a list of the current parameter values.
Fast AF Simulator 3D
A minimal model of atrial tissue, a variation of the Bueno-Orovio (2008) model, on a three-dimensional mesh of the right atrium of a de-identified patient. The geometry contains no identifying information.
Rotate the atrium, stimulate the tissue anywhere on its surface, and watch the wave travel. A second view shows spiral tip trajectories. The 3D simulator does not yet export robust tip trajectories. See reference 3 below.
How they were built
Both simulators are adapted from implementations published in reference 1 and use the Abubu.js library created by Abouzar Kaboudian, which carries out scientific computation on the graphics card through WebGL 2. They solve their models in real time by finite differences or by phase averaging.
References
- A. Kaboudian, E. M. Cherry, and F. H. Fenton, “Real-time interactive simulations of large-scale systems on personal computers and cell phones: Toward patient-specific heart modeling and other applications,” Science Advances 5, eaav6019 (2019).
- F. H. Fenton, E. M. Cherry, H. M. Hastings, and S. J. Evans, “Real-time computer simulations of excitable media: JAVA as a scientific language and as a wrapper for C and FORTRAN programs,” Biosystems 64, 73–96 (2002).
- D. M. Lombardo, F. H. Fenton, S. M. Narayan, and W.-J. Rappel, “Comparison of detailed and simplified models of human atrial myocytes to recapitulate patient specific properties,” PLOS Computational Biology 12, e1005060 (2016).
Disclaimer
Users of these simulations are cautioned that the simulation author is not providing medical, clinical, or other professional advice, and should use their own professional judgement and consult any other necessary or appropriate sources prior to making clinical judgements.