The science Equations, assumptions & checks
For ideal-gas air at equal reference pressure, density is ρ = p/(R T), using p = 101325 Pa and R = 287.05 J kg⁻¹ K⁻¹ (textbook). The vertical pressure difference follows Δp(z) = g(ρₒ − ρᵢ)(z − zₙ), with g = 9.80665 m s⁻² (textbook).
Opening flow is Q = Cᵈ A √(2|Δp|/ρ), with sign set by pressure. Mass continuity at the two openings determines neutral height zₙ. The solver uses bisection, not an arbitrary animation. Air-change rate is 3600 Q / (floor area × building height).
Illustrative simplifications: two well-mixed air columns, constant temperatures, no wind, no fans, no duct friction, no compressibility variation with height, and a discharge coefficient shared by both openings. A zero-area opening blocks the entire through-flow. Particles are tracers, not a computational-fluid-dynamics prediction.
Independent numerical checks
The building is a stylised sectional illustration. This model is educational and is not a building safety or ventilation design tool.