A C Solution

We now know enough about simulating the heat flow problem and enough about arrays in C to sketch the implementation of a program that can simulate heat flow. You will be fleshing out this program as your homework for this lesson.

Our program will conduct the simulation by dividing the rod, which is assumed to have a length of 2, into up to 20 segments. It will:

When the program finishes running, then, we will have a record of how the temperature of the rod varies with time.


Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah