Topologic Studio opens a building model in the browser and works out how people get out of it. It reads an IFC file, turns its floors, stairs and doors into a walkable graph, finds the shortest way to an exit, and shows how a spreading fire and its smoke change that route and what sprinklers do to the fire.
Open it at https://libishm1.github.io/Topologic_Studio/. There is nothing to install: open your own IFC file, or tap one of the nine example buildings. A guide to every feature, with the methods and sources, is at https://libishm1.github.io/Topologic_Studio/docs/.
The Duplex apartment example with a fire at the foot of the stair. The panel on the right reports that the route changed at fire step 55 to keep clear of the heat.
- On your device. Opening, routing, alternative routes, fire spread, forecasts and reinforcement learning all run in the browser. The IFC file is sent to the server only if you ask for the TopologicPy cross-check.
- On a phone. The examples open in about a second on an emulated mid-range phone, and the whole workflow fits a phone screen.
- With its assumptions. Every result comes with its assumptions, the Methods page lists what has been proved in Lean 4, and the app tells you when a model cannot give an answer (for example two dwellings that no route joins).
Studio is a research tool. Its fire models give an index of heat, not a calibrated temperature, so its results do not replace a fire engineer's egress assessment.
- The fire solver is compared with 178 measured room fires, on three cell sizes. Flamescapes was run against eight held-out test series (Steckler, NBS multi-room, NIST/NRC, WTC, the ATF corridors, UL FSRI's compartments, UL/NIST's vents and NIST FSE), each with its own walls conducted in layers, on cells of 0.20, 0.27 and 0.34 m. Each word is the strictest of the ways the comparison was read. The smoke layer's depth is calibrated on 0.20 m (bias 1.00, scatter 0.14, in band in six of seven series), 0.27 m (1.03, 0.11, seven of seven, with each measuring tree ending below a one-cell pocket at its top) and 0.34 m (1.11, 0.14, five of seven); the neutral plane in a door is calibrated on 0.20 m (0.90, 0.12, three of four series) and indicative on 0.27 m. The temperatures read warm: the layer's and the gas under the ceiling are indicative on 0.20 m only, from one laboratory's tests, and the gas at head height, which a run draws, is not calibrated on any cell. Carbon dioxide is indicative on 0.20 and 0.27 m, from one laboratory's tests; oxygen, the flow through a door and smoke visibility are not calibrated. The first sprinkler's opening is cross-validated on four series from three laboratories: 0.98 to 1.03 of the measured time on the laboratory left out. The tests' walls were their own; the app's are stone, and a run predicts its own heat release, which is not calibrated. Each run's card says what holds on its cells. The results: wiki/research/fire-calibration-plan-2026-11-11.md, sections 13.27, 13.31 and 14.9.
- The fire solver conserves heat, and is checked against measured fires. (The verdicts in this entry are 2026-11-12's, on five series; the entry above replaces them.) Flamescapes made heat as its gas mixed (a sealed box of hot and cold gas gained half its heat again in a minute). Its gas now moves through the cells conserving mass and heat, and heated gas expands, on the CPU and the GPU alike. Its one fitted constant was refitted, and it was then compared, by rules written before the comparisons, with 80 room fire tests it was never fitted to (Steckler, NBS multi-room, NIST/NRC, WTC and the ATF corridors). The smoke layer's depth is calibrated on 0.27 m cells (bias 1.08, scatter 0.15, in band in all five series) and indicative on 0.20 and 0.34 m; the layer's temperature and the gas under the ceiling are indicative on 0.34 m and not calibrated on 0.27 m, where the corridor tests scatter; gases, door flows and visibility are not calibrated. "Calibrated" is this project's name for passing its pre-registered bands; the standards would call it validated for that quantity on those cells. A test burner now burns only with oxygen, and a pool (a spill or a pan of oil) is a design fire grown to its steady burning rate. The tests had insulating-board walls; the app's walls are stone. Each run's card says what holds on its cells. The protocol and the results: wiki/research/fire-calibration-claim-protocol-2026-11-12.md.
- The guide names every control, and the panel folds long hints, adds "In the guide" links, a taller panel on phones and a fifth guided run, "Every room's way out".
- People leaving. An optional animation in the Route step: everyone on the floors, one person per 9 m² of walkable floor, walks out at the SFPE Handbook's speeds and gathers outside the exit they used. By default each person takes the exit that gets them out soonest, the walk there or the queue ahead at the flow seen through its door, and turns to a free door where the ways part; the nearest exit is an option. On the examples with no fire, the last person was out sooner where queues formed: the NIBS Clinic from 459 s to 333 s, the NIBS Office from 433 s to 350 s. Everyone uses every exit out of the building; Exits can send them all to the one exit picked, to show what losing the others costs. With the fire, they keep its clock and keep out of places it has made untenable. It is an illustration of the walk out, not an evacuation model to quote (People leaving and the slime mould).
- How people move. Two options, off by default: walking speeds that vary over time, as Corbetta et al. (2017) measured, and steps drawn at random by the floor field (Kirchner and Schadschneider 2002), mostly direct, wandering or disoriented. With either on, the walk runs on several seeds and the notice gives the range of the time the last person is out.
- The slime mould. Jeff Jones's Physarum agents grow over the walkable
graph towards the exits, and their yellow trail shows which corridors and
stairs the building's escape leans on. The fire can hold the slime back
(smoke from 30 s before a place becomes untenable, or a Flamescapes run's
own visibility) or wall it off. Five readings, each off until asked:
desire lines, the floor's medial axis, bottlenecks (on the NIBS Office,
202 people through a 0.92 m door, 250 s), dead ends against IBC 2021's
corridor limit, and branches the slime explored and gave up. The agents'
rules are proved in Lean (
Physarum.lean, 23 results). A reading for design, not a result to quote. - A nearer exit. When the start stands much nearer another exit out of the building than the one picked, a note under the route says so.
- Roofs and voids are not walked on. Spaces outside the building that no door opens onto, such as roofs drawn as rooms, and spaces named as voids ("open to below") are left out of the walkable graph; the Graph step lists them.
- Atria. Smoke rises through an atrium: voids are no longer floors in the fire grid, and a grid clipped round a fire under an atrium reaches its top. Sprinklers follow IBC 2021 404.3: heads at the atrium's top, none in its air at each storey, none above 55 ft (16.8 m). Runs kept from before are not reused.
- Describe this model now also reads people leaving, the slime mould, the performance check, sprinklers, systems and extinguishers, and the spaces not walked on, and fits its facts within what the Cloudflare describer reads.
- Layered walls are solid. Walls, roofs and slabs exported as layers (IfcBuildingElementPart), as in the Vienna example, were missing from the fire grid and the walkable graph, so smoke and the graph passed through 226 of Vienna's 298 walls. They are read now; smoke still finds gaps at some doors, windows and slab edges. The graph's "Reachable" no longer counts links blocked by a wall: Vienna reads 90%, its shafts and a refuse room with only an outside door standing apart.
- Suppression systems by room use. A clean agent (FM-200) in server, telecom and electrical rooms, foam in generator and fuel rooms, and water everywhere else, in every room of an apartment building (Fire suppression).
- Sprinklers, second round. The water wets the fuel by default and acts by fire class, open heads are drawn spraying, a second MEP or structural model brings its heads, its beams and ducts are checked as obstructions, and no heads hang over roofs or terraces.
- Sprinklers open on time. Suspended ceilings are in the fire grid, walls no longer take the ceiling jet's heat at the fuel's rate, and each head is read at its own height and distance: against NIST's tests every measured head now opens within twice the measured time, and in large rooms heads that opened late or never now open (Technical notes).
- The first item grows as a design fire. A t-squared fire at its class's growth (medium for furniture and electrical equipment) instead of the solver's own, which reached about 500 kW within 15 s. In rooms of ordinary height the first sprinkler now opens at 30 to 320 kW, before the room's contents catch (How the first item grows).
- Extinguishers are placed on the walk, and after a fire one person's attempt is judged against the unit's rating.
- Two larger examples: the NIBS Office and the medical Clinic, both with server and electrical rooms (The example buildings).
- A guide on the website, with GIFs of the suppression results; the earlier recordings, with an 84 s video, are kept in docs/media/2026-11-07/.
- On a phone the page fits the screen.
- What's new
- Quick start
- The example buildings
- What Studio does: Model, Graph, Route, Simulate, Fire suppression, Checks
- Working with Studio: your own IFC files, phones, export to TopologicPy, shortcuts
- How it works and what is verified
- Limits to keep in mind
- Running Studio on your own computer
- Tests and checks
- Technical notes
- Further reading
- Credits and licences
- Open the site and tap Duplex apartment on the welcome screen, or drop
an
.ifcfile on the page. - In the Graph step, press Build egress graph.
- In the Route step, press Set beside Start (or the S key) and click a point on the graph, then press Use the nearest exit door and Find egress route.
- In the Simulate step, press Set beside Fire origin (or F), click where the fire starts, and press Start fire. The route moves away from the heat when it has to.
- To go further, switch on the Flamescapes combustion solver (optional) and then Sprinklers in the Simulate step, press Plan with the forecast, or run the Code check and the Performance check (with the fire) in the Route step.
You can also watch a guided run on the welcome screen. Studio opens the Duplex and takes each step itself, with a caption for each, then stops at the result. The way out builds the graph and finds the route from the room furthest from an exit; A fire on the route adds a fire part-way along it; Smoke behind closed doors runs the Flamescapes solver with every door closed. Stop ends a run where it is.
| Example | What it shows | Source and licence |
|---|---|---|
| Duplex apartment (2.3 MB) | Two mirror-image homes over two storeys, each with its own stair and front door. Exit doors, rooms and stairs all come from the file. | Common Building Information Model Files, NIBS buildingSMART alliance and U.S. Army ERDC, 2011 (wbdg.org). No licence stated; shown with credit. |
| Vienna apartment building (TU Wien) (13.5 MB) | A real building in Vienna on seven levels, modelled from an approved permit project to test escape-route checks: 111 rooms, 81 doors (32 flagged as fire exits, most of them flat doors), one stairwell of four flights, and two ramps. Two doors lead out: the street door and a fire exit at the back of the first floor. The code check counts those and the stair as exits, so with one stairwell the storeys above the second fail its two-exit rule (Group B values, the stricter of the Saudi Fire Code SBC 801-CR-2018 and IBC 2021; residential buildings have their own single-exit rule, not yet checked). | Fischer, S., Schranz, C., Urban, H., Pfeiffer, D., Flamm, L. (2024). Real-World Test Model for Escape Route Analysis in IFC format (2.0.0). TU Wien. doi:10.48436/wzp90-dmf60. CC BY 4.0; the file is unchanged. |
| Office building (NIBS) (4.1 MB) | A two-storey office with 99 rooms: open offices, conference rooms, and server, telecom, electrical and UPS rooms. A model for sprinklers, extinguishers and the performance check. | Office Building, Common Building Information Model Files, NIBS buildingSMART alliance and U.S. Army ERDC, 2011 (NBU_OfficeBuilding_Arch; wbdg.org). The publisher states no licence (the DURAARK repository at TIB, which holds the same file, lists CC0); shown with credit, removed on request. The file is unchanged. |
| Medical clinic (NIBS) (13.0 MB) | A two-storey medical and dental clinic with 269 spaces: waiting areas, exam and dental rooms, communication and electrical rooms, a computer room and plant. Its graph is large (about 34,000 nodes) and takes a few seconds to build. | BSI (2020) "Medical-Dental Test Files", buildingSMART International (Community Sample Test Files), from the NIBS Common BIM Files Clinic (2011). CC BY 4.0; the file is unchanged. |
| Institute building (KIT) (10.9 MB) | KIT's office test building on five levels, from the basement to the attic: 82 spaces, 77 doors and four stairs. | AC20-Institute-Var-2 ("Phantasy Office Building"), KIT IFC Examples, Institute for Automation and Applied Informatics (IAI), Karlsruhe Institute of Technology (KIT), 2017. Published for unrestricted use; credited as the publisher asks. |
| Smiley West terraced houses (KIT) (6.1 MB) | A terrace of houses from cellar to roof: 140 spaces, 170 doors (30 of them to the outside) and 30 stairs, so many short ways out, house by house. | AC-20-Smiley-West-10-Bldg, KIT IFC Examples, Institute for Automation and Applied Informatics (IAI), Karlsruhe Institute of Technology (KIT), 2017. Published for unrestricted use; credited as the publisher asks. |
| buildingSMART sample scene (224 KB) | buildingSMART's small IFC4 test building: three slabs, four walls, two spaces. | "ifc silly sample scene", buildingSMART International, Sample-Test-Files. No licence file; shown with credit. |
| Office, two storeys (179 KB) | A corridor with ten rooms per floor, a stair and an exit at each end. | Generated by tools/make_example_ifcs.py. CC0-1.0. |
| Courtyard ring (17 KB) | A corridor round a closed core with one exit, so every start has two ways out. Turned 30 degrees to test wall alignment. | Generated by tools/make_example_ifcs.py. CC0-1.0. |
The examples are converted when the site is built, so they open from a small pre-converted file (81 KB for the Duplex, 862 KB for the 13.5 MB Vienna building) without the IFC reader starting at all.
The panel on the right walks through four steps: Model, Graph, Route and Simulate. Each step opens with its one main button and puts the result right under it. The pictures below follow the Duplex apartment.
Studio reads IFC2x3 and IFC4 files. The Model step counts the floors, stairs,
doors and walls, the storeys and rooms (IfcSpace), and reports which doors
are exits and which slabs are roofs (roofs are not walked on).
Exits come from the file's own data: a door marked FireExit or IsExternal
in Pset_DoorCommon, or a door with an external space boundary. If the file
marks none, Studio falls back to doors with floor on one side only and says
so. The Duplex marks 4 of its 14 doors as external.
The first time you open a file it is converted and stored in your browser, so the next time it opens from the cache without being read again (up to 24 models or 512 MB; clear them under Local cache in the Model step).
What the elements are names every element: by its IFC class where the
exporter typed it, and otherwise (furniture and appliances often arrive as
IfcBuildingElementProxy) by its name, then by the size of its box. With the
class hidden, these rules named 86% of 6,066 typed elements from 45 models
correctly. Identify by shape then runs IFCNet's point-cloud classifier
(Emunds et al. 2021) in your browser on the elements only the box could
place, and keeps its answer when it is at least 90% sure. The first use
downloads 4.5 MB. The comparison with IFCNet, text embeddings and small
language models is in
wiki/research/ifc-identification-benchmark-2026-11-05.md.
Describe this model writes a short plain description of the building, its ways out and its fire. A language model writes it from the facts Studio has already worked out (storeys, rooms, doors and exits, the walkable graph, the route, the fire's results) and from nothing else. Once the graph is built, each storey gets a line of its own: its ways out and its longest walk to one, worked out on the graph, and the code check's verdicts if you ran it; the model words them instead of finding paths itself. The facts are listed under it before anything is written. On Chrome 148 or later on a desktop computer, Chrome's built-in model writes it on the computer and nothing is sent. On other browsers, a site deployed with the Cloudflare describer (cloudflare/describe-worker) can send those facts, never the IFC, to a Workers AI model on Cloudflare's free allowance instead.
Show the building as switches the model between Solid, Ghost (see-through, so the graph shows inside) and Hidden. The view buttons give top, front, side and isometric views, and Show cuts the building at a storey. A Second model (an MEP or structural IFC of the same building) can be added here; see Fire suppression.
Build egress graph lays a grid of points over every floor, 0.5 m apart and turned to line up with the walls, and joins neighbouring points that a person could walk between. Walls cut 0.75 m above each floor block the links that cross them, doors join the rooms on either side, and each stair is walked along its flight. The whole graph is built in your browser, in a few hundredths of a second for the Duplex (1,597 points and 4,597 links).
The step reports how much of the building one can reach from its largest part. The Duplex is two homes side by side, so its graph is in two parts and the app says so: a route can only join two points in the same part.
Spaces outside the building that no door opens onto, such as roofs drawn as rooms, and spaces named as voids ("open to below", "void", "Luftraum") are not walked on, and the step lists them. A roof, terrace or balcony with a door onto it stays walkable.
Graph settings change the grid spacing, the largest step a person can climb, the agent's height, whether walls block links, and whether lifts and escalators join floors (off by default, as in an evacuation). Cross-check with TopologicPy builds TopologicPy's own navigation graph on the server and reports how much of each graph the other covers.
Press Set beside Start (or the S key) and click a point on the graph, then set the Exit the same way, or press Use the nearest exit door. Find egress route draws the shortest route and straightens it, so it reads as a person would walk it rather than as a zigzag across the grid. The result gives its length, the length on the grid before straightening, and its turns.
The nearest exit door is one of the doors out of the building, drawn as orange rings. Where the model says which doors are external, these are the external doors at street level and the fire exits that open onto no walkable floor. A flat's front door flagged as a fire exit leads only to the stair, and a balcony door leads nowhere, so neither counts: of the Vienna model's 35 exit doors, two lead out, the street door and a fire exit at the back of the first floor.
Without a mouse, Place without the mouse puts the exit at any door from a
list, or any point at typed coordinates. Route options switch between the
built-in A* search (in your browser) and TopologicPy's TGraph engine (on the
server). Alternative routes look for other ways out: Different space
keeps routes that do not run along one already found, and Yen lists the next
cheapest routes exactly.
When the start stands much nearer another exit out of the building than the one picked (it would save at least half the walk and 10 m), a note under the route says so; the route stays the one asked for.
Two optional sections in this step show where the escape goes. People leaving walks everyone out by the quickest exit, at the SFPE Handbook's speeds, with the fire if you like, and gathers them outside each exit. The Slime mould grows Jones's Physarum agents over the floor towards the exits; its trail, desire lines, bottlenecks, dead ends and abandoned branches read where the escape concentrates. Both are illustrations for design, not evacuation results; see the guide's People leaving and the slime mould.
Press Set beside Fire origin (or F), click where the fire starts, and press Start fire. The fire spreads step by step on the graph while the route is checked every five steps and moved away from the heat when it has to be (the picture at the top of this page). It may move to any exit out of the building, by another stair if it must; Reroute towards, under Rerouting and timing, keeps it to the exit you picked instead.
The Office example, with a Flamescapes fire (class B) at the foot of the east stair and Impassable above set to 60 °C. The route from the upstairs room takes the east stair until step 20 (100 s), when the way out by it passes 60 °C at head height; from then on it takes the west stair and exit. The switch came at step 20 in each of five runs.
Four fire models are offered, and two more with the optional Flamescapes solver:
| Model | What it does |
|---|---|
| Heat diffusion (default) | Each point relaxes towards its neighbours; walls slow the heat. Needed for heat-weighted rerouting. |
| Spread along links | The fire moves one link per step, so walls and doors shape the front. |
| Distance bands | Straight-line distance from the origin, ignoring walls. |
| Two-zone rooms | A smoke layer and its gas temperature in each room, in seconds and degrees C, spreading through open doors. Needs the model's rooms (IfcSpace). |
| Flamescapes: fire and smoke (optional) | The Flamescapes combustion solver on a 3D grid built from the IFC: buoyant gas flow, burning room contents, radiation and smoke, read at head height at every graph node. |
| Flamescapes: fire, smoke and embers (optional) | As above, with embers carried by the hot gas that can start spot fires away from the flame. |
The Flamescapes solver is a JavaScript version of the fire solver in Flamescapes: Simulating the Wildlandfire Urban Interface (Wrede, Wagner, Pałubicki, Michels and Pirk, ACM Transactions on Graphics 2026, CC BY 4.0), whose gas chemistry is that of Fire-X (Wrede et al. 2025). Switch it on with Flamescapes combustion solver (optional) in the Simulate step. It runs in your browser, on the GPU through WebGPU where the browser offers it and otherwise on one CPU core; its frames play as they are computed, and the route reroutes on the gas temperature at head height. How it differs from the paper is in Technical notes.
Show on the graph colours the nodes by one of four readings at head height: heat (the gas temperature), smoke (the visibility, or the soot concentration, extinction coefficient, obscuration or optical density it comes from), gases (CO, CO₂ or O₂), or a tenability index. The index is the largest share of a limit a node has reached, over its gas temperature, its visibility, and the asphyxiant and heat doses of ISO 13571 against a fractional effective dose of 0.3, so that 1 means untenable. The smoke the solver carries (its soot) is drawn as a grey cloud, faint in the heat view and full in the smoke view. The run card says whether embers are on, and how many were thrown and how many spot fires they lit.
Doors can be open, closed, as built or random. As built closes
the doors the model says close themselves: Pset_DoorCommon.SelfClosing, or
a fire rating whose EN 13501-2 class carries the self-closing mark -C (14 of
the Vienna model's 81 doors, rated EI2 30-C or EI2 30-C-Sm). Random closes a
share of the doors chosen with a seed, so a run can be repeated and compared
with another seed. A finished run is kept in the browser (at most 256 MB), so
the same fire asked for again, after a reload too, plays from its kept frames
instead of being computed; Forget kept runs clears them.
What burns first. The first item takes the fuel of its fire class: NFPA 10 classes A (ordinary combustibles), B (flammable liquids), C (energised electrical equipment), D (metals) and K (cooking oils), and class L (lithium-ion batteries, ISO 3941:2026). The panel says which extinguishers suit the class and which are dangerous on it, for example water on cooking oil. Each class's heat of combustion, CO and soot yields, growth and ignition temperature come from a literature review (wiki/research/ignition-sources-2026-11-05.json) and are cited in fireClasses.js.
How the first item grows. Since 2026-11-08 a solid first item (classes A
and C) grows as a t-squared design fire, Q = α t², until its fuel is spent:
by default its class's growth (medium, 0.0117 kW/s², for both: EN 1991-1-2
for dwellings and offices), or slow, medium, fast or ultra-fast under How
it grows. It burns as a prescribed source over its own floor area, with its
fuel's smoke, and the room's contents catch from it. Its flame is drawn over
it as high as Heskestad's flame height reaches, coloured by McCaffrey's (1979)
mean flame and plume temperatures; the drawing takes no part in the run.
Water from a head over it decays it as Evans measured, and clean agent at the class A concentration
puts it out. A pool, a metal or a battery pack keeps its own burning. Before,
the solver lit and burned the item itself, which took every example to about
500 kW within 15 s, faster than any design fire; As the solver burns it
keeps that. In 16 class A fires in eight models (tools/activation-diagnose.mjs,
benchmark/results/2026-11-08-design-fire-activation.json) the first head
opened at 33 to 319 kW, 53 to 165 s after ignition, in 12; in the other four,
under a high or open ceiling or with few heads in sight, the room's contents
caught first and the head opened at 0.45 to 1.6 MW.
Likely ignition points finds where a fire most often starts in your model, from its appliances, furniture and rooms ranked by their share of fire deaths, and Start here puts the fire there with its class. Cause narrows the list to one cause (cooking, an electrical fault, gas or liquid fuel, heating, smoking or candles, lithium-ion batteries, waste, or a deliberate fire with an accelerant); a gas fire at a cooktop starts as class B rather than as cooking oil.
Flamescapes on the Duplex, started at the cooking range (class K) on the GPU: a pan fire of about 20 kW warms the kitchen at head height, and the route changes to avoid it.
Two-zone rooms on the Duplex: the rooms around the fire turn red as their smoke layer heats, on a clock in seconds.
Plan with the forecast runs the fire to its end first, then routes with the state each point will be in when you would reach it. It reports the earliest safe route and how long you could wait before leaving, and colours the graph by escape deadline: for each point, the latest time to set off and still get out within the dose limit (a fractional effective dose of 0.3, walking at 1.2 m/s, over a five-minute forecast by default; all of these can be changed under Clock, speed and limits). With a Flamescapes run it plans on the same run, adding the CO dose of ISO 13571 to the heat dose.
Train an agent against this fire trains an agent to find its own way out while the fire spreads. Studio first checks whether any escape exists, so a failed agent and an impossible escape are told apart.
- Safe learner (proved), the default: learns on (node, time) behind a shield that
never lets it step where the fire will seal it in. It stops when it can
prove its route is the earliest escape, by any exit door or the chosen one.
Both properties are proved in Lean (
SafeEscape.lean). - Q-learning: the earlier tabular Q-learning (after Jabi et al. 2019), kept for comparison.
In a study of 848 runs on nine buildings
(wiki/research/rl-egress-study-2026-11-05.md,
tools/rl-bench.mjs), most "failures" near the fire had no escape at all.
Where one existed, the Q-learning's drawn path missed it in 15% of runs,
mostly from the way its path was drawn. The shielded learner escaped in all
of them, by the earliest route, certified, in a median 1.8 ms.
The animations below repeat the Simulate step on the Vienna apartment building (TU Wien), seven levels and 111 rooms. Each is a 300 s Flamescapes run with embers, computed on the GPU in the browser. The fire starts in a flat's living-kitchen, and the person leaves from the top floor, 53.8 m down the stairwell to the street door. (They were recorded before Studio counted the first-floor fire exit at the back, which is now the nearer way out, at 33.6 m.)
All doors open. An electrical fault (class C) grows through the flat and throws embers, which light spot fires. The graph shows the gas temperature at head height, and the hazard-aware route (magenta) leaves the shortest route (red) where the heat reaches it. With every door closed, the same fire on the same grid released under a quarter of the heat. The solver's heat release depends strongly on its grid, so these runs give no fire size to quote.
A gas fire (class B) at the cooking range of the flat above, doors open. The graph shows the tenability index: yellow as a node nears a limit, red once it is untenable.
The building model is by Fischer, Schranz, Urban, Pfeiffer and Flamm (TU
Wien, 2024, doi:10.48436/wzp90-dmf60),
under CC BY 4.0. The animations were made from frames of the running app
with tools/frames-gif.mjs.
Sprinklers, suppression systems by room use and portable extinguishers are in the Simulate step, the sprinklers and systems under the Flamescapes models. All are off by default; off, a run is exactly as before, at the same speed.
Switching Sprinklers on lays out the heads; a Flamescapes fire then opens the heads its hot gas reaches, and the open heads spray. Here the first item (class A, 20 kg) grows as a medium design fire: the first head opens at 132 s, with the fire at about 290 kW, four are open by 135 s, and the water on the item brings it down as Evans measured, to 2 kW at 180 s. One run: its numbers are not to be quoted.
The workflow, open office and server room GIFs were recorded on 2026-11-08, with the activation fix and the first item as a design fire. The recordings made on 2026-11-07, before both, are kept in topologicpy-web-frontend/public/docs/media/2026-11-07/: the earlier versions of those three, the four modes compared and the fire classes (both below), and an 84 s video that compares the fires and sums up the results then (suppression-analysis.mp4). In them the item burns as the solver burns it, faster than a design fire, so their heads open sooner but against larger fires than the app's now.
Where the heads come from. From the IFC where it has them
(IfcFireSuppressionTerminal, or an IFC2x3 flow terminal typed as one, with
the Revit property sets' temperature rating and K-factor), else from a second
model of the same building, else placed per room by NFPA 13 on the model's
IfcSpace rooms: at most 20.9 m² a head and 4.6 m apart for light hazard
(12.1 m² for kitchens, plant rooms and car parks), no more than half the
spacing from a wall, at least 1.8 m apart, and every point of the floor
covered. Heads hang under the slab or roof over each room. A space with
nothing over it, such as a terrace or a balcony, is taken as outside when no
wall round it rises 1.5 m above its floor or its name says so, and gets no
heads. Each room gets a rule report with the clauses of SBC 801-CR-2018 903.3
and NFPA 13, and the codes' requirement for sprinklers is checked for the
building's occupancy (Group R throughout, a storey with 30 or more occupants
at 16.8 m or more, high-rise). Vienna's heads are laid out in under 50 ms,
and its runs take no longer with them.
When a head opens. A Flamescapes run opens each head when its link reaches its rating, by the RTI equation with conduction to the mount. It is stepped exactly on two readings of the gas: Alpert's ceiling jet for the run's heat release under the fire's own ceiling (the estimate) and the gas at the top cell of the head's column (the late bound). The run card gives both times and the heat release at each. No IFC carries a head's RTI or C, so quick response is 50, standard 100 and C 0.4, as the panel says. In the Duplex's living and bedrooms, with the first item a medium design fire, the first head opens 109 to 123 s after ignition by the estimate, against 141 to 177 kW.
Checked against measured tests (Vettori 1998 and 2003, Bittern 2004, UL/NFPRF
1998; tools/sprinkler-validation.mjs), the link reproduces Vettori's
activations when given the measured gas (median 1.00), and on the fire grid
the estimate opens every measured head within twice the measured time, the
first head per test at a median 0.78 to 1.26 of it by data set; FDS, on grids
two to six times finer, gives 0.73 to 1.13 on the same tests. Until
2026-11-08 the estimate was late in rooms, and in large rooms often far
later: the walls took the ceiling jet's heat, and suspended ceilings were not
in the fire grid. The numbers and what was changed are in
Technical notes.
What an open head does is chosen under An open head. Where the head sprays, part of its water evaporates in the hot gas on the way down (Fire-X's energy-limited evaporation on the grid), the steam diluting the oxygen.
- Wets the fuel (the default). The water that reaches the fuel soaks into it, a share calibrated so that at the light hazard density it burns as much as Evans's cap.
- Evans's cap and the spray. The fuel under the head is capped as Evans measured for the spray's density (1993: the least reduction to expect), and the head sprays.
- Evans's cap only, or only opens, which leaves the fire as it is.
The heads show in the view, blue once open, and open heads are drawn
spraying. Wetting is the default. In 12 test fires on the Duplex, Vienna,
and the NIBS Office and Clinic, with the first item as a design fire
(tools/sprinkler-check.mjs, 180 s,
benchmark/results/2026-11-08-design-fire-sprinkler-check.txt), heads opened
by 152 s in eight, and wetting cut the heat released by 37 to 89 %; Evans's
cap and the spray came within 4 % of it, since the water on the item decays
it the same way in every mode. In the Clinic's mechanical room, with no
ceiling over the fire, and in Vienna's garage the first head opened at 162
and 168 s, too late to matter in 180 s; in the Clinic's atrium void one head
opened with no effect, and the Office's lift shaft has no heads. With the
solver's own burning, the same fires opened heads by 47 s, against fires
already near 1 MW, and wetting did most
(benchmark/results/2026-11-08-sprinkler-check.txt). A single run can
mislead: the fire's own scatter is large (see
Technical notes).
The same fire with no sprinklers, with Evans's cap, with the spray, and with wetting, side by side (recorded on 2026-11-07, before the activation fix and the design fire).
An open office fire over 180 s, the first item (class A, 20 kg) a medium
design fire. With no sprinklers it lights the room's contents and reaches
1.8 MW; with them, the first head opens at 142 s, with the fire at about
370 kW, and at 180 s three are open and the fire is at 394 kW: the water
brings the item down, while the contents it had already lit go on burning.
One run each: a single run's numbers are not to be quoted. The earlier
recording of this fire is kept in docs/media/2026-11-07/ with the others.
Water by fire class. Sprinkler drops, about 1 mm across, are too large to put a flame out in the gas; sprinkler water works by cooling the burning surface where it reaches it (Rasbash 1986). So an item of class A, or of class C once the circuit is dead, is wetted and capped, while heptane (B), cooking oil (K), magnesium (D) and a lithium-ion pack (L) are not, and the panel says why: the water sinks through the pool, erupts the oil, feeds the metal hydrogen, or does not reach the cells. The room's class A contents round them are wetted and capped as usual.
A heptane item as the first to burn. The water does not reach the pool, but it wets the room's other contents, so the fire stays smaller (recorded on 2026-11-07; a pool still burns as the solver burns it).
A second model. In the Model step, an MEP or structural IFC of the same building is drawn in the first one's frame through the two files' coordination, or their map conversions when both have one, and checked (units, site placement, storeys by elevation, how much the plans share). Its sprinklers feed the layout: the NIBS Office's HVAC model brings 292 heads, placed 5 cm under the architecture's ceilings. Its beams and ducts are checked by NFPA 13's beam, three times and wide-obstruction rules, with heads moved clear of them or added beneath; a switch makes them solid in the fire grid.
Extinguishers (off by default) are read from the IFC by name or placed on the walk so nowhere is more than 22.86 m from one (SBC 801-CR-2018 906, NFPA 10). After a fire, one person's attempt is judged against what the unit's rating can put out: put out, not put out, or cannot tell. On the Duplex, 4 units are placed in 215 ms; a person who sets off on seeing the fire attacks at 58 s against 37 kW (put out), and one who waits for the alarm attacks at 222 s against 547 kW (cannot tell). The attempt does not yet change the fire in the run.
Suppression systems by room use (off by default, under the Flamescapes models). Each room gets its system from its name and the building's occupancy, which is the performance check's occupants setting:
- Apartments and hotels (Group R): water sprinklers in every room (SBC 801-CR-2018 903.2.8).
- Server, computer, telecom, electrical and UPS or battery rooms: a clean agent, HFC-227ea (FM-200), at NFPA 2001's class C design concentration of 7 %. The room keeps its sprinklers (NFPA 75); Agent only leaves them out, which needs the fire official's approval.
- Generator, fuel, oil, flammable-liquid and hazardous storage rooms: foam-water sprinklers at 6.5 L/(min m²) (NFPA 11).
- Every other room: water.
The special rooms also get an extinguisher of their own at the door: carbon dioxide at IT, telecom and electrical rooms, class B foam at fuel rooms, and class K at kitchens. The ABC powder units on the routes come from Extinguishers. The NIBS Office gets 89 water rooms and 9 clean agent rooms (330 kg of agent). The Clinic gets 250 water, 10 clean agent and 2 foam rooms (its hazardous and flammable stores). The Duplex, as apartments, gets water only.
In a run, a clean agent room is released once a detector in each of two zones under its ceiling sees smoke and 30 s have passed. The agent rises to 7 % over 10 s and holds for 10 minutes. At 5.2 % (6.62 % over a liquid's vapour), flames and smouldering in the room stop, but hot fuel goes on giving off vapour. The room is taken as closed and well mixed: the agent does not cool the room or dilute its oxygen, and the release does not close the model's doors. In a foam room, the blanket cuts a pool's evaporation to a tenth in about 10 s and to nothing in about 30 s (Back and Farley 2020), and the solution's water wets the room's ordinary fuel.
The systems were tested in server room fires (class C, its item a medium
t-squared design fire, 180 s, the mean of three contents seeds,
tools/systems-check.mjs,
benchmark/results/2026-11-08-design-fire-systems-check.txt):
- Sprinklers cut the heat released by 55 % in the Office and 80 % in the Clinic, the first head opening at 108 to 116 s.
- The clean agent cut it by 85 % and 93 %, reaching the class A concentration at about 103 s (the smoke reaches the room's detectors later than it did from the solver's own, faster fire).
Class A fires on sprinklers lost 54 to 88 % of their heat (the Duplex's
living room 88 %). In the Clinic's store, a heptane spill kept alight by its
burner lost 72 % of its heat to sprinklers, which opened at 29 s and wetted
the room's other contents, and 8 % to foam: the burner keeps the pool itself
burning under the blanket (a pool keeps its own burning). With the solver's
own burning the sprinklers opened at about 25 s and the agent acted at 42 s
(benchmark/results/2026-11-08-systems-check.txt); before the activation fix
the sprinklers opened at 39 to 57 s. The sources and every value are in
wiki/research/suppression-systems-by-room-2026-11-07.md.
A server room fire with no system, with sprinklers, and with the clean agent: the room fills teal once the agent is released. The first item (class C, 10 kg) grows as a medium design fire and reaches 736 kW at 180 s with no system. With sprinklers the first head opens at 95 s, with the fire at about 110 kW, and the fire is at 78 kW at 180 s; with the agent as well, the room's detectors see smoke at 63 s, the agent is released at 93 s and the flames stop at 100 s. One run each.
Both checks are in the Route step.
Code check tests each storey's egress for offices (occupancy group B): the walk to the nearest exit, the number of exits for the occupant load and their separation, door widths, and whether the building is high-rise. Each limit is the stricter of the Saudi Fire Code SBC 801-CR-2018 and the International Building Code 2021, so a pass meets both, and every result names both clauses.
Performance check (with the fire) reads the escape deadlines of a forecast (Simulate step, Plan with the forecast). A place passes when someone there can wait for detection, the alarm, the 99th percentile of pre-movement time and any queue at the doors, and still get out with a dose under the limit. It reports, per storey, the worst margin, the least ASET/RSET, the share of occupants who start in time and the longest wait at the doors. Add fires on every storey plans more fires, each check adds the sensitivity cases its plan allows, and Download the report saves every fire, case, input and source as one page.
It is evidence for an alternative method (SBC 801-CR-2018 Section 104.9) beside the code check, not a replacement for it. Its presets, detectors, queues, criteria and the Lean statements behind it are in Technical notes.
Methods in the header opens a page that explains how each result is computed, which properties are machine-checked in Lean 4 (with the equations rendered), the limits of each model, the sources, and the server status and keyboard shortcuts.
Studio works best on architectural models with slabs or floors, walls, doors and stairs. Some things that help, and what Studio does when they are missing:
- Exits. Mark exit doors with
FireExitorIsExternalinPset_DoorCommon, or give them an external space boundary. Otherwise Studio guesses from doors with floor on one side only, and tells you it did. - Stairs. Stairs are walked along their flights, including flights and
treads aggregated into an
IfcStair. A stair modelled without treads, or a room named as a stair, is walked along an assumed dog-leg line inside its footprint. - Lifts and escalators (
IfcTransportElement, or rooms and objects named as lifts) join floors only when Use lifts and escalators is on. - Rooms (
IfcSpace) are needed for the two-zone fire model and for placing sprinklers per room. Where a model has few or no floor slabs (the NIBS Office walks on its spaces), the Flamescapes grid takes the spaces' floors as slabs. - Up axis. Most files are read correctly as they are; if the graph lies on a wall instead of a floor, change Up axis in the graph settings.
- Separate parts. If the Graph step reports several parts, a route cannot cross between them: check for missing doors, or raise Max vertical step where a level change has no stair in the model.
Files in the older IFC2X_FINAL schema, structural or MEP-only models and models with no floors are refused or give an empty graph, with a message saying why. A structural or MEP model can still be added as a second model.
On a narrow screen the viewer sits above the steps, and the panels scroll underneath. Tap Set and then tap the graph to place a point, or use Place without the mouse to pick an exit door from a list. The examples are the quickest start on a phone; your own files are converted on the phone itself, so a large model takes longer the first time and opens from the cache after that.
Measured on an emulated mid-range phone (4G, processor slowed four times, empty cache), opening the Duplex example until it can be used takes about 1 s, and opening the Duplex IFC file about 1.2 s.
Export for TopologicPy (JSON), in the Graph step and under a finished
fire in the Simulate step, downloads the walkable graph in the JSON layout
TopologicPy's Graph.ExportToJSON writes, so Graph.ByJSONFile reads it
back (checked with topologicpy 0.9.86):
- Vertices: every node in the IFC's own world coordinates (metres, Z up, at floor level). The viewer's axis turn, the model's coordination matrix and the agent's lift are undone.
- Node attributes: its kind (floor, stair, door, lift) and its place on the route. After a Flamescapes run they also hold the gas temperature, visibility, CO, soot, CO₂ and O₂ at head height for every frame, their extremes, the time the node became untenable, its tenability index and its asphyxiant and heat doses. After a graph fire model they hold whether the node was burning at the end.
- Edges: source and target, kind, length in metres, and whether the edge is on the route.
- Graph properties: the source file, the fire model and its settings (fire class, doors, windows, ventilation, grid and backend), the fire origin in IFC coordinates, the frame times and the heat release series.
from topologicpy.Graph import Graph
from topologicpy.Topology import Topology
from topologicpy.Dictionary import Dictionary
g = Graph.ByJSONFile(open("duplex-apartment-topologicpy.json"))
first = Graph.Vertices(g)[0]
print(Dictionary.PythonDictionary(Topology.Dictionary(first))["untenable_s"])Export the run as a table (CSV), under a finished Flamescapes fire, writes one row per node per frame: its place and kind, the time, every reading and measure, the two doses and the tenability index, gzipped for a spreadsheet or a machine-learning dataset.
| Key | Action |
|---|---|
| S | Set the start |
| E | Set the exit |
| F | Set the fire origin |
| G | Show or hide the graph |
| M | Show or hide the building |
| B | Build or rebuild the graph |
| Enter | Find the route |
| Esc | Cancel picking; close the Methods page |
| In your browser | On the server (optional) |
|---|---|
| Opening and caching IFC files | TopologicPy TGraph route engine and its k-shortest routes |
| Building the walkable graph | Navigation cross-check (the IFC file is uploaded for this) |
| Routes, straightening and alternative routes | The Topology JSON viewer for TopologicPy files |
| Fire spread, rerouting and the forecast | |
| The optional Flamescapes solver (WebGPU on your GPU where offered, else one CPU core) | |
| Sprinklers, extinguishers, the code check and the performance check | |
| Reinforcement learning |
The server is a FastAPI service around TopologicPy, hosted at https://topologicstudio-backend.onrender.com. When it is connected, the walkable graph (points and links, not the model) is uploaded in the background so the TopologicPy features can use it. On its free plan the server sleeps after about 15 idle minutes, and the first request after that takes 30 to 50 s; everything in the left column keeps working while it wakes, or if it is never reached.
IFC file
│
├─ SHA-256 ──────────────► IndexedDB cache: fragments + exit flags lib/fragmentCache.js
│ │ hit: open without reading the IFC
├─ import worker ◄──── miss ────┘ workers/ifc-import.worker.js
│ IFC → That Open fragments, then exit doors, storeys, roofs core/ifcSemantics.js
│
├─ viewer: fragments on screen, floor / stair / door / wall geometry viewer/ViewerManager.js
│
├─ graph worker: wall-aligned walkable lattice, stairs, cores workers/sampler.worker.js, core/lattice.js, core/cores.js
│
├─ in the page: A* + straightening, alternatives, fire spread core/route.js, core/straighten.js, core/alternatives.js, core/fire.js
├─ forecast worker: time-dependent routes, escape-deadline map, zones workers/forecast.worker.js, core/forecast.js, core/deadline.js, core/zone.js
├─ RL worker: the shielded learner, or Q-learning, against the fire workers/rl.worker.js, core/rlSafe.js, core/rl.js
│
└─ optional server: graph uploaded in the background topologicpy-web-backend/
TGraph routes, Navigation cross-check, Topology JSON
Paths are under topologicpy-web-frontend/src/ unless shown otherwise. The
sprinkler layout and activation are in core/sprinklers.js and
core/suppression.js, the extinguishers in core/extinguishers.js, and the
checks in core/codeCheck.js and core/performanceCheck.js.
docs/README-classic.md describes the original
version, which built the graph on the server; this line moved that work into
the browser.
- Tests. Unit and property tests of the browser core, and a browser suite that drives the real app in Chrome through the whole workflow and fails on any console error, uncaught exception or failed request (Tests and checks).
- Speed and accuracy. A benchmark on 38 public models, against an exact geodesic, with a stress suite of known bugs (benchmark/README.md).
- Proofs. 38 Lean 4 modules with 1,569 theorems and lemmas, on Lean's standard axioms only: the routing, the fire models, Fire-X and Flamescapes and the browser port, the learned escape, sprinklers and suppression and their activation, the second model, the obstruction rules, extinguishers, wetting and the performance check (What is proved in Lean).
- Measured tests. Sprinkler activation against NIST's full-scale tests (Technical notes), the element names against 45 models, and the learned escape against 848 runs on nine buildings (both above).
These are also on the Methods page.
- A coarse grid. Flamescapes in the browser is coarse. The paper resolves centimetres on a desktop GPU; here a cell is 0.2 to 0.45 m and a step 0.1 s. A surface layer of the fuel, a sub-grid rule for where an ember lands, the first item as a prescribed design fire, the paper's raised solid-gas heat transfer coefficient for the fuel and exact integration of each reaction over a step stand in for what the paper resolves. Once the room's contents catch, the fire grows as the solver spreads it, which is not calibrated against room fire tests.
- Doors, windows and ducts. Walls and slabs do not burn. Doors are open and windows closed unless the Doors switch beside the fire controls or Windows in the Flamescapes settings say otherwise; a closed door or window has no gaps. Ventilation: running joins the model's air terminals through one well-mixed duct volume at an assumed 100 L/s a terminal, without reading which system each belongs to or the ducts themselves, so it shows the furthest the ducts could spread smoke.
- Contents, embers and pools. Room contents are a statistical fire load, and CO does not rise when the fire is short of air. Indoors at these cells embers seldom land hot enough to light anything: in a 120 s fire in the Duplex they lit none. A liquid pool (classes B and K) evaporates at most at its burning rate (Babrauskas 1983) and lights, but much of its vapour stays unburnt: a 1 m² heptane pool reached 0.3 MW after 30 s in a test room, against the 3.2 MW its burning rate allows.
- Large models and smoke. Large models are clipped to the area round the fire, and the grid's sides are open to outside air, so a clipped building is never fully closed. The flow is solved as incompressible: heated gas takes up no extra volume, so a closed room never pressurises and smoke may reach head height later than it would.
- Sprinkler timing. Against NIST's tests the estimate opens the first head at 0.8 to 1.3 of the measured time; it stays about a quarter late in a small closed room, where the coarse grid spreads the hot layer down the room. With the first item as its class's design fire, heads open at 30 to 320 kW in rooms of ordinary height; under a high or open ceiling, or with few heads in sight, the room's contents can catch first, and once they do the fire grows as the solver spreads it, faster than a design fire. A model without its suspended ceilings has none in the fire grid. A late opening delays the modelled suppression, so for tenability a late bias is conservative; for anything that starts on sprinkler flow, such as an alarm, it is not. An extinguisher attempt is judged but does not change the fire in the run.
- Temperature. In the graph models the temperature is an index, scaled to read 20 to 120 degrees C, not a temperature a sensor would measure. Doses computed from it rank routes under the model; the ISO 13571 limits do not carry over.
- Time in steps. Fire time is counted in steps; the forecast converts steps to seconds with a factor you set. Fire growth is not calibrated.
- Waiting. In the live simulation the evacuee waits while the fire grows, and each reroute starts from the original start. A route that has to pass through fire is drawn but reported as not safe.
- One part. A route stays within one part of the graph.
- Walking. Stairs are walked at level speed (reference tools use about half to nine tenths of it). The routes have no queues at doors, no slowing in smoke and no pre-movement time; the performance check adds pre-movement and queues at doors, but not stair flow or speed classes. These are the next modelling gaps; see wiki/HANDOFF.md.
- Assumed stairs and lifts. They are approximate: an assumed stair has no known width, and a lift ride counts as walking its rise, with no wait for the car.
- People leaving. An illustration of the walk out: everyone sets off within 10 s, smoke and pre-movement slow no one, every door is taken as 0.9 m wide, and no one helps or follows another. The performance check, not the animation, gives escape times.
- The slime mould. Agents, not people, one seed a run, and no time to quote. Its dead ends read IBC 2021's corridor limit, applied to rooms only as a reference, with values from summaries of the code still to be checked against its text. That its networks predict where people go is a hypothesis to test.
Needs Node.js 20.11 or later.
git clone https://github.com/libishm1/Topologic_Studio.git
cd Topologic_Studio/topologicpy-web-frontend
npm ci # also copies web-ifc's WASM and the fragments worker into public/
npm run dev # http://localhost:5173Everything in the browser column above works without the server; the status
bar shows "backend offline". To make the examples open pre-converted in
development too, run npm run prepare-examples once. This guide is served at
http://localhost:5173/docs/index.html.
Needs Python 3.12.
cd Topologic_Studio
python -m venv .venv-next
.venv-next/Scripts/python -m pip install -r topologicpy-web-backend/requirements-dev.txt # bin/python on macOS and Linux
cd topologicpy-web-backend
../.venv-next/Scripts/python -m uvicorn app.main:app --reload --port 8000Check it: http://localhost:8000/api/capabilities should report
"usable": true. API documentation is at http://localhost:8000/docs. If the
server is not on localhost:8000, copy topologicpy-web-frontend/.env.example
to .env and set VITE_API_BASE.
TopologicPy packaging. TopologicPy 0.9 moved its geometry kernel into a separate
topologic-corepackage. Installingtopologicpyalone imports fine and then fails at the first geometry call. Both are pinned inrequirements.txt(topologicpy==0.9.86, not 0.9.87, which removesGraph).
On Windows, studio.cmd at the repository root starts both in their own
windows (studio, studio stop, studio status, studio test), and
dev.ps1 does the same from PowerShell.
| What | Command | Where |
|---|---|---|
| Unit and property tests of the browser core (358 on 2026-11-08) | npm test |
topologicpy-web-frontend |
| Lint | npm run lint |
topologicpy-web-frontend |
| Production build (also converts the examples) | npm run build |
topologicpy-web-frontend |
| Server tests | ../.venv-next/Scripts/python -m pytest tests -q |
topologicpy-web-backend |
| The real app in Chrome, end to end | npm install, then npm run test:browser -- --ifc topologicpy-web-frontend/public/examples/duplex-apartment.ifc (add --mobile for a phone) |
repository root, with the app running |
| Speed, accuracy and robustness benchmark on 38 public models | node tools/benchmark.mjs |
see benchmark/README.md |
| Speed and sanity of all six fire models, Flamescapes timed per stage | node tools/fire-bench.mjs [model.ifc ...] (add --sprinklers for heads placed per room) |
repository root; results in benchmark/results/ |
| The Flamescapes solver on one IFC | node tools/flamescapes-check.mjs [model.ifc] [--embers] |
repository root |
| Sprinklers: each mode against the free fire, and activation against NIST's measured tests | node tools/sprinkler-check.mjs [model.ifc ...], node tools/sprinkler-validation.mjs |
repository root |
| Lean 4 proofs (38 modules, 1,569 theorems and lemmas) | lake build |
formal/fireegress |
| This README's screenshots | node tools/readme-shots.mjs |
repository root, with the app running |
The browser suite drives the installed Chrome (no browser download) through the whole workflow and fails on any console error, uncaught exception or failed request.
These notes hold the detail behind the sections above. The guide sets the same material out by topic.
The solver runs on the GPU through WebGPU where the browser offers it,
otherwise on one CPU core at 2.8 to 2.9 times real time for the Duplex (34 to
36 ms a step, tools/fire-bench.mjs), several times faster on a GPU. Plan
with the forecast plans on the same run, adding the CO dose of ISO 13571 to
the heat dose. Where it departs from the paper, and why, is under
Limits; the transcriptions of both papers, with the
changes stated, are in wiki/sources/papers/.
- On measured gas the link opens Vettori's 1998 heads at 0.81 to 1.18 of the measured time (median 1.00).
- On the fire grid (since 2026-11-08) the estimate opens all 71 measured
heads within twice the measured time. The first head per test opens at a
median 1.26 of the measured time in Vettori's 1998 room, 0.78 under his 2003
smooth ceiling, 1.11 under its beams, 0.99 in Bittern's rooms and 1.11 under
UL/NFPRF's high open ceiling. FDS, on grids of 0.07 to 0.2 m, gives 1.13,
0.73, 0.90, 1.06 and about 1.06 on the same tests (FDS Validation Guide,
sixth edition; the paired data in firemodels/out). The late bound now opens
46 of the 71 heads within twice the measured time
(
benchmark/results/2026-11-08-sprinkler-validation.json). - Before, the first head opened at 1.64 of the measured time in the 1998 room, none opened behind the 2003 beams, and 23 of 29 first heads opened within twice the measured time. One surface coefficient, 200 W/(m² K), the top of the Flamescapes paper's range and kept for the fuel so that a burning item lights its neighbours, took most of the ceiling jet's heat into the walls. Walls, slabs and ceilings now have their own, 10 W/(m² K): FDS's default convection in such rooms gives 4 to 14, and Cooper's ceiling correlation 7 to 13 two metres from a plume. The estimate also takes each head's own height over the fire and its distance from the head's position; on the grid these were up to a cell or more off, and in Vienna's garage the plume's column stopped under a low solid 0.6 m over the fire.
- Large rooms. The import dropped suspended ceilings (
IfcCoveringCEILING), so the fire grid had none and the fire's gas rose past the heads: in the NIBS Office's 610 m² open office to a ceiling 6.1 m over the fire, and no head opened in 120 s; in the Clinic, heads hung at the 4.57 m slab over 2.68 m ceilings and opened at 65 s against 4.5 MW. The ceilings are now in the fire grid and the heads hang from them; a thin element split between two cells now seals. In 14 growing fires in eight models (tools/activation-diagnose.mjs) the first head opened before Alpert's jet alone would open the nearest head on the run's own heat release, or at most 0.5 s after it, in 13 (the estimate measures from the first item's cell, the reference from the fire's point): the Office's open office at 26 s, the Clinic's waiting area at 22 s. In the FZK-Haus living room it opened 2.4 s after: that model has no ceiling at the heads' height, and the nearest head has no line of sight to the plume. - The fire's growth. With the solver's own burning every example reached about 500 kW within 15 s, where an ultra-fast t-squared fire takes 52 s, so heads opened at 250 to 600 kW. Since 2026-11-08 the first item grows as its class's design fire (see How the first item grows), and in 12 of 16 fires in eight models the first head opened at 33 to 319 kW, before the room's contents caught.
- What is left. In the 1998 room the estimate is still about a quarter late: the coarse grid spreads the hot layer down the room. Once the room's contents catch, the solver spreads the fire faster than a design fire, so under a high or open ceiling (the Clinic's mechanical room, a 3 m lobby with 7 of its 40 heads in sight) heads open at 0.45 to 1.6 MW.
- Scatter. The same Duplex fire with its room contents laid out three
ways released 137 to 272 MJ with no sprinklers; across the three, wetting
cut 60 to 79 %, the spray changed the heat by +20 to -55 % and the cap by
+11 to -38 % (
tools/sprinkler-seeds.mjs).
The table by data set, the causes and Evans's cap against his own data are in the guide; the diagnosis, the fix and its tests in wiki/research/sprinkler-activation-fix-2026-11-08.md, with the literature in wiki/research/sprinkler-activation-literature-2026-11-08.md; the first results R1 to R9, with the data sets and their licences, in wiki/research/sprinkler-validation-data-2026-11-07.md; and the build in wiki/research/fire-suppression-sprinklers-2026-11-07.md.
- Presets give the alarm and pre-movement times, the share of occupants who never respond and the floor area per occupant for offices, classrooms, apartments, hotels and assembly (PD 7974-6, ISO/TR 16738, the Australian FSVM data sheets, New Zealand's C/VM2 and IBC 2021 Table 1004.5).
- Detection. With a Flamescapes fire, detection is when the smoke reaches a smoke detector's optical density (0.097 per metre, C/VM2) at virtual detectors under the ceiling, 7 m from the fire or as far as its room allows.
- Queues. Occupants on every place walk to the nearest exit and queue at each door at 1.32 persons a second per metre of effective width (C/VM2 3.5.3), with the door widths from the IFC.
- Measured pre-movement. A measured spread (the Weibull fits of Lovreglio et al. 2019) is judged beside the design log-normal and drawn with it, without changing the verdict.
- Criterion. A base case, ASET at least twice RSET and at least 30 s over it (Singapore SFEG 2025, the Italian fire code), a sensitivity case at 1.2 times, or the 99th percentile alone.
- Report. Add fires on every storey plans two more fires a storey (one next to an exit, one farthest from the exits), and each check adds the sensitivity cases its plan allows (the exit nearest the fire blocked; the first detector failing).
- Proved in Lean (
Performance.lean,DoorQueue.lean,PreMovement.lean): a pass at the 99th percentile means at least 99 % of those who respond start in time, the factor on RSET is a margin of at least the factor less one times RSET, a pass on the conservative deadline map is a pass on the exact deadline, the door queues never pass more than a door's capacity and have cleared everyone by the time the check reads, a later start never leaves a door earlier, and the report passes only when every case of every fire does.
formal/fireegress/README.md lists each of the
38 modules, what it proves, what it leaves out, and where it shows in the
app. Every theorem depends only on Lean's standard axioms, with no sorry
(formal/fireegress/axioms-all-2026-11-08.txt). Among them: A* returns a
least-cost route (AStar.lean), the shielded learner's route is a safe and
earliest escape (SafeEscape.lean), the equations of Fire-X and Flamescapes
and the port's schemes (FireX.lean, Flamescapes.lean,
FlamescapesPort.lean), the sprinkler layout, link and Evans's cap
(Sprinklers.lean, Suppression.lean), the obstruction rules, extinguishers,
the second model's frame and wetting (Obstructions.lean,
Extinguishers.lean, Federation.lean, Wetting.lean), and the performance
check above. SprinklerActivation.lean backs the 2026-11-08 fix: in a cell
of gas over a wall, a lower wall coefficient leaves the gas at least as hot
at every step and never opens a head later; Alpert's excess never rises with
distance, across the switch between its branches too; and a head's distance
measured from its own position errs by at most half a cell's diagonal,
against a whole diagonal between cell centres. It also found that more heat
can open a head later when the estimate's speed rises with it (the faster
link cools faster once the gas falls), so that claim holds only at a fixed
speed. The proofs also found errors, in the review and in the code's own
comments, which the README there lists.
| Method | Path | Purpose |
|---|---|---|
POST |
/api/ifc/graph/import |
Store a graph built in the browser |
POST |
/api/ifc/graph |
Build a graph from a sampled point cloud |
GET, DELETE |
/api/ifc/graph/{id} |
Fetch or drop a stored graph |
GET |
/api/graphs |
Store contents |
POST |
/api/ifc/path |
Route, optionally heat-weighted, on either engine |
POST |
/api/ifc/path/compare |
Run both engines and report whether they agree |
POST |
/api/ifc/path/alternatives |
Up to k routes: through different space, or Yen k-shortest |
POST |
/api/ifc/navigation-check |
Upload an IFC; compare TopologicPy's Navigation graph with Studio's |
POST |
/api/fire/timeline, GET /api/fire/stream |
Server-side fire runs (the app runs fire in the browser) |
POST |
/api/rl/train |
Server-side Q-learning |
GET |
/health, /api/capabilities |
Status and what this server can do |
The original version's routes (/ifc-egress-graph, /ifc-egress-path,
/graph-meta, /upload-topology, /upload-ifc) are still served with their
original shapes.
Topologic_Studio/
├── topologicpy-web-frontend/ the app (React + Vite, That Open engine, web-ifc)
│ ├── src/core/ routing, graph, fire, sprinklers, checks, forecast, RL, IFC semantics, with their tests
│ ├── src/workers/ import, graph, forecast and RL workers
│ ├── src/viewer/ the 3D viewer
│ ├── src/ui/ the panels, viewport and Methods page
│ ├── public/examples/ the nine example IFCs and their credits (index.json)
│ ├── public/docs/ the guide on the website
│ └── scripts/ asset sync and the build-time example conversion
├── topologicpy-web-backend/ the optional FastAPI + TopologicPy server
├── tools/ browser suite, benchmarks, model and sprinkler checks, screenshot script
├── benchmark/ the benchmark's model list, validation data and results
├── formal/fireegress/ Lean 4 proofs of the routing, fire and suppression models
├── wiki/ handoff, research notes, roadmap and reviews
├── docs/ images for this README and the original version's README
└── render.yaml the server's Render blueprint
- Website. Every push to
mainruns.github/workflows/deploy-frontend.yml, which builds the app withBASE_PATH=/Topologic_Studio/and the server address from the repository variableVITE_API_BASE(default: the Render service), and publishes it to GitHub Pages. The guide inpublic/docs/is published with it. - Server. The Render service
topologicstudio-backendruns the Docker image intopologicpy-web-backend/as described inrender.yaml. Redeploy it from the Render dashboard after server changes..github/workflows/backend-image.ymlbuilds the image and runs the server tests inside it on pushes tomainand the development branches. - Development happens on the
next/browser-corebranch;mainis moved to it only after the tests, lint, build and both browser suites pass. The version that ran before 2026-10-27 is taggedclassic-2026-10-27.
- The guide on the website: the features, the fire and suppression models, the checks and the methods, page by page.
- wiki/HANDOFF.md: the current state, the latest changes and the open work.
- benchmark/README.md: speed and accuracy on 38 public models, against an exact geodesic, with a stress suite of known bugs.
- formal/fireegress/README.md: what has been proved in Lean 4 and where each proof shows in the app.
- wiki/research/: the fire-egress methods review, the verified equations, the gap analysis, a study of open-source evacuation tools, and the sprinkler, extinguisher and performance-check notes.
- docs/README-classic.md: the original version, its image series and its deployment guide.
- TopologicPy (LGPL-3.0-or-later) by Wassim Jabi and contributors, for the server's graph engine and Navigation graph. The approach follows Jabi et al. (2019), The synergy of non-manifold topology and reinforcement learning for fire egress (doi:10.5151/proceedings-ecaadesigradi2019_671).
- That Open Engine (
@thatopen/components,@thatopen/fragments, MIT) for the viewer and fragments, and web-ifc (MPL-2.0) for reading IFC. three.js, React and KaTeX (all MIT). - Flamescapes: Simulating the Wildlandfire Urban Interface (Wrede, Wagner, Pałubicki, Michels, Pirk 2026; ACM Transactions on Graphics 45(6) 246; project page; its DOI 10.1145/3842518 was not yet registered on 2026-11-05) and Fire-X: Extinguishing Fire with Stoichiometric Heat Release (Wrede et al. 2025; doi:10.1145/3763338), both CC BY 4.0, for the optional fire solver. Their transcriptions, with the changes stated, are in wiki/sources/papers/. No code from them is used: their repositories hold project pages, and the solver here is written from the papers.
- IFCNet: A Benchmark Dataset for IFC Entity Classification (Emunds,
Pauen, Richter, Frisch, van Treeck; EG-ICE 2021;
doi:10.48550/arXiv.2106.09712).
Its code is MIT
(RWTH-E3D/ifcnet-models). Its
DGCNN weights, published by the authors at ifcnet.e3d.rwth-aachen.de with
no stated licence, are shipped converted and pruned in
public/models/, with credit (NOTICE), and will be removed if the authors ask. onnxruntime-web (MIT) runs it, loaded from jsDelivr when first used. - The fire classes' values: the sources listed in fireClasses.js, among them NFPA 10, ISO 3941:2026 and peer-reviewed calorimetry and cooktop studies.
- The sprinkler validation data: NIST reports (Vettori 1998, NISTIR 6253;
Vettori 2003, NISTIR 7079; UL/NFPRF 1998, NISTIR 6196-1; Evans 1993,
NISTIR 5254), US Government works, and the digitised measurements and
validation inputs of NIST's firemodels repositories, kept with NIST's
notice in
benchmark/validation/sprinkler-tests.json. The Bittern (2004) values come from the FDS Validation Guide. - The example buildings are credited in the table above and in
topologicpy-web-frontend/public/examples/index.json. - The full source list for the methods is on the app's Methods page.
Project licence: see the original version's licence section.





















