🫁 Lung Mechanics Simulator — Breathing, Compliance & Pressure-Volume Loop (2D)
2D Canvas simulation of respiratory mechanics: diaphragm-driven lung volume change, Boyle's-law pressure, airway resistance and a live pressure-volume loop.
⚙ Under the hood
A 2D side-view simulation of respiratory mechanics: diaphragm movement changes chest cavity volume, driving a Boyle's-law pressure drop that pulls air into the lungs. Adjust breathing rate, lung compliance and breath depth while watching a live pressure-volume loop and real-time volume, pressure and flow readouts.
biologymedicinerespiratoryphysiologypressure-volumeboyle's-law
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install