Docsity

Problem Set 3 Questions - Numerical Methods | AME 60614, Assignments of Aerospace Engineering

Toggle sidebar
bg1
AME 521: Numerical Methods
Fall 2004, Problem Set 3
T. Eisenhour, J. M. Powers
Due: Friday, November 12, 2004
Comment: In addition to attaching the codes you used, say what the code does in the problem write
up so it will be clear to me when I grade it.
1. Use a shooting method to obtain numerical solutions for the following differential equation:
f000 −3f00f0+ 1 = 0,(1)
using the boundary conditions
f(0) = 0, f 0(0) = 0, f0(10) = −2.6.(2)
Plot f0(x) and f00(x) separately. Estimate the error in the solution you report.
2. Use a direct method to find the numerical solution to
y00 =x2−2
x2+ 2 y, (3)
using the boundary conditions
y(0) = 3, y(∞) = 0.(4)
a.) Approximate solution using y(7) = 0. Plot L∞versus hfor a wide variety of h. Also,
plot the solution for various values of h. What do you notice? Explain. (How did you
get the exact solution?)
b.) Find a better condition at x= 10 and compare the solution with the solution from (a)
3. In order to solve
∂u
∂t =∂2u
∂x2,(5)
the following method can be used
Un+1
m= (1 −2r)Un
m+r(Un
m+1 +Un
m−1), r =∆t
∆x2(6)
Determine the stablility condition for this method.
1
pf2

Partial preview of the text

Download Problem Set 3 Questions - Numerical Methods | AME 60614 and more Assignments Aerospace Engineering in PDF only on Docsity!

AME 521: Numerical Methods

Fall 2004, Problem Set 3

T. Eisenhour, J. M. Powers

Due: Friday, November 12, 2004

Comment: In addition to attaching the codes you used, say what the code does in the problem write up so it will be clear to me when I grade it.

  1. Use a shooting method to obtain numerical solutions for the following differential equation:

f ′′′^ − 3 f ′′f ′^ + 1 = 0, (1)

using the boundary conditions

f (0) = 0, f ′(0) = 0, f ′(10) = − 2. 6. (2)

Plot f ′(x) and f ′′(x) separately. Estimate the error in the solution you report.

  1. Use a direct method to find the numerical solution to

y′′^ =

x^2 − 2 x^2 + 2

y, (3)

using the boundary conditions

y(0) = 3, y(∞) = 0. (4)

a.) Approximate solution using y(7) = 0. Plot L∞ versus h for a wide variety of h. Also, plot the solution for various values of h. What do you notice? Explain. (How did you get the exact solution?) b.) Find a better condition at x = 10 and compare the solution with the solution from (a)

  1. In order to solve

∂u ∂t

∂^2 u ∂x^2

the following method can be used

U (^) mn+1 = (1 − 2 r)U (^) mn + r(U (^) mn+1 + U (^) mn− 1 ), r =

∆t ∆x^2

Determine the stablility condition for this method.

  1. Stiff systems of equations present problems when using a numerical method. The smallest time scale of the problem needs to be captured or the error is large. The system

du dt = u − 200002 v (7) dv dt

= u − 100002 v (8)

is stiff. Using the boundary conditions

u(0) = v(0) = 1 (9)

do the following:

a.) Find the exact solution for u(t) and v(t). b.) Solve the problem numerically using an explicit method and an implicit method. Get the error as small as possible (ideally machine precision). Plot L∞ versus h for a wide variety of h. Why didn’t you reduce the error any more? (What limitation did you reach with your smallest error?) c.) Plot the solution for a relatively accurate h. Include explicit, implicit, and the exact solution. Make sure your plot reveals all critical features of the results.

  1. Find the eigenvalues, μ, of

x^2 y′′^ + xy′^ + μ^2 x^2 y = 0 (10)

y′(0) = 0, y(1) = 0 (11)

by two methods discussed in class

a.) the shooting method described in class. b.) a direct method.

and another method based on solving a non-linear algebraic equation for the roots μ.