Lung and Ventilation Simulator Experimental

1. The model running

Breathing

Pick a state, or move any control while it runs. Each state's size is an illustration, not a measured patient.

More controls I:E, lung and blood

Lung and blood changes are illustrations

Pressure, flow and volumelast 6 s
  • —— Airway opening (top), flow, volume
  • - - - Alveolar pressure (top)
Tidal volume …

PaCO₂ mmHg …

Steady state for this ventilation.

PaO₂ mmHg …

Oxyhaemoglobin curvesaturation % against PO₂ mmHg
  • —— Chosen curve
  • ···· The other curve
  • ● arterial  ○ mixed venous
PaCO₂ against alveolar ventilationmmHg against mL/kg/min
  • —— This baby’s CO₂ production
  • ● Now

2. What this shows, and what it cannot

It teaches how pressure, resistance and compliance make a breath, how time constants set what a short expiration traps, and how ventilation, dead space, inspired oxygen and shunt set the blood gases. One healthy term baby in the first weeks of life.

Model, equations and sources

What is being solved

The equation of motion of a single-compartment respiratory system: airway-opening pressure minus body-surface pressure plus muscle pressure equals resistance × flow plus volume ÷ compliance, with volume measured from the relaxation volume. Pressure control applies a square airway pressure; negative-pressure ventilation lowers the body-surface pressure by the same square shape with the airway open to the room; volume control sets a constant inspiratory flow; own breathing adds a half-sine muscle pressure for the inspiratory time on CPAP. Expiration is passive. Every mode has an exact solution for the repeating breath (tidal volume, trapped volume, auto-PEEP, mean airway pressure, peak and plateau pressure). The page integrates the same equation in time, with the exact exponential step for the square drives and a fourth-order Runge–Kutta step of at most 1 ms for own breathing, and matches the exact solution (tests: to 1 part in 107, and 1 in 105 for own breathing).

Auto-PEEP is the alveolar pressure above the set PEEP at the end of expiration, as an end-expiratory hold would read it. The page shows its notice from 0.5 cmH₂O, a display rule. About 95% of the volume above PEEP leaves in three time constants (1 − e−3): arithmetic, not a clinical rule.

Gas exchange

Checks

What was compared, and the result.
CheckAgainstResult
Pressure, volume and own-breathing waveformsTheir exact solutions, 16 lungs and timings in each modeTidal volume, auto-PEEP, mean and peak pressure match
Oxyhaemoglobin curveSeveringhaus 1979 Table 1, all 51 pointsGreatest error +0.55% saturation at 98.77%, as printed; P50 26.86, as printed
PaCO₂ and alveolar ventilationFenn 1946 Eq. 17Halving alveolar ventilation doubles PaCO₂
Alveolar gasFenn 1946 Eq. 7 and 8In 100% O₂ the R term drops out, as printed
The baby’s lungKatier 2006 mediansSet from them, not predicted

Differences inside the sources

Sources

Verification

Experimental and not independently verified. There is no official calculator for a physiology model; the comparators are the exact solutions and the printed tables and equations above. The lung and blood changes, the teaching states and the breathing effort are this page’s illustrations.

The model runs in this browser; nothing you set on this page is stored or sent.

Educational use only. A teaching model of one baby’s lung, not a patient-specific prediction, not a ventilator setting and not a treatment recommendation.