A doorway passes a limited number of people per second, however many are waiting. The specific flow is the product of density and walking speed, and walking speed itself falls as the crowd gets denser, so flow peaks at a middle density and then drops again when people are packed.
J_s = rho v(rho) persons per metre of width per second
Weidmann: v = v0 [1 - exp(-1.913 (1/rho - 1/5.4))], v0 = 1.34 m/s -> peak J_s = 1.22 at rho = 1.75 /m2
capacity Q = J_s (w - 0.2 m) n (0.1 m lost at each jamb)
time T = T_walk + N / Q (walk to the door, then a queue drains at Q)
social force: m dv/dt = m (v0 e - v)/tau + sum_j [A e^((r_ij - d_ij)/B) + k g(r_ij - d_ij)] n_ij
+ kappa g(r_ij - d_ij) (dv.t) t (people, walls, pillars)
Fruin levels of service: A < 0.31, B < 0.43, C < 0.72, D < 1.08, E < 2.17, F above (persons/m2)
- Width is the lever - the time is N / (J_s n (w - 0.2)): doubling the total clear width halves the queue time, while a faster walk only shortens T_walk.
- Faster can be slower - with strong contact friction, hurrying people press into the door arch and block each other, so the discharge rate stops rising and can fall. Try the Rush speed sweep at a narrow door; the effect is statistical, so the sweep averages two random layouts.
- Pillar and exit choice - a pillar in front of the door can break up the arch; choosing the exit with the shortest estimated time (distance plus the queue already there) uses spare doors. Both are shown as the model gives them, with no promise they help in a real building.
- Same model in both pages - one shared module; the 3D page only draws it. The checks use the same code: closed-form relaxation, the diagram peak, conservation, and two small reference runs.
- Honest simplifications - identical round people of 0.23-0.27 m radius, no groups, no stairs, no smoke, no fatigue, no pre-movement time, flat floor, one exit-choice rule. The social-force model gives door flows well above the Weidmann corridor value, as is typical, so the formula column is a reference line, not a prediction. This is a teaching model for building-egress design education; real egress design follows local codes and professional analysis.