❤️ Heart Rhythm — Cardiac Action Potential

Written by MySimulator Team · Reviewed by MySimulator Editorial Review

Last updated: 5 July 2026

FitzHugh-Nagumo excitable medium · SA node → AV delay → ventricular depolarisation · live ECG trace

Pacing

Conduction

Excitability

Preset rhythms

Display

Live readout

Heart rate
RR interval
Wave speed
Excitation %
Refractory %
Rhythm
Depolarised
Plateau
Refractory
Resting
SA node
AV node

About this simulator

This simulation models the electrical activity of the human heart using the FitzHugh-Nagumo (FHN) equations, a canonical model of excitable media. The heart is represented as a 2D grid divided into anatomical zones: SA node (upper right), atria, an AV node barrier with configurable delay, and ventricles. Each cell obeys dv/dt = v(v−a)(1−v) − w + I + D·∇²v and dw/dt = ε(v − γw), where v is the fast membrane voltage variable, w is the slow recovery (refractory) variable, D is the diffusion coefficient controlling conduction velocity, and ε governs refractoriness. The SA node is driven by a periodic current I at the user-selected pacing rate. The impulse travels through the atria, pauses at the AV barrier, then spreads through the ventricular mass via faster conduction analogous to the His-Purkinje system.

The ECG-like trace below the grid is generated by spatially integrating the activator variable over atrial cells (producing the P wave), then over ventricular cells (producing the QRS complex and T wave). This approximates the body-surface potential in a single lead. You can explore clinically relevant rhythms using the preset buttons: reducing refractoriness allows re-entrant spiral waves analogous to atrial flutter; further reducing it with low conduction velocity generates multiple chaotic wavelets resembling fibrillation. Increasing the AV delay above 300 ms mimics a third-degree AV block, decoupling atrial and ventricular rhythms entirely.

Frequently Asked Questions

What is the FitzHugh-Nagumo model?
The FitzHugh-Nagumo model is a simplified two-variable model of excitable membranes. It captures the essential dynamics of action potential generation — a fast activator variable (membrane voltage) and a slow recovery variable (representing inactivation gating). Despite its simplicity, it faithfully reproduces propagating waves, refractory periods, and re-entrant patterns seen in real cardiac tissue.
What is the cardiac action potential?
A cardiac action potential is the sequence of electrical changes across a heart-muscle cell membrane that triggers contraction. It has five phases: phase 0 (rapid depolarisation via Na⁺ channels), phase 1 (early repolarisation), phase 2 (plateau via Ca²⁺ channels), phase 3 (repolarisation via K⁺ channels), and phase 4 (resting potential). Duration varies: ~200 ms in ventricles vs ~150 ms in atria.
How does the SA node initiate each heartbeat?
The sinoatrial (SA) node in the right atrium contains pacemaker cells with funny current (If) channels that allow spontaneous slow depolarisation during diastole. When threshold is reached (~−40 mV), a full action potential fires and the wave spreads outward through the atria at ~1 m/s via gap junctions between cardiomyocytes.
What is the AV node delay and why does it matter?

The atrioventricular (AV) node introduces a physiological delay of ~120–200 ms before the impulse reaches the ventricles. This pause ensures the atria finish contracting and emptying blood into the ventricles before ventricular systole begins, optimising cardiac output. In this simulation the AV delay is modelled as a refractory barrier between atrial and ventricular zones.

What does 'conduction velocity' control in this simulation?

Conduction velocity governs how quickly the excitation wavefront spreads through cardiac tissue. In real hearts it ranges from ~0.05 m/s in the AV node to ~4 m/s in the His-Purkinje system. In the simulator the diffusion coefficient D scales conduction velocity. Slower conduction allows wavefronts to curve more sharply and can produce re-entrant spiral waves mimicking atrial flutter or fibrillation.

What is refractoriness and why is it important?

After each action potential, cardiac cells enter an absolute refractory period during which they cannot be re-excited. This prevents a new wave from following immediately behind the previous one, ensuring the heart relaxes between beats. In the FitzHugh-Nagumo model, the recovery variable w acts as the refractory gate. Reduced refractoriness allows waves to re-enter recovering tissue, a mechanism underlying ventricular tachycardia.

How is the ECG trace generated in this simulator?

The ECG-like trace is computed by summing the activator variable v across the atrial region (producing the P wave), then across the ventricular region (QRS complex and T wave). The signal is scaled, slightly smoothed, and scrolled in real time to approximate the appearance of a single-lead ECG strip.

What arrhythmias can this simulator demonstrate?

By reducing refractoriness or slowing conduction velocity you can observe re-entrant spiral waves analogous to atrial flutter, atrial fibrillation (multiple chaotic wavelets), and ventricular tachycardia. Increasing the AV delay beyond 300 ms reproduces AV block. High pacing rates beyond tissue recovery time produce 2:1 block, where every second stimulus fails to propagate.

Why is the QRS complex larger than the P wave on the ECG?

The QRS complex reflects ventricular depolarisation. Because the ventricular mass is much larger than the atrial mass — the left ventricle pumps blood to the entire systemic circulation at ~120 mmHg — the sum of electrical dipoles is far greater, producing a higher-amplitude ECG deflection. The T wave then represents ventricular repolarisation.

Is the simulation physiologically realistic?

The FitzHugh-Nagumo model is a qualitative simplification. Quantitatively accurate models (Hodgkin-Huxley, Luo-Rudy, ten Tusscher) include dozens of ion channels and are far more computationally expensive. The value of FHN is educational: it captures wavefront curvature, refractory collisions, and re-entry with minimal parameters, making it ideal for interactive real-time exploration in a web browser.