Heat Flow, II -- TI-92

For this module you will need the following TI-92 programs. As usual you can obtain these programs by transferring them via the linking cable from another TI-92, from this computer using the TI-Graph Link92 program and cable or, as a last resort, by typing them in. Click here to skip ahead if you have the programs.

onestep

Missing TI-92 program listing Click Here for TI-Graph Link Click Here for TI-Graph Link

There have been numerous problems downloading programs for TI graphing calculators using the method above. If that method works, it is very clean. Sometimes, however, it doesn't work. In that case we can fall back on an older method, uuencoding, that is less user-friendly but more reliable. Click here for more information about this method. Then click here for a uuencoded (text file).

ndsolve

Missing TI-92 program listing Click Here for TI-Graph Link Click Here for TI-Graph Link

There have been numerous problems downloading programs for TI graphing calculators using the method above. If that method works, it is very clean. Sometimes, however, it doesn't work. In that case we can fall back on an older method, uuencoding, that is less user-friendly but more reliable. Click here for more information about this method. Then click here for a uuencoded (text file).

foobar

Missing TI-92 program listing Click Here for TI-Graph Link Click Here for TI-Graph Link

There have been numerous problems downloading programs for TI graphing calculators using the method above. If that method works, it is very clean. Sometimes, however, it doesn't work. In that case we can fall back on an older method, uuencoding, that is less user-friendly but more reliable. Click here for more information about this method. Then click here for a uuencoded (text file).

These programs will enable you to find numerical estimates for solutions to systems of differential equations like the ones in this module. We use them to approximate the solution of the following system.

B1' = 0.25 * (E - 2 * B1 + B2)
B2' = 0.25 * (B1 - 2 * B2 + B3)
B3' = 0.25 * (B2 - 2 * B3 + B4)
I' = 0.25 * (B3 - I)

B1(0) = 1
B2(0) = 2
B3(0) = 3
I(0) = 4

In this system E(t) is the exterior temperature and will be given by the function

E(t) = sin (pi t / 12)

The functions Bj(t) represent the temperatures of the three bricks and the function I(t) represents the interior temperature within an adobe house.

Our first step is to define the exterior temperature as shown in the TI-92 screen below.

Missing TI-92 screen

The programs we are using are fairly powerful and enable us to use fairly big steps with reasonable accuracy. The variable h will be used for the step size. We will use h = 0.50 hours. We will look at a solution over a period of two days or 48 hours. Since each step will be 0.50 hours we need 96 steps.

Missing TI-92 screen

The last line in the screen above specifies the initial conditions and the number of steps. Notice the syntax -- the number of steps is given first and followed by the initial conditions written as a vector. The program ndsolve determines the number of differential equations by looking at the length of this vector. This line will take some time to evaluate. It will save its results in the variable solution which will be used later to draw a graph.

The differential equations are specified in the function foobar that you have already loaded into your TI-92. You will need to change this function to work with other systems of differential equations. The function foobar is shown in the screen below using the Program Editor.

Missing TI-92 screen

This program defines five differential equations that describe the derivatives of the variables t, brick1, brick2, brick3 and interior. You may want to look at the TI-92 CAS window for the previous module.

After the program ndsolve in the second TI-92 screen above has finally completed its job you can graph the results as follows. First, use the SEQUENCE graph mode and make sure that the AXES are set to TIME.

Then set up the Y= screen as shown in the TI-92 screens below.

Missing TI-92 screen

Missing TI-92 screen

and the WINDOW screen as shown in the TI-92 screen below.

Missing TI-92 screen

Now, press GRAPH to see the following graph.

Missing TI-92 screen

This graph shows what happens after 2 days. We need to continue the simulation longer to see what happens over the long term. The following screen shows how to simulate another 2 days. This screen continues calculating using the end result from the previous calculations.

Missing TI-92 screen

The graph below shows the results. Important: You must go to the Y= screen and re-enter the initial conditions in the form

ui2 = solution[1, 2]

You will also want to change the WINDOW screen.

Missing TI-92 screen

The following graph shows the results after an additional two days.

Missing TI-92 screen

Notice that the graph of the interior temperature (the one with the smallest amplitude) is roughly 12 hours (one-half period) behind the graph of the exterior temperature (the one with the largest amplitude).


Copyright c 1996 by Frank Wattenberg, Department of Mathematics, Montana State University, Bozeman, MT 59717.