Air density TEXTBOOK
ρ = p / (R T), using ideal-gas air at standard pressure.
Pressure with height TEXTBOOK
Δp(z) = C + g(ρout − ρin)z − Cpqw, where qw = ½ρoutU².
Opening flow TEXTBOOK
ṁ = CdA sgn(Δp)√(2ρ|Δp|). The upstream density is used for each direction.
Pressure balance NUMERICAL
The indoor reference pressure C is found by bisection until the two opening mass flows sum to zero. A separate wind-off, constant-density reference checks the neutral-plane result against the closed form.
Simplifications. One well-mixed indoor zone; dry ideal-gas air; constant atmospheric pressure; fixed discharge coefficient 0.62 (illustrative); two openings only; steady pressure balance. Wind pressure coefficients are idealised as ±0.45 cos(direction) (illustrative). The building drawing and airflow paths are scaled, not CFD results. Heat transfer, humidity, leakage, door operation and transient pressure storage are omitted.
This is an educational airflow model, not a building-design or safety tool. All dimensions and operating cases are illustrative; gravity, gas constant and atmospheric pressure are textbook constants.