You are on page 1of 1

AS 5460 HW 1 February 5, 2018

February 5, 2018

INSTRUCTIONS:
a) Assignments are due in 1 week unless otherwise notified.
b) Marks for each problem are given after the question within ().
c) The assignment should be submitted as PDF (typeset).
d) The title of the file should be in format AS5460-HW-XX-GRP-XX.pdf (e.g. AS5460-HW-01-GRP-02.pdf)

1. Perform Fourier analysis for the Euler implicit scheme and the Lax-Wendroff scheme and show under what
conditions the schemes will be stable (if at all). (15)
2. Formulate the upwind scheme to take into account the sign of the wave speed c. (5)
∂u
3. Determine the truncation error of the following finite-difference approximation to ∂x at the node i for a
uniform mesh:
∂u −3ui + 4ui+1 − uj+2

∂x 24x
What is the order of accuracy for the method ? (10)
4. Consider the function f (x) = ex . Using a mesh increment 4x = 0.1, determine f 0 (x) at x = 2 with
the forward difference formula, central difference formula, and the three-point formula in the previous
question. Compare the errors with the exact solution. Repeat the calculation with 4x = 0.2. Discuss if
the order estimates for truncation error are useful (Hint: plot the errors vs. 4x on a log-log scale). (10)

You might also like