Docsity

Problem Set 8 Solved | Numerical Methods for Differential Equations | MATH 4820, Assignments of Differential Equations

Toggle sidebar
bg1
Math 4820
D. Schwendeman Problem Set 8
Due:
Monday, 4/19/10
1. Consider the heat equation
Lu =ut−kuxx = 0,
where k > 0 is a constant thermal diffusivity.
(a) Consider the finite-difference approximation
Lhvn
j=1
∆tδ+tvn
j−k
∆x2hθδ2
xvn+1
j+ (1 −θ)δ2
xvn
ji= 0,
where θ∈[0,1] is a parameter. Show that Lhvn
j= 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
Lhvn
j=1
2∆tδ0tvn
j−k
∆x2hvn
j−1−(vn−1
j+vn+1
j) + vn
j+1i= 0.
Find the order of accuracy of the approximation assuming that k∆t/∆x2= constant (in-
dependent of ∆tand ∆x).
2. A consistent approximation of the heat equation ut=kuxx has the form
vn+1
j=vn
j+ν
3hδ2
xvn+1
j+ 2δ2
xvn
ji, ν =k∆t
∆x2
Consider Fourier modes of the form vn
j=aneiαxj, where ais 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.
3. Heat flow in a unit disk with circular symmetry solves the PDE
ut=kurr +1
rur+Q(r),0< r ≤1, t > 0
with initial and boundary conditions taken to be
u(r, 0) = f(r), ur(0, t) = 0, ur(1, t) + αu(1, t) = β
Here, ris radial distance from the center of the disk and tis 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) = r2−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+1
j=vn
j+k∆t 1
∆r2δ2
rvn
j+1
2rj∆rδ0rvn
j!+ ∆tQ(rj),
where rj=j∆r, ∆r= 1/N, and v0
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) = r2−1,
and f(r) = r2/3. Use N= 50 and verify that the numerical solution approaches the correct
steady state solution as tincreases. Plot u(0, t) versus tfrom your numerical solution.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Problem Set 8 Solved | Numerical Methods for Differential Equations | MATH 4820 and more Assignments Differential Equations in PDF only on Docsity!

Math 4820

D. Schwendeman Problem Set 8

Due: Monday, 4/19/

  1. Consider the heat equation Lu = ut − kuxx = 0,

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).

  1. A consistent approximation of the heat equation ut = kuxx has the form

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.

  1. Heat flow in a unit disk with circular symmetry solves the PDE

ut = k

( urr +

r ur

)

  • Q(r), 0 < r ≤ 1 , t > 0

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

)

  • ∆tQ(rj ),

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.