




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Math 4820
Due: Monday, 4/19/
where k > 0 is a constant thermal diffusivity.
(a) Consider the finite-difference approximation
Lhvnj =
∆t δ+tvnj −
k ∆x^2
[ θδ^2 xv jn +1+ (1 − θ)δ^2 xvnj
] = 0,
where θ ∈ [0, 1] is a parameter. Show that Lhvnj = 0 is a consistent approximation of the heat equation Lu = 0 for any choice of θ. Find a value of θ such that the approximation is second-order accurate in both space and time.
(b) Consider the finite-difference approximation
Lhvnj =
2∆t
δ 0 tvjn − k ∆x^2
[ vnj− 1 − (vn j −^1 + v jn +1) + vjn+
] = 0.
Find the order of accuracy of the approximation assuming that k∆t/∆x^2 = constant (in- dependent of ∆t and ∆x).
vn j +1= vnj + ν 3
[ δ^2 xvn j +1+ 2δ^2 xvnj
] , ν = k∆t ∆x^2
Consider Fourier modes of the form vjn = aneiαxj^ , where a is an amplitude factor, α is a wave number, and xj = j∆x, to determine a constraint on the parameter ν such that the approximation is stable, i.e. |a| ≤ 1.
ut = k
( urr +
r ur
)
with initial and boundary conditions taken to be
u(r, 0) = f (r), ur(0, t) = 0, ur(1, t) + αu(1, t) = β
Here, r is radial distance from the center of the disk and t is time as before.
(a) The steady state solution is the long-time solution of the differential equation with ut set to zero and satisfying the boundary conditions. Find the steady state solution for the case k = α = β = 1 and Q(r) = r^2 − 1. (Hint: recall one of the problems in Problem Set 7.)
(b) Write a code to solve the initial-boundary-value problem using the finite-difference approximation
vn j +1= vjn + k∆t
( 1 ∆r^2 δ^2 r vnj +
2 rj ∆r δ 0 rvnj
)
where rj = j∆r, ∆r = 1/N , and v^0 j = f (rj ), and with suitable approximations at the boundaries r = 0 and r = 1. Compute the solution for the case k = α = β = 1, Q(r) = r^2 −1, and f (r) = r^2 /3. Use N = 50 and verify that the numerical solution approaches the correct steady state solution as t increases. Plot u(0, t) versus t from your numerical solution.