Docsity

MATH 572 Assignment 4: Numerical Methods for Scientific Computing II - Winter 2005, Exams of Mathematics

Toggle sidebar
bg1
MATH 572 Numerical Methods for Scientific Computing II Winter 2005
Assignment #4 due : Thursday , March 10
1. Consider the 2-step BDF scheme, ∇un+1
2∇2un=hf(un).
a) Find the characteristic roots ζ1(h), ζ2(h) for the test equation and plot them using
Matlab over the interval −10 ≤hλ ≤0.
b) Show analytically that the negative real axis is contained in the region of absolute
stability. (Note: the scheme is actually A-stable, but it is not required to show that here.)
2. The Lorenz system is defined by
y1
y2
y3
0
=
σ(y2−y1)
ry1−y2−y1y3
y1y2−by3
.
These equations were originally derived as a model for thermal convection; the variables
represent the temperature, density, and velocity in a certain fluid flow. It was discovered by
numerical computations that the parameters σ= 10, b = 8/3, r = 28 yield a system with
chaotic dynamics. Solve this system with initial conditions y1(0) = 0, y2(0) = 1, y3(0) = 0
up to time t= 100 using Matlab’s ode45 solver. (Part of the exercise is to read the online
documentation and learn how this command works.) Plot the solution two ways: (a)
projection of the orbit in the y1y3-plane, (b) full orbit in y1y2y3-space using plot3. The
object displayed in the plots is a strange attractor.
3. Consider the finite-difference scheme for the heat equation un+1
j=un
j+kD+D−un
jon
the whole real line with free-space boundary conditions. Show that the numerical solution
un
jhas an asymptotic expansion of the form un
j=vn
j+kEn
j+O(k2) for k→0, where
vn
j=v(xj, tn) is the exact solution of the heat equation vt=vxx and En
j=E(xj, tn) is the
principal error function. There are two steps: (a) heuristically derive the equation satisfied
by E(x, t), (b) prove the validity of the expansion.
4. Consider the following difference scheme for the heat equation vt=vxx on the whole
real line.
un+1
j−un
j
k=D+D−un
j−h2
12 (D+D−)2un
j
a) Show that the local truncation error is O(k) + O(h4).
b) Find the amplification factor ρ(ξh).
c) For what values of λ=k
h2is the scheme stable in the 2-norm?
5. Compute the solution of the heat equation vt=vxx on 0 ≤x≤1 with boundary condi-
tions v(0, t) = v(1, t) = 0 and initial condition (a) v(x, 0) = 1−2|x−1
2|, (b) v(x, 0) = sin πx.
Use 2nd order central differencing in space and forward Euler in time, with h= 0.05, k =
0.0013,0.0012. Plot the solution at time t= 0, k, 25k, 50k(in case (a) this reproduces the
results on the class handout). Explain the results.

Partial preview of the text

Download MATH 572 Assignment 4: Numerical Methods for Scientific Computing II - Winter 2005 and more Exams Mathematics in PDF only on Docsity!

MATH 572 Numerical Methods for Scientific Computing II Winter 2005

Assignment #4 due : Thursday , March 10

  1. Consider the 2-step BDF scheme, ∇un + 12 ∇^2 un = hf (un).

a) Find the characteristic roots ζ 1 (h), ζ 2 (h) for the test equation and plot them using Matlab over the interval − 10 ≤ hλ ≤ 0.

b) Show analytically that the negative real axis is contained in the region of absolute stability. (Note: the scheme is actually A-stable, but it is not required to show that here.)

  1. The Lorenz system is defined by

y 1 y 2 y 3

′

σ(y 2 − y 1 ) ry 1 − y 2 − y 1 y 3 y 1 y 2 − by 3

These equations were originally derived as a model for thermal convection; the variables represent the temperature, density, and velocity in a certain fluid flow. It was discovered by numerical computations that the parameters σ = 10, b = 8/ 3 , r = 28 yield a system with chaotic dynamics. Solve this system with initial conditions y 1 (0) = 0, y 2 (0) = 1, y 3 (0) = 0 up to time t = 100 using Matlab’s ode45 solver. (Part of the exercise is to read the online documentation and learn how this command works.) Plot the solution two ways: (a) projection of the orbit in the y 1 y 3 -plane, (b) full orbit in y 1 y 2 y 3 -space using plot3. The object displayed in the plots is a strange attractor.

  1. Consider the finite-difference scheme for the heat equation un j +1= unj + kD+D−unj on the whole real line with free-space boundary conditions. Show that the numerical solution unj has an asymptotic expansion of the form unj = vjn + kEjn + O(k^2 ) for k → 0, where vnj = v(xj , tn) is the exact solution of the heat equation vt = vxx and Enj = E(xj , tn) is the principal error function. There are two steps: (a) heuristically derive the equation satisfied by E(x, t), (b) prove the validity of the expansion.
  2. Consider the following difference scheme for the heat equation vt = vxx on the whole real line.

un j +1− unj k

= D+D−unj −

h^2 12

(D+D−)^2 unj

a) Show that the local truncation error is O(k) + O(h^4 ).

b) Find the amplification factor ρ(ξh).

c) For what values of λ = (^) hk 2 is the scheme stable in the 2-norm?

  1. Compute the solution of the heat equation vt = vxx on 0 ≤ x ≤ 1 with boundary condi- tions v(0, t) = v(1, t) = 0 and initial condition (a) v(x, 0) = 1− 2 |x− 12 |, (b) v(x, 0) = sin πx. Use 2nd order central differencing in space and forward Euler in time, with h = 0. 05 , k =
  2. 0013 , 0 .0012. Plot the solution at time t = 0, k, 25 k, 50 k (in case (a) this reproduces the results on the class handout). Explain the results.