Home▸Physics & Mechanics▸Breathing Lungs - 2D Respiratory Mechanics, Pressure-Volume Loop and Gas Exchange

🫁 Breathing Lungs - 2D Respiratory Mechanics, Pressure-Volume Loop and Gas Exchange

2D companion of the 3D breathing lungs: a single-compartment lung model with compliance, airway resistance and muscle pressure, live volume, flow and pressure traces, pressure-volume and flow-volume loops, and alveolar CO2 and O2 from ventilation, checked against the RC time constant and the alveolar ventilation equation.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
Breathing Lungs - 2D Respiratory Mechanics, Pressure-Volume Loop and Gas Exchange ↗ Open standalone
⚙ Under the hood

2D companion of the 3D breathing lungs: a single-compartment lung model with compliance, airway resistance and muscle pressure, live volume, flow and pressure traces, pressure-volume and flow-volume loops, and alveolar CO2 and O2 from ventilation, checked against the RC time constant and the alveolar ventilation equation.

LungsRespirationComplianceGas exchange

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)