Left ventricle with time-varying elastance, ideal valves and an arterial Windkessel. Drag to orbit, wheel / pinch to zoom.
The science
Ventricular pressure is Pv = E(t)·(V − V0), with elastance E(t) = Emin + (Emax − Emin)·e(t) and e(t) a normalised double-Hill curve (a typical published shape; constants here are illustrative, not patient data).
Valves are ideal diodes: mitral flow Qmi = max(0, (Pla − Pv)/Rmi), aortic flow Qao = max(0, (Pv − Pao)/Rao). The aorta is a two-element Windkessel: C·dPao/dt = Qao − (Pao − Pven)/Rp, Pven = 5 mmHg.
Integrated with explicit Euler at 0.25 ms. Simplifications: single ventricle, constant atrial pressure (no venous-return feedback or baroreflex), no valve inertia, no coronary flow, rigid heart geometry mapped to volume by a cube-root scale, flow particles are illustrative. Not for clinical use.
Mean arterial pressure must satisfy MAP = Pven + CO·Rp and, over a steady beat, filling volume equals ejected volume; both are tested live below.
Model constants
V0 = 5 mL, Emin = 0.06 mmHg/mL, Rmi = 0.01, Rao = 0.02 mmHg·s/mL, systolic duration Tmax = 0.2 + 0.15·T. Typical adult rest values: EDV ~120 mL, SV ~70 mL, EF ~55-65 %, BP ~120/80 mmHg.