Example
2. Consider the heat equation
where
. The
length of the rod is
. Assume
that the ends of the rod are held at the
temperature
. Assume
that the initial temperature distribution is
.
Now investigate what happens when the step size is too
large. This time the t interval is
larger [0.0, 0.35], and the step size is "too
large."
Apply the forward difference method with
and obtain
temperature distributions for
.
We will use
. This forces
.
Solution 2.
Now set up the table of solutions.
Next, solve it.
![[Graphics:../Images/CrankNicolsonMod_gr_55.gif]](../Images/CrankNicolsonMod_gr_55.gif)
To see the numerical values enter the command:
![[Graphics:../Images/CrankNicolsonMod_gr_67.gif]](../Images/CrankNicolsonMod_gr_67.gif)
(c) John H. Mathews 2004