People leaving and the slime mould
Two optional sections of the Route step show where the escape goes. People leaving walks everyone out of the building; the slime mould grows over the floor towards the exits and leaves a trail where the escape concentrates. Both are off until you open them, and neither is an evacuation result to quote.
People leaving
Open People leaving in the Route step and switch on Show people leaving. Everyone on the floors, one person for every 9 m² of walkable floor, walks out and gathers a few metres outside the exit they used, so each exit's crowd shows how many chose it. The walk is worked out once for the graph on screen, and the GPU then moves everyone from the playback clock. A new graph switches the animation off.
- Show them as
Figures (the default) or dots. People are coloured by what each is doing: not yet off, walking, held up, out, and still inside when the walk stopped.
- Playback
Real time, or 5, 10 (the default) or 30 times real time.
- Egress
Without the fire (the default), or with it. With the fire, people wait for it to start in the Simulate step and keep its clock. They do not step on to a place the fire has made untenable, by the plan's rule (60 °C, visibility under 10 m, or the ISO 13571 doses), and they work out their way out again every 2 s, so they turn back for another exit when the fire cuts theirs. Anyone whose only way out is through the fire stays where they are and is counted as cut off.
- Exits
Every exit out of the building (the default), or only the exit picked in Route. The second shows what happens if the other exits are lost: on a large floor the one door's queue sets the time. Where the model marks no exit out of the building, people use the exit picked in Route.
How many people there are comes from the performance check's Floor area per occupant (m²), 9 m² by default (see What RSET is made of). The notice under the view gives the number of people, the time the last one is out, how many used each exit, the longest hold-up and how many turned to another exit on the way.
How they choose and move
These options sit folded under How people move.
- Each person takes
The quickest exit, queues counted (the default), or the nearest exit. With the quickest, each person weighs every exit out of the building: the walk there at their own speed, or the people ahead of them for it passing at the flow seen through it, whichever is longer. They look again every 2 s and turn to another exit only where the two ways part and when it saves at least 5 s and a fifth of their time, so a queue's back leaves for a free door while its front stays. Pathfinder's "locally quickest" door choice weighs a door the same way. On the examples with no fire, the last person was out sooner where queues formed at some exits while others stood free: the NIBS Clinic from 459 s to 333 s, the NIBS Office from 433 s to 350 s. With the nearest, each person walks to the nearest exit by the shortest walk and waits in its queue even while another door stands free.
- Walking speed varies over time
Off by default. Each person's speed then drifts about their own and recovers within a few seconds, as Corbetta et al. (2017) measured 72,376 walkers' speeds do: a spread of about 16 %.
- Step randomness
Straight on (the default), or drawn at random as the floor-field model draws it (Kirchner and Schadschneider 2002): mostly direct (kS 10), wandering (kS 2) or disoriented (kS 0.4). A step that brings a person nearer the exit is likelier, but people sometimes step aside or hesitate, the more so the smaller kS.
- Runs
Shown when either kind of randomness is on: one run, or 3, 5 (the default) or 10 seeds. With randomness one run is one sample, so the view plays the first and the notice gives the range of the time the last person is out over the rest, with the median. A phone runs 3 at most. With both kinds of randomness off a run is exactly as before.
- A runner in an orange shirt
On by default: one person picked out in orange. The runner chooses which: Down a stair, on a loop (the default), one of the walks down a stair looped in real time at that walk's own speeds; or The forecast's way out, on its timeline, the forecast's evacuee on its earliest safe route, reaching each place when the plan says, at the fire's time when the fire is on. Until you plan with the forecast in Simulate, the runner takes a stair; where no walk goes down a stair, the panel says so.
- Full gathering places clear
Off by default. A gathering place then holds only what its area takes, about 0.64 m² a person standing, and once it is full the earliest there fade away as newcomers arrive. Each gathering place sets its area: 10, 25 (the default), 50 or 100 m², about 15, 39, 78 or 157 people.
Speeds come from the SFPE Handbook's hydraulic model: about 1.19 m/s unimpeded, slower as the crowd round the next place thickens (a walker never counts themselves), and on a stair 0.92 m/s down and 0.69 m/s up for the mean walker (each person is up to a quarter faster or slower). A door passes at most 1.32 persons a second per metre of effective width (the SFPE hydraulic model's greatest flow, and the value the performance check's queues use), its width less 0.15 m a side, each door at its own width: the IFC's, else the width of the door's geometry in the model, else 0.9 m. The performance check's queues differ here: where the IFC gives no width they take 0.813 m, the code's least clear width, not the door's geometry (see Code and performance checks). Each person keeps their own clock, so a step does not wait for the next tick and the walk is as fast on the diagonal as along the grid. Each holds one graph node at a time, as a cell of a floor-field model holds one (Burstedde et al. 2001), and steps round whoever is ahead.
Checked against the RiMEA guideline's test cases and NIST Technical Note 1822's verification tests (tools/validation/crowd-validation.mjs): 28 of 29 pass (2026-11-24), among them the walking speed in a corridor, stairs up and down, speed populations, exits given to people, the flow from a room, through bottlenecks of 0.8 to 1.2 m, along a corridor and down a stair, pre-movement times and the walking speed in smoke. One fails: people in dense single file walk faster than measured. A first calibration of that on single-file data fitted it and failed on the data held back, so it was not adopted. Corridors up to 3 m wide and stairs pass at most the SFPE flow for their width (Corridors and stairs limit the flow, on by default since 2026-11-24; a stair takes its real width from the model); with it off, three more of the 29 fail. These are verification cases: the walk has not been compared with a recorded evacuation. The verification report lists every case.
What it is not
People leaving is an illustration of the walk out. Everyone sets off within 10 s of the plan's departure time (Leave after, 0 s by default). That is a short stagger, not a pre-movement time: only the performance check adds detection, the alarm and pre-movement. Smoke and the fire's heat do not slow anyone, and no one helps or follows another. The performance check (see Code and performance checks), not the animation, gives escape times. The plan for what comes next is the crowd motion plan.
The slime mould
Open Slime mould in the Route step and press Grow the slime mould. Up to 2,000 agents, after Jeff Jones's model of the slime mould Physarum polycephalum (Jones 2010), grow over the walkable graph for 400 steps towards the exits. Each senses ahead and to either side, turns towards the strongest trail, steps and lays trail, which spreads to its neighbours and fades; walls absorb it. The exits are its food, and they also draw by the walk to them, so far rooms keep a way out. An agent that steps through an exit starts again at a random free place, so the trail measures the escape traffic each place carries. The run takes about a second on the examples, in a worker.
The trail is drawn yellow on the graph, and the route from the start, if one is set, keeps to its tubes. The notice gives the agents, the steps, how many reached an exit and through which, and the route along the tubes against the shortest walk.
- The fire
-
Three choices; the first two need a fire started in the Simulate step (for a Flamescapes fire, a finished run).
- Grow as if there were none (the default).
- Held back by the fire and its smoke. The run keeps the fire's clock, a step being the time to walk a link (about 0.42 s). A place's smoke starts to hold the slime back 30 s before the fire makes it untenable: its trail fades faster there, it repels the agents, and the way out goes round it at a cost. It is never walled off, so where the only way out is through smoke the slime still goes. With a Flamescapes run the smoke is the run's own visibility at head height, frame by frame (clear at 30 m, untenable at 10 m), and each agent senses less far ahead in it, as sight does.
- Walled off from every untenable place. Every place the fire makes untenable during its run is a wall. With a large fire little may be left to grow in, which is why the held-back choice exists.
Its readings
Five switches under Readings, below the buttons, draw what the trail says, each off until asked. A line of readings appears under the notice.
- Desire lines
The slime's ways out from every part of the floor, along its tubes: one way out traced from each 2 m square of floor, where a link costs its length times 1 + 2 (1 - its trail weight), bundled where they share a tube. Drawn dark over the yellow, thicker where more of them bundle, with arrows towards the exits. They carry people, one per 9 m² of floor (the performance check's floor area per occupant), not floor samples.
- Bottlenecks
Crimson markers, larger the worse: where the people the desire lines carry would take longest to pass, at 1.32 persons a second per metre of clear width less 0.15 m a side. Where the passage is a door the width is the IFC's, else the width of the door's geometry in the model, as for people leaving; elsewhere it is twice the largest clearance from the walls within two links. On the NIBS Office, the worst is 202 people through a 0.92 m door, 250 s; on the NIBS Clinic, 264 people through a 0.92 m door, 326 s.
- Dead ends
Dark red: places where the walk before a second, separate way out opens is longer than the IBC 2021 dead-end limit of 6.1 m, or 15.2 m with sprinklers (the code check's switch The building has automatic sprinklers). The walk is half of the walks to the two nearest exits less the walk between them. The code's limit is for corridors; for rooms, whose own limit is the common path of egress travel, it is a reference. The values come from an ICC interpretation and summaries of the code, to be checked against its text.
- Corridors it abandoned
Grey: where the slime went early in the run and left no trail late, branches it explored and abandoned. They are corridors that look like ways out and are not.
- Centre lines of rooms and corridors
Cyan: the line through each room and corridor furthest from its walls, the robot planner's roadmap of most clearance, as the lambda-medial axis (Chazal and Lieutier 2005) with lambda 1 m. Where the desire lines leave it, the slime takes another line than the geometry centres. The notice gives the share of the desire lines within half a metre of the axis (71 % on the NIBS Office and 80 % on the Clinic with no fire) and the route that keeps to the axis.
Against the shortest walks
When the egress map has also been made on the graph, and the slime was grown with no fire, the section gives one line comparing the two within 1 m: the share of the slime's trail that lies on a shortest walk, the share of the shortest walks under a desire line, and how far apart the exits' shares are (0 when the slime leaves by each exit as the floor's nearest exits share it, 1 when wholly apart). The numbers are this model's. Folded under Why they differ:
- The slime is a traffic map, not a route for each room: most of its trail runs on shortest walks, but it draws only the busy ones, and the walks from rooms few people leave from stay faint. On the Duplex, the NIBS Office and the NIBS Clinic, 54 to 70 % of its trail lay on shortest walks, and 16 to 35 % of the shortest walks carried a desire line.
- Exits: each agent senses 3 links ahead and 60° to either side, so near a junction or a door it can turn towards another exit than the nearest. With sensors one link out, the exit split moved 35 to 45 % of the way towards the nearest-exit split in all three.
- Walls: one agent fits on a node, so the lane along a wall and round a corner, where the shortest walks run, fills up and the others pass beside it. With a tenth of the agents, as much of the trail lay next to walls as of the shortest walks.
- The trail itself, the desire, barely matters at its default weight (a full tube worth 3 m of walk): switched off, no reading moved by more than 0.02. On these floors the walk to the exits leads.
The egress map is each room's own worst walk, the code check's question; the slime shows where escape traffic concentrates, given crowding and coarse wayfinding. Where they agree, the geometry and the traffic point the same way; where the slime leaves by another exit than the nearest, look at that junction or door. The measurements are in the note on the two.
What it is not
The slime mould is a reading of where the escape concentrates, for design. It is not a crowd, it does not time anyone, and one seed gives one run. That its networks predict where people go is a hypothesis to test, not an established result: the nearest prior work, Kalogeiton et al. (2015), checks its model against measured fundamental diagrams, which this one has not been. The plan and its open questions are in the desire-lines plan.
Lean 4 proves the agents' rules in Physarum.lean (23 results): the trail's spreading keeps its total, less the fading, and never makes it negative or larger than its largest value; with absorbing walls the total never grows; an agent keeps its heading when ahead is strictly strongest and otherwise turns towards the stronger side, left on a tie; and moving never puts two agents on one place or one on a wall.
Egress map
In Route, Egress map, then Map the egress. It reads the walk to the nearest exit from every place on the walkable graph, the same walk the code check measures (exit doors on the storeys that have them, stair entrances on the others), and reads it room by room and exit by exit. Nothing is drawn until you ask.
- The notice
The farthest walk, the room it starts in and the exit it reaches, against the code check's limit; how many rooms are routed, and how many sit within 5 % below the limit, to be measured on site rather than taken as a pass. Then the blocked-exit test: each exit closed in turn and the whole building solved again, the worst of them named with the farthest walk it leaves and the rooms that change exit; and the worst-first cascade, the exit whose loss lengthens the farthest walk most closed next, round after round, which finds the pair of exits a building cannot lose together.
- Routes from every room
Off by default. Red, from each room's worst place (where the code measures travel from) to its exit.
- Contours every 5 m
Off by default. Lines of equal walk to the nearest exit.
- Dead-end corridors
Off by default. Where a person has only one way out, as the walk before a second, separate way opens (the Gromov product of the walks to the two nearest exits), its depth measured by a search back to where two ways open. In a corridor (told by the room's name, or by its shape, or, for a space whose name says nothing, by Poux's rule: the storey's largest space, one an exit opens from, or one with four doors or more) it is a dead-end corridor, against IBC 2021 1020.5 (6.1 m, 15.2 m sprinklered; none where shorter than 2.5 times its width). In a room it is the common path, against Table 1006.2.1 (22.9 m for more than 30 occupants without sprinklers, else 30.5 m). The values come from ICC interpretations and summaries; check the code's text and the code that applies.
- Doors no way out can lose
Off by default. Violet, larger for more rooms behind: each door that is the only way out of the rooms behind it, the bridges of the graph of rooms joined by doors (Tarjan 1974), with the suites of more than one room behind one door listed.
- Measure finely
Lays a measuring grid over each storey, 5 cm cells (10 cm on a phone): the floor from the model's floor faces, cut by the walls and fixed obstacles across a walking body's height (0.10 to 1.80 m), less the stairs, with each door opened at its leaf. The clearance everywhere is the exact distance transform (Felzenszwalb and Huttenlocher 2012); a walker's centre keeps 0.25 m off obstacles. The walk to the exits is measured on 16 directions, at most 2.75 % long in the open (proved in
Sixteen.lean) against the graph's 8.24 %, and checked by Fast Marching (Sethian 1996), which has no lattice directions at all. Walk measured finely lays it on the floors in 5 m bands, red past the limit. On the NIBS Clinic's ground floor the farthest walk is 36.0 m on the grid against 37.1 m on the graph, and Fast Marching agrees within 0.3 % on average. It takes a few seconds on a large model.
Accessibility
In Route, Accessibility, a profile, then Audit for a wheelchair (it runs the measuring grid if it has not run).
- Profile
ICC A117.1-2017 and the 2010 ADA Standards (the default): an accessible route 36 in (0.915 m) wide, doors 32 in (0.815 m) clear, a 60 in (1.525 m) turning circle, changes of level up to 1/2 in and slopes up to 1 in 12. Or a metric set: 0.90 m, 0.80 m and 1.50 m. Check the values against the codes' texts; the Saudi requirement is SBC 201's, not read here.
- The reading
For each storey, the rooms a wheelchair reaches from the building's accessible ways in (the exit doors on the storey that has them; lifts elsewhere, so switch lifts on in Graph to audit upper floors) against the rooms reached on foot, and how many have a turning circle. Each room reached on foot but not by a wheelchair is diagnosed by relaxing one rule at a time: a door too narrow, a step or stairs only, or a passage too narrow with the narrowest place on the way.
- First changes
The change that lets a wheelchair into the most rooms (a door widened, a ramp at a step), then the next, as Poux's audit chooses them: options, not a design.
- Accessible ways out
From each room a wheelchair reaches, the exits, stairs and lifts it can get to (IBC 2021 1009): two where the storey has more than 49 people. A stair counts as an area of refuge only if 1.219 m wide between handrails (1009.3.2); its enclosure and a lift's standby power are not read.
- Show it on the floors
Green where a wheelchair goes, darker where it can turn; amber on foot only; red reached by neither; dark red spheres at the issues. Download the issues (CSV) gives the list.
The audit reads the model's fixed construction: movable furniture is not in it, as a scan would have it. It is not a certification.
Whose methods
The algorithms are the original works': Dijkstra (1959) for the walk from all exits at once; the Gromov product for the common path; Tarjan (1974) for bridges; the exact distance transform of Felzenszwalb and Huttenlocher (2012); Fast Marching (Sethian 1996); openings by a disc from mathematical morphology (Matheron 1975; Serra 1982); configuration space (Lozano-Pérez 1983) for a body's centre; and the codes' own definitions of travel, common path and dead ends (IBC 2021, ICC A117.1). Florent Poux's evacuation and accessibility kits (2026, MIT) chain them for scanned floors; from them come the worst-first blocked-exit cascade read as "redundant alone, critical together", the list of values near a limit to measure with a tape, his rule for telling circulation from rooms, the dead end's depth by a search rather than a difference of distances, the exit cells' own step to the door, the greedy act step, and a known answer this grid reproduces (a 1.60 m corridor leaves a 1.10 m strip for a body's centre). Studio's walkable graph, code check, fire and Lean proofs were built independently of his kits.
Figures to capture
- People leaving the NIBS Office by every exit, mid-walk, with queues at the doors.
- The same with Exits set to only the exit picked, at the same moment.
- The slime mould's trail over the NIBS Office from above, with a route along its tubes.
- The five readings on the NIBS Office, one figure each or all together.
- The slime held back by a Flamescapes fire on the Clinic, against the same run with no fire.
Sources for this page
- Jones (2010). Characteristics of pattern formation and evolution in approximations of Physarum transport networks. Artificial Life 16(2), 127-153. doi:10.1162/artl.2010.16.2.16202.
- Jones and Saeed (2007). Image enhancement: an emergent pattern formation approach via decentralised multi-agent systems. Multiagent and Grid Systems 3(1). doi:10.3233/mgs-2007-3108. Paths through a maze by agents on a diffusing field, the walled-off fire's model.
- Chazal and Lieutier (2005). The lambda-medial axis. Graphical Models 67, 304-331. doi:10.1016/j.gmod.2005.01.002.
- Corbetta, Lee, Benzi, Muntean and Toschi (2017). Fluctuations around mean walking behaviors in diluted pedestrian flows. Physical Review E 95, 032316. doi:10.1103/PhysRevE.95.032316.
- Burstedde, Klauck, Schadschneider and Zittartz (2001). Simulation of pedestrian dynamics using a two-dimensional cellular automaton. Physica A 295, 507-525. doi:10.1016/S0378-4371(01)00141-8.
- Kirchner and Schadschneider (2002). Simulation of evacuation processes using a bionics-inspired cellular automaton model for pedestrian dynamics. Physica A 312, 260-276. doi:10.1016/S0378-4371(02)00857-9.
- Gwynne and Rosenbaum (2016). Employing the Hydraulic Model in Assessing Emergency Movement. SFPE Handbook of Fire Protection Engineering, 5th ed., ch. 59. doi:10.1007/978-1-4939-2565-0_59.
- Carrera et al. (2019), doi:10.1007/978-3-319-99608-0_16, and Park, Han and Spicer (2019), doi:10.1109/iemcon.2019.8936208: the nearest exit by the shortest walk.
- Thunderhead Engineering. Pathfinder Technical Reference, Path Planning: the "locally quickest" door choice.
- Kalogeiton, Papadopoulos, Georgilas, Sirakoulis and Adamatzky (2015). International Journal of General Systems 44, 354-391. doi:10.1080/03081079.2014.997527. A slime-mould crowd model checked against fundamental diagrams.