DEV Community

Hidenori Ishii
Hidenori Ishii

Posted on Edited on

When a Window Breaks in Unity, What Should the Fire Model See?

“Could you recreate a fire that actually happened?”

A judge asked me that during my pitch at the second Makers Colosseum in Japan. My answer at the time was that I didn't have the data. Then I found a public report that tracked a fire through a full-scale, three-story school building. The researchers recorded when the windows broke, where smoke entered, and how the fire reached each floor.

I'm developing BLAZE, a series of firefighting games in SOKYU: OPERATION RESCUE. One scenario takes place in a reinforced-concrete school. I want the player to see the glass crack under heat and pieces fall out of the frame. Unity can show both events. The engineering question is what to pass to CFAST, the two-zone fire model behind the simulation.

My proposed input is the area of the opening left by the missing glass. One detail in the school experiment helped me arrive at that choice. Smoke entered an upstairs classroom through a broken window. The fire reached that same classroom through the floor.

BLAZE project website (Japanese)

Table of contents

How smoke and fire reached the upstairs classroom

In 2012, researchers in Gero, Japan, conducted a full-scale fire experiment in a three-story timber school building. They started the fire in the ground-floor staff room. Burning remained localized, so 50 minutes after the first ignition, the researchers ignited combustible contents again. That gives the report two clocks.

The table follows the event log from Japan's Ministry of Land, Infrastructure, Transport and Tourism (MLIT). It uses the report's floor numbering, with the ground floor counted as floor 1.

Minutes after first ignition Minutes after re-ignition Observation
0 — The researchers ignited the fire in the first-floor staff room.
50 0 The researchers re-ignited combustible contents in the room.
61 11 Window glass broke in the staff room.
87 37 Flames emerged from a staff-room window.
89 39 Flashover occurred in the staff room. The localized fire spread rapidly throughout the room.
97 47 A second-floor classroom window broke and smoke entered from outside.
129 79 The fire spread from below into the classroom through a burn-through in the second-floor assembly.
139 89 The fire reached the third floor through an exterior opening.

At minute 97, the second-floor classroom already contained smoke. If my game used smoke entry as the trigger to ignite objects in that room, it would get both the timing and the route wrong. The recorded spread into that classroom came 32 minutes later, through the floor. On the third floor, the exterior opening was the route of fire spread. A room in the simulation needs to be able to receive smoke before anything in it ignites.

One detail matters when comparing timestamps. MLIT records fire spread to the second floor at 79 minutes after re-ignition. Japan's Building Research Institute gives 80 minutes in its summary. Both describe this particular timber test building. The reinforced-concrete school in BLAZE has a different floor assembly.

What changed when the ceiling finish changed

The Building Research Institute also reports a separate series of classroom-scale tests. Two cases used wood wall finishes and a 300 kW fire source.

Wall finish Ceiling finish Fire source Flashover during the test
Wood Wood 300 kW Observed after about 5 minutes
Wood Noncombustible material 300 kW None observed

The report also discusses fire-source size and compares room sizes with earlier tests. In the full-scale school experiment, the fire did not spread from the staff room into the stairwell or into the room across the fire wall. The institute reported that fire walls, fire doors, balconies, and overhangs helped limit fire spread under the conditions tested.

In BLAZE, the fire model currently treats the school's walls, floors, and ceilings uniformly as concrete. I can give a ceiling a wood texture in Unity and get exactly the same fire calculation. The classroom tests give me a reason to model the exposed finish separately from the structure. Longer term, I also want to account for room volume and for the desks, shelves, and other combustible items in the room, including where they are placed.

Mapping a broken pane to a ventilation opening

BLAZE school scenario, reference image 1

BLAZE school scenario, reference image 2

BLAZE school scenario, reference image 3

For the first implementation, I want the renderer and the fire model to respond to the same change in the pane. Here is the proposed mapping.

Pane state What Unity renders What the CFAST integration receives
Intact The pane in its frame The initial opening area
Cracked, with all pieces still in the frame Cracks across the glass The same opening area
Part of the pane has fallen out A gap in the pane and falling fragments An increase in opening area equal to the area of the gap

Why pass that change through to the model? NIST describes how a fire can weaken as the available oxygen falls. In a ventilation-limited fire, fresh air entering through a new opening can allow the fire to grow rapidly. Whether that happens depends on the state of the room. In BLAZE, I want the opening to change the ventilation calculation, then use the resulting conditions to drive what the player sees.

One input is still missing. The school reports give the time at which glass broke, but I couldn't find an incident heat-flux threshold in them that I could use to trigger glass failure. Minute 61 is an observation from one experiment. It gives me an event to compare against, but it doesn't tell me when a different pane in a different building will fail.

The first comparison I want to run

I'd start with two runs using the same classroom, fire source, and door position. In one, the cracked glass stays in the frame. In the other, a section falls out. I'd plot four quantities on the same time axis:

  • Window opening area
  • Flow through the window, including incoming air and outgoing smoke
  • Oxygen concentration in the room
  • Heat release rate

The first check is simple. A visible crack alone should leave the modeled opening area unchanged. When a piece falls out, I want to see the area change at the same time as the visible gap appears. The flow, oxygen, and heat-release histories can then show what that opening did to the fire in this particular run.

After that, I'd look at doors and interior windows facing the corridor. How does closing a classroom door change smoke entry and the heat reaching combustible objects next door? A later step would follow flames emerging from an exterior window and the heat reaching windows and contents on the floor above.

So far, this is a design based on published experiments. The window coupling and the two-run comparison are still ahead. If that judge asked me the same question today, I'd point to this report. A public experiment gives me specific events and paths to test. For BLAZE, the first test starts with one classroom window.
Thermal glass breakage

Sources

Top comments (0)