Assignment 1: Parabolic PDE's: 1. 1D Heat Conduction
Assignment 1: Parabolic PDE's: 1. 1D Heat Conduction
1. 1D Heat conduction
Write A computer code to determine the coefficients for the first order-derivative The heat
equation (1) governs the time-dependent temperature distribution in a homogeneous constant
property solid under conditions where the temperature varies only in one space dimension.
∂T ∂2 T
=ν 2 (1)
∂t ∂x
Consider a large wall of thickness L whose initial temperature is given by T (t, x) = c sin (πx/L)
If the faces of the wall continue to be held at 0◦ , then a solution for the temperature at t > 0,
0 ≤ x ≤ L is
−απ2 t
! πx
T x) = c exp
(t, sin (2)
L2 L
For this problem, let c = 100◦C, L = 1m, α = 0.02m2 /h. We will consider two methods of
solution:
(A) FTCS explicit method
(B) Crank-Nicolson implicit method
1.1. Part I:
- Classifiy the type of error for both methods by deriving and examining the modified equa-
tion.
1.2. Part II:
- Write a computer code to solve the problem described previously by methods A and B.
Make at least the following comparisons:
1. For ∆x = 0.1, ∆t = 0.1, compare the results from methods A and B and the exact solution
for t = 10h.
2. Repeat the aforementioned comparison after refining the space grid, that is, let ∆x = 0.01
(10 increments). Is the reduction in error as suggested by O[(∆x)2 ]? use L2 norm to show
this
3. For ∆x = 0.1, choose ∆t such that α∆t/(∆x)2 = 0.5 and compare the predictions of
methods A and B and the exact solution for t = 10h.
4. Demonstrate that method A does become unstable as α∆t/(∆x)2 exceeds 0.5. One sug-
gestion is to plot the centerline temperature versus time for α∆t/(∆x)2 ≈ 0.6 for 10 − 20h
of problem time.
5. For ∆x = 0.1, choose ∆t such that α∆t/(∆x)2 = 0.6 and compare the results of method B
and the exact solution for t ≈ 10h.
6. Increment α∆t/(∆x)2 to 2, then 3, etc., and repeat comparison (5) until the agreement
with the exact solution becomes noticeably poor.
7. Replace the second order discretization in FTCS with a fourth-order accurate discretiza-
tion.
8. Derive the stability condition
9. Repeat the above analysis (1 through 4) for The FTCS with the fourth-order accurate
discretization of the second order derivative.
Note:
• Comparison should be qualitative as well as quantitative
• Thorough analysis and discussion is expected.
• The format of the report should resemble the style of scientific papers.