FILMFlow Instability & Lung Mechanics Simulator

A Young–Laplace and Poiseuille equation based simulator for soap films, airway resistance, and adult alveolar mechanics.

Author: Prof. Jyotirmay Kirtania (2026)  |  License: CC BY-NC 4.0

FILM (Flow-Instability Lung-Mechanics) Simulator: Quick Start GuideExpand/Collapse

Phase 1: The Physics — Soap Bubbles

Action: Open the Soap bubbles tab and click Play.

Observe: The 3.5 cm bubble empties into the 10 cm bubble.

Principle: Young–Laplace: ΔP = 4γ/r. A smaller radius creates higher excess internal pressure, driving gas into the larger unit.

Experiment: Halve the Tube internal diameter to 2.5 mm. Collapse time rises sharply because Poiseuille flow depends on r⁴.

Phase 2: The Clinical Model - Adult Alveolar Units

Action: Switch to the Adult alveolar units tab to see how surfactant and tissue tethering prevent simple soap-bubble collapse.

ARDS & VILI: Select ARDS-like. Watch dependent-unit collapse and the stress multiplier on the adjacent open unit. This demonstrates Mead-type interdependence and stress concentration at derecruited/open-unit margins.

Dynamic hyperinflation: Select Emphysema-like and increase Respiratory rate to 24/min. Units fail to empty before the next breath, causing progressive air trapping.

Airway crisis: Select Asthma/COPD-like. Reduce Airway diameter. The expiratory time constant τ = R × C prolongs, showing why small mucosal edema or bronchospasm can become dangerous.

Learning tip: run the default soap-bubble collapse first, then switch to the lung tab. Simple physics makes the complex clinical mechanics easier to understand.

Double soap-bubble experiment

t = 0.0 s
Small radius
3.50 cm
Large radius
10.00 cm
Pressure gradient
0 Pa
Flow rate
0 mL/s
Tube resistance
1.0×
Estimated collapse
~15 s

Bubble and tube geometry and collapse timeline

Young-Laplace + Poiseuille
Predicted observationMechanism
Origin of ΔP and factors that control collapse
Pressure correction: for a soap bubble, ΔP means the excess internal pressure over the surrounding external pressure: ΔP = Pinside − Poutside. Between two connected bubbles, the driving pressure is the difference between their internal pressures.
Soap bubble excess pressure: ΔPbubble = Pinside − Poutside = 4γ/R
Driving pressure between connected bubbles: ΔPdrive = 4γ(1/Rsmall − 1/Rlarge)
Poiseuille flow through the connecting tube: Q = πa⁴ΔPdrive / (8ηL)
Single-bubble limit to atmosphere: T = 2ηLR₀⁴ / (a⁴γ)
Connecting tubeBoreLengthPredicted single-bubble collapse for R₀ = 1 cm