FOREST_FIRE_SIMULATION
An X Window Forest Fire Simulation


FOREST_FIRE_SIMULATION is a C program which simulates forest fires, by Michael Creutz.

The program simulates a forest in which fires and regrowth occur, using X Windows to display the current status of the forest.

FOREST_FIRE_SIMULATION models forest fires. On each site of a lattice is either nothing, a tree, or a fire. In one time step a fire spreads to adjacent trees and leaves an empty space. Trees are born in a random manner with a probability of approximately 1/32 per time step. If no fires are active, one is started at a random location. Fires can also be started with the mouse button.

An Amiga version of this program was published in the December 1993 issue of "JUMPDISK".

Languages:

FOREST_FIRE_SIMULATION is available in a C version.

Related Data and Programs:

BROWNIAN_MOTION_SIMULATION, a C library which simulates Brownian motion in an M-dimensional region.

DUEL_SIMULATION, a C program which simulates N repetitions of a duel between two players, each of whom has a known firing accuracy.

FAIR_DICE_SIMULATION, a C program which simulates N tosses of 2 dice, making a histogram of the results.

HIGH_CARD_SIMULATION, a C program which simulates a situation in which you see the cards in a deck one by one, and must select the one you think is the highest and stop; the program uses GNUPLOT for graphics.

ISING_2D_SIMULATION, a C program which carries out a Monte Carlo simulation of an Ising model. a 2D array of positive and negative charges, each of which is likely to "flip" to be in agreement with neighbors.

MANDELBROT, a C program which generates an ASCII PPM image of the Mandelbrot set;

POISSON_SIMULATION, a C library which simulates a Poisson process in which events randomly occur with an average waiting time of Lambda.

REACTOR_SIMULATION, a C program which a simple Monte Carlo simulation of the shielding effect of a slab of a certain thickness in front of a neutron source. This program was provided as an example with the book "Numerical Methods and Software."

SNAKES_AND_LADDERS, C programs which simulate the game of Snakes and Ladders.

STRING_SIMULATION, a C program which simulates the behavior of a vibrating string.

THREE_BODY_SIMULATION, a C program which simulates the behavior of three planets, constrained to lie in a plane, and moving under the influence of gravity, by Walter Gander and Jiri Hrebicek.

XBOIDS, a C program which simulates the behavior of a flying flock of animals, displaying the results using X Windows, by Conrad Parker.

XISING, a C program which simulates the variation in ferromagnetism in a material, displaying the results using X Windows.

XWAVES, a C program which simulates the behavior of solution of certain forms of the wave equation, displaying the results using X Windows.

X_WINDOW, C++ examples which demonstrate some simple uses of the X Window library.

X_WINDOW_DISPLAY, a discussion of the issues involved when an X Window program on a remote machine needs to know how to get graphics information back to your local display.

Author:

Michael Creutz

Source code:

You can go up one level to the C source codes.


Last revised on 23 March 2008.