Governing equations
Ideal-gas density
ρ = p / (RdT)
Vertical pressure difference
Δp(z) = Δpm + g(ρo − ρi)(z − H/2)
Opening flow
Qj = CdAj sgn(Δpj) √(2|Δpj| / ρo)
Mass balance and neutral plane
Qlower + Qupper + Qfan = 0
zN = H/2 − Δpm / [g(ρo − ρi)]
The solver finds Δpm by bisection until the two opening flows balance the prescribed fan flow. The pressure profile is then evaluated from the hydrostatic relation.
Constants and labels
- Textbook: g = 9.80665 m/s², dry-air gas constant Rd = 287.05 J/(kg·K), and reference pressure p = 101325 Pa.
- Illustrative: discharge coefficient Cd = 0.62 and all slider defaults and ranges. A discharge coefficient depends on opening geometry and flow conditions.
- Scaled: displayed pressure, flow, neutral-plane position and numerical-check results, calculated from the current illustrative inputs.
What is simplified
The building is represented by two illustrative leakage bands at 12% and 88% of its height. Air density is treated as uniform within each side, pressure differences are small enough for an incompressible orifice approximation, and the model is quasi-steady. Wind, façade orientation, shafts, floor-by-floor compartments, duct resistance, moisture and transient thermal storage are omitted. The fan is a prescribed volume flow rather than a detailed fan curve.
Tracer markers move at constant speed using fixed 1/60 s simulation steps; they visualise flow direction, not turbulence. This is an educational model, not a building-design or compliance tool. Real buildings require measured leakage data and a fuller pressure-network analysis.