Docsity

Numerical Methods for Hyperbolic Equations - Final Project | MATH 451, Study Guides, Projects, Research of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Introduction to Numerical Analysis II (MATH 451) Final Project
Numerical Methods for Hyperbolic Equations
Due 5:00pm of Friday, May 15, 2009
1 Background
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:
•Description of the problems and numerical methods;
•MATLAB codes (sent to professor directly);
•Figure and charts to support your investigations;
•Conclusion.
2 Problems
1. Solve linear advection equation up to T= 50
ut=αux, x ∈[−100,100],
u(−100, t) = u(100, t) = 0,
u(x, 0) = (e−1/(1−x2),|x|<1
0,|x| ≥ 1
using the forward-time one-side difference scheme
un+1
j−un
j
k=α
hun
j−un
j−1
with following parameters
1. α= 1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
2. α=−1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
1
pf3

Partial preview of the text

Download Numerical Methods for Hyperbolic Equations - Final Project | MATH 451 and more Study Guides, Projects, Research Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Introduction to Numerical Analysis II (MATH 451) Final Project

Numerical Methods for Hyperbolic Equations

Due 5:00pm of Friday, May 15, 2009

1 Background

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:

  • Description of the problems and numerical methods;
  • MATLAB codes (sent to professor directly);
  • Figure and charts to support your investigations;
  • Conclusion.

2 Problems

  1. Solve linear advection equation up to T = 50

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

  1. α = 1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
  2. α = −1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
  1. If solution is not stable, what is the scheme that you think will be stable for this problem. Try it!
  2. Solve linear advection equation up to T = 50

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

  1. α = 1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
  2. α = −1 and k, h at your choice. Explain your numerical solution (stability, accuracy, etc.)
  3. Solve nonlinear advection equation (Burger’s equation) up to T = 20

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 )

)] .