🫀 Heart and Lung Physiology Lab: Windkessel Blood Pressure and Ventilation

2D interactive simulation · educational model, not medical advice

Adjust heart, vessels and breathing; the monitor trace and both plots follow the closed-form model.

The science

Circulation: two-element Windkessel. The arterial tree is a compliance C (mL/mmHg) in parallel with a peripheral resistance R (mmHg·s/mL): C dP/dt = Qin(t) − P/R. The heart ejects the stroke volume SV as a half-sine of duration Ts = 0.3√T (T = beat period, capped at 0.7T): Qin = (π SV / 2Ts) sin(πt/Ts), zero in diastole. This linear ODE has a closed-form periodic solution, used to draw the pressure curve: in diastole P decays as e−t/RC.

Mean pressure. Averaged over a beat, flow in equals flow out, so MAP = CO · R with CO = SV · HR/60 (cardiac output). Pulse pressure is roughly SV/C, which is why stiff arteries (small C) raise systolic pressure.

Blood loss and the baroreflex. Haemorrhage lowers venous return; stroke volume is reduced by SV→SV(1 − 1.5 · loss) (a crude Frank-Starling cartoon). The baroreflex raises heart rate and resistance in proportion to (93 − MAP)/93 with the chosen gain, solved by fixed-point iteration. Constants are illustrative.

Breathing: alveolar ventilation. V̇A = (VT − VD) · RR with dead space VD = 150 mL; PaCO2 = 0.863 · V̇CO2 / V̇A (mmHg, with V̇CO2 in mL/min and V̇A in L/min; 0.863 combines unit conversion and barometric pressure); and the alveolar gas equation PAO2 = PIO2 − PaCO2/RQ with PIO2 = 0.21(760−47) = 149.7 mmHg and RQ = 0.8. Shallow fast breathing wastes ventilation on dead space.

Honest simplifications. Resting adult values; no pulmonary circulation, no wave reflection, no heart-lung coupling, no real autoregulation. The heart and lung graphics are schematic. Not a clinical tool.