Governing equations
Air density follows the ideal-gas relation: ρ = p / (R T). Hydrostatic pressure gives the indoor–outdoor difference at height z: Δp(z) = b + g(ρₒ − ρᵢ)z.
The neutral pressure plane is where Δp = 0. For two openings, mass continuity gives the weighted height. Here ρᵤ,ₗ and ρᵤ,ᵤ are the upstream air densities at the low and high openings; they swap when the flow reverses:
zₙ = [ (CᵈAₗ)²ρᵤ,ₗzₗ + (CᵈAᵤ)²ρᵤ,ᵤzᵤ ] / [ (CᵈAₗ)²ρᵤ,ₗ + (CᵈAᵤ)²ρᵤ,ᵤ ]
Each opening uses the orifice relation Q = Cᵈ A √(2|Δp| / ρ), with upstream density selected according to flow direction. The fixed-step tracer animation advances at an illustrative 1/60 s; the steady airflow solution is algebraic.
What is simplified
The room is treated as one well-mixed air volume with two openings. Wind pressure, leakage through the fabric, mechanical fans, moisture, buoyancy variation with height, thermal storage, and transient pressure waves are omitted. The two openings share one discharge coefficient. The room volume is fixed at 120 m³.
What is illustrative and what is textbook
Opening areas, heights, temperatures, room volume, and the discharge coefficient are illustrative controls, not a design specification. The model uses textbook constants: gravitational acceleration 9.80665 m/s², dry-air specific gas constant 287.05 J/(kg·K), and reference pressure 101325 Pa. The 20°C density check uses the textbook reference 1.204 kg/m³.
This is an educational idealisation. Real buildings can have several neutral pressure planes, wind-driven exchange, and substantial leakage paths.