Jump to main content

Predicting How Urban Wildfires Will Spread

Abstract

Urban wildfires can cause devastating loss of life and property. Can we save lives by predicting how and where these fires will spread? What protective measures can we take to save buildings from the fires? In this project you will use a computer model to simulate how wildfires spread in populated areas, and experiment with different protective measures to try and save houses from burning. 

Summary

Areas of Science
Difficulty
Method
Time Required
Short (2-5 days)
Prerequisites

None

Material Availability

Readily available

Cost
Very Low (under $20)
Safety

No issues

Credits
Science Buddies is committed to creating content authored by scientists and educators. Learn more about our process and how we use AI.

Objective

Simulate how vegetation buffers can help protect houses during urban wildfires. 

Introduction

How can we predict how a wildfire will spread? Computer simulations, also called models, can help predict real-world wildfire behavior. One basic model of how wildfires behave is called the Drossel-Schwabl model. The model consists of a square grid. Initially, each square in the grid consists of either a tree (which can burn) or a patch of bare ground (which cannot). A random lightning strike will start a fire, which can then spread to any tree directly above, below, to the left, or to the right of the square that is on fire (fires do not spread diagonally).

Figure 1 shows a simulation of a single fire using the Drossel-Schwabl model. Normally, the model is used to simulate continuous forest regrowth and ongoing fires. The model's behavior will depend on both the probability of tree growth and the probability of lightning strikes. See the link in the Bibliography for a simulation where you can adjust both of those parameters.

Figure 1. Screenshot of Drossel-Schwabl model wildfire simulation. Green squares represent live trees, black squares represent burnt trees, and orange squares represent the current fire front.

The basic Drossel-Schwabl model does not account for houses, roads, buildings, or other things that are present during wildland-urban interface (WUI) fires (Figure 2). All of these things can affect how a fire spreads. For example, a road may act as a fire block, preventing fire from spreading from tree to tree by direct flame contact, but high winds or falling trees could still cause the fire to jump across the road. Similarly, houses may be ignited by drifting embers even if they are not directly adjacent to a burning tree. 

Figure 2. Modified Drossel-Schwabl simulation with roads (gray lines) and houses (blue squares = still standing, dark red squares = burned).

In large wild forests, firefighters can use small controlled burns to intentionally use up fuel for fires. This forest management approach can help prevent larger, catastrophic wildfires. However, using controlled burns can be difficult in populated areas due to the amount of smoke they generate, among other reasons. Instead, a variety of management and mitigation techniques are used to reduce the risk to structures. This can include creating a buffer zone around a building by clearing highly flammable vegetation, removing ladder fuels that allow fires to climb up into tree canopies, creating larger fuel breaks in certain areas (like along roads), and using fire-resistant building materials that are less likely to ignite from drifting embers.

In this science project, you will use a simulation that allows you to adjust the size of the buffer zone around houses. Figure 2 has no buffer zone at all (note how some of the houses are directly up against the trees). You can adjust the size of the buffer zone, run the simulation, and see how many houses burn across multiple trials (the fire will start in a random location each time). How many houses can increasing the buffer zone save? Try it and find out!

Terms and Concepts

Questions

Bibliography

Materials and Equipment

Experimental Procedure

This project follows the Scientific Method. Review the steps before you begin.

Setting Up The Code

  1. Download wildfire-model-with-houses-and-roads.ipynb.
  2. Upload the file to your Google Drive. If you do not already have a Google account, make one when prompted. 
  3. Double-click the file in Google Drive. It should automatically open in Google Colab. Google Colab is an environment that lets you run Python code online, without needing to install anything on your computer. 
  4. Read the "Parameters" section of the code. The comments explain what each variable does. 
  5. Do not worry if you do not understand the rest of the code, but optionally, you can read through it. 

Running the Simulation

  1. Click "Connect" in the top right corner of the Colab window.
  2. Click "Run all" in the top menu. Wait for the code to run. You will see a small spinning wheel toward the top left of the code window while the code is still running. 
  3. Scroll to the bottom of the code window. You should see an image like Figure 3. It shows a map of the fire, including burned/remaining trees and houses, a graph of the fire size over time, and statistics about the fire.
  4. Below the figure is an animation that will show how the fire developed. Click the play button to watch the animation.
  5. You can keep the default parameters for your experiment, but if you want, you can change them before collecting data (bigger grid, more roads or houses, etc). 
Figure 3. Screenshot of wildfire simulation.

Collecting Data

  1. Make a data table like Table 1.
Swipe left to see more
Table 1. Data table for recording the number of burned houses.
Vegetation buffer size Trial 1 Trial 2 Trial 3 Trial 4 Trial 5 Average
0
1
2
3
4
  1. Make sure the VEG_BUFFER variable is set to zero.
  2. Run the simulation.
  3. Record the number of burned houses in the column for your first trial.
  4. Re-run the simulation (just click "Run all" again) at least four more times with the same vegetation buffer size. You can do more trials if you wish. 
  5. Increase the VEG_BUFFER variable to 1 and run at least five more trials. 
  6. Keep increasing the VEG_BUFFER variable and running more trials. Do you reach a point where no houses burn at all? If so, how does the value of the VEG_BUFFER variable compare to the value of the EMBER_RADIUS variable when this happens?
  7. Calculate the average number of houses burned for each value of the VEG_BUFFER variable.
  8. Make a graph showing houses burned vs. vegetation buffer size.
    1. How does the number of houses burned change as the buffer size increases?
    2. What implications does this have for real-world urban fire management?
    3. What other tradeoffs could there be for increasing the size of buffer zones? For example, could this cause habitat loss for certain species of plants or animals?
  9. There are many other things you can change in the code. See the Variations section for some ideas. 
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Global Goals

The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.

This project explores topics key to Sustainable Cities and Communities: Make cities inclusive, safe, resilient and sustainable.
This project explores topics key to Climate Action: Take urgent action to combat climate change and its impacts.

Variations

  • Change the EMBER_PROB variable to adjust the probability that a house will catch fire from a drifting ember. Decreasing this value simulates more fire-resistant building materials that are less likely to catch fire. How does it change the results of your simulation?
  • Increase the EMBER_RADIUS variable to simulate higher winds that can make embers drift farther. How does this change your results?
  • Change the RANDOM_SEED variable to generate a different map. 
  • There are many other parameters you can adjust in the model, such as the tree density, number of roads, probability that fire will jump a road, etc. Experiment with different parameters and see how they change your simulation results. 
  • For advanced students, try to edit the code to add more things to the simulation. Here are a few ideas:
    • Larger buildings
    • Organized subdivisions of houses instead of houses that are placed randomly
    • Roads of different widths, like wider highways
    • Curved roads
    • Rivers or lakes
    • Weather events like directional wind or rain

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
Have you ever noticed that for people with asthma it can sometimes be especially hard to breathe in the middle of a busy city? One reason for this is the exhaust from vehicles. Cars, buses, and motorcycles add pollution to our air, which affects our health. But can pollution impact more than our health? Cutting down trees, or deforestation, can contribute to erosion, which carries off valuable topsoil. But can erosion alter more than the condition of the soil? How does an oil spill harm fish… Read more
Career Profile
Environmental engineers plan projects around their city or state—like municipal water systems, landfills, recycling centers, or sanitation facilities—that are essential to the health of the people who live there. Environmental engineers also work to minimize the impact of human developments, like new roads or dams, on environments and habitats, and they strive to improve the quality of our air, land, and water. Read more

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Finio, Ben. "Predicting How Urban Wildfires Will Spread." Science Buddies, 7 July 2026, https://www.sciencebuddies.org/science-fair-projects/project-ideas/EnvSci_p084/environmental-science/wildland-urban-fire-management. Accessed 7 July 2026.

APA Style

Finio, B. (2026, July 7). Predicting How Urban Wildfires Will Spread. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/EnvSci_p084/environmental-science/wildland-urban-fire-management


Last edit date: 2026-07-07
Top
Free science fair projects.