Forest Fire Agent Model

(Description at the bottom)

Key:
Firefighter
Fire
Time steps elapsed:
Frames per second:
Number of rows:
Number of columns:
Cell width (pixels):
Cell height (pixels):
Initial number of Firefighters:
Initial number of Fire Agents:
Amount of tree to regrow per cell per time step:

Model Description

Initial State

In a rectangular world, there are cells and two types of agents: firefighters and fire. Initially, and each time the model is reset, the world is created by filling each cell with the maximum amount of tree. A certain number of firefighters and fire are randomly placed in the cells At no point during the simulation can two agents occupy the same cell. The state of the model is initially drawn on the screen.

Description

During each time step of the simulation,

  1. Each cell regrows a tree in the cell.
  2. Each firefighter, moves around randomly in the forest and if it's next to a burning tree then it puts out the fire, and the tree can regrow.
  3. Each surviving fire, has a certain percent chance to kill trees from the cell it occupies;
  4. Burning trees become burnt trees after a certain amount of timesteps.
  5. Burnt trees disappear after a certain number of timesteps.
  6. All agents move randomly to one of their empty, nearest-neighboring cells;
  7. The current state of the model is drawn on the screen.

Final State

The simulation runs indefinitely, until the stop button is clicked.

© Shodor 2017