Pressure and density
Dry air is treated as an ideal gas at textbook standard pressure. Its density is ρ = p / (R T), using p = 101,325 Pa, R = 287.05 J kg⁻¹ K⁻¹ and g = 9.80665 m s⁻² TEXTBOOK CONSTANTS.
With constant density in each air column, the indoor-minus-outdoor pressure difference is Δp(z) = g(ρₒ − ρᵢ)(z − zₙ). The neutral plane zₙ is the height where Δp = 0.
Opening flow and neutral plane
Each opening follows the orifice relation Q = Cᵈ A √(2|Δp|/ρ). The model finds zₙ by balancing incoming and outgoing mass flow. The low opening centre is 1.2 m above ground and the high opening centre is 1.2 m below the roof (illustrative geometry). For two openings, the balance also has a closed-form solution; the numerical bisection check tests it independently.
Air density differs slightly between the two streams, so equal mass flow does not mean exactly equal volume flow. The pressure profile is checked again by summing its hydrostatic gradient over 240 slices.
Tracer experiment
A perfectly mixed tracer follows dC/dt = −(Q/V)C. A fixed one-second RK4 integration generates samples; a least-squares fit of ln(C) against time estimates the air-change rate. The floor area is fixed at 180 m² ILLUSTRATIVE.
What is simplified?
- Two openings, one low and one high, with a uniform indoor and outdoor temperature.
- Dry ideal-gas air, constant pressure and constant density within each column.
- No wind, mechanical fans, leakage, humidity, thermal stratification, room-to-room resistance or transient pressure storage.
- The discharge coefficient (0.62), floor area and building dimensions are illustrative, not design data.
This is an educational model, not a ventilation design tool. Real buildings need measured leakage, geometry, wind exposure and applicable engineering standards.