You are on page 1of 1

Heat diffusion in a wire

1. Using the Octave code heat.m duplicate Figures reported in the lecture.
2. In heat.m let maxk = 120 so that dt = 150/120 = 1.25. Experiment
with the space step sizes dx = .2, .1, .05 and n = 5, 10, 20, respectively.
3. In heat.m let n = 10 so that dx = .1. Experiment with time step sizes
dt = 5, 2.5, 1.25 and maxk = 30, 60 and 120, respectively.
4. In heat.m experiment with different values of the thermal conductivity
cond = .002, .001 and .0005. Be sure to adjust the time step so that the stability
condition holds.
5. Consider the variation on the thin wire where heat is lost through the surface
of the wire. Modify heat.m and experiment with the C and r parameters.
Explain your computed results.
6. Consider the variation on the thin wire where heat is generated by f =
1 + sin(π10t). Modify heat.m and experiment with the parameters.
7. Consider the 3×3 A matrix for (1.2.1). Compute Ak for k = 10, 100, 1000
for different values of alpha so that the stability condition either does or does
not hold.
8. Suppose n = 5 so that there are 4 unknowns. Find the 4 × 4 matrix
version of the finite difference model. Repeat the previous problem for
the corresponding 4 × 4 matrix.
9. Consider a variation of the Steady State Theorem where the column
vector b depends on time, that is, b is replaced by bk. Formulate and prove a
generalization of this theorem.

Diffussion in a wire with little isolation

1.Duplicate the computations performed during the lecture with variable insulation co
efficient. Furthermore, use csur = .0002 and .0010.
2. In heat1d.m experiment with different surrounding temperatures usur =
−5, −10, −20.
3. Suppose the surrounding temperature starts at -10 and increases by one
degree every ten units of time.
(a). Modify the finite difference model (1.3.3) is account for this.
(b). Modify the Octave code heat1d.m. How does this change the
long run solution?
4. Vary the r = .01, .02, .05 and .10. Explain your computed results. Is this
model realistic for "large" r?
5. Verify equation (1.3.3) by using equation (1.3.2).
6. Consider the 3 × 3 A matrix version of line (1.3.3) and the example of
the stability condition on the time step. Observe Ak for k = 10, 100 and 1000
with different values of the time step so that the stability condition either does
or does not hold.
7. Consider the finite difference model with n = 5 so that there are four
Unknowns

a). Find 4 × 4 matrix version of (1.3.3).


(b). Repeat problem 6 with this 4 × 4 matrix
8. Experiment with variable space steps h = dx = L/n by letting n =
5, 10, 20 and 40.
steps so that the stability condition holds.
9. Experiment with variable time steps dt = T /maxk by letting maxk =
100, 200 and 400 with n = 10 and T = 400.
10. Examine the graphical output from the experiments in exercises 8 and
9. What happens to the numerical solutions as the time and space step sizes
decrease?
11. Suppose the thermal conductivity is a linear function of the temperature,
say, K = cond = .001 + .02u where u is the temperature.
(a). Modify the finite difference model in (1.3.3).
(b). Modify the Octave code heat1d.m to accommodate this variation.
Compare the numerical solution with those given in Figure 1.3.1.

You might also like