

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!


Due 5:00pm of Friday, May 15, 2009
One of the most interesting and prominent features of the hyperbolic equations is the formation of discontinuities from smooth initial condition at finite time. Numerous numerical methods are available for resolving the large gradients in the vicinities of discontinuities, and thus to ensure the stability of the numerical solutions. Lax-Wendroff scheme is probably the most classical one, which can be found in Page 660 of the textbook. As shown in class, Lax-Wendroff scheme essentially works on the modified equation rather than the original equation. This can be seen from the term involving uxx from Equation (3) in the same page, see also the class notes. In this final project, we will apply Lax-Wendroff and several other very simple numerical schemes to solve linear advection and nonlinear advection equations, and investigate the consequences of a number of fundamental issues in numerical solutions of hyperbolic equations, including upwinding, characteristic, influence region and numerical viscosity. Your final project shall include:
ut = αux, x ∈ [− 100 , 100], u(− 100 , t) = u(100, t) = 0,
u(x, 0) =
{ e−^1 /(1−x^2 ), |x| < 1 0 , |x| ≥ 1
using the forward-time one-side difference scheme
un j +1− unj k
α h
( unj − unj− 1
)
with following parameters
ut = αux, x ∈ [− 100 , 100], u(− 100 , t) = u(100, t) = 0,
u(x, 0) =
{ e−^1 /(1−x (^2) ) , |x| < 1 0 , |x| ≥ 1
using the Lax-Wendroff scheme with k, h chosen following the constraints proved in the book and
ut +
∂x (u^2 ) = 0, x ∈ [− 100 , 100], u(− 100 , t) = u(100, t) = 0,
u(x, 0) =
{ e−^1 /(1−x^2 ), |x| < 1 0 , |x| ≥ 1
using the Lax-Wendroff scheme with k, h chosen following the constraints proved in the book. Explain the behavior of your numerical solution (growth of gradient, accuracy, etc.)
More about Lax-Wendroff scheme follows. We consider a general scalar hyperbolic equation ut + (f (u))x = 0
where f (u) is a nonlinear function of u. It can be checked that in the linear advection equation f (u) = cu and in the Burger’s equation f (u) = u^2 /2. We define a function A(u) = df (u)/du. Again, for the linear advection equation A(u) = c and for Burger’s equation A(u) = u. It can be checked that
ut = −(f (u))x = −A(u)ux, utt = −(f (u))xt = −((f (u))tx = −
( df (u) du ut
)
x
= (A(u)(f (u))x)x.
According to the Taylor expansion
un+1^ = un^ + kunt + k^2 2
untt,
we have
un j +1 = unj − k
f (unj+1) − f (unj− 1 ) 2 h
k^2 2
A(unj+1/ 2 ) (f (u))x|j+1/ 2 −A(unj− 1 / 2 ) (f (u))x|j− 1 / 2 h
= unj − k
f (unj+1) − f (unj− 1 ) 2 h
k^2 2
A(unj+1/ 2 ) f (unj+1)−f (unj ) h −A(u
n j− 1 / 2 )^
f (unj )−f (unj− 1 ) h h = unj − k
f (unj+1) − f (unj− 1 ) 2 h
k^2 2 h^2
[ A(unj+1/ 2 )
( f (unj+1) − f (unj )
) −A(unj− 1 / 2 )
( f (unj ) − f (unj− 1 )
)] .