Air in Air out O₂ CO₂

2D Respiratory System: Diaphragm, Boyle's Law & Gas Exchange

This companion simulator strips the respiratory system down to a plain 2D cross-section: a diaphragm, a ribcage, two lungs, and a branching airway ending in alveoli. Contract the diaphragm and watch thoracic volume increase, alveolar pressure drop below atmospheric by Boyle's law, and air flow in through the trachea and bronchi — then relax it and watch the whole cycle reverse on elastic recoil alone. Adjust breathing rate and tidal volume to see how they drive intrapleural pressure, alveolar pressure, minute ventilation, and the resulting O₂/CO₂ exchange readouts in real time.