


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!



J. M. Powers set prepared by J. Kamel Due: Friday, 10 December 2004
∂f ∂t
∂f ∂x
= α
∂^2 f ∂x^2
∂^3 f ∂x^3
where u, α and β are real non-negative constants. The general solution of the above equation can be written in the form
f (x, t) = Aeλteikx
where A is the amplitude, λ = σ + iω is the complex frequency, and k is the wave number. Using each of the following initial conditions:
i) f (x, 0) = sin(πx), for 0 ≤ x ≤ 1. ii) f (x, 0) = 0.5 sin(2πx), for 0 ≤ x ≤ 0 .5. iii) f (x, 0) = 1 − | 2 x − 1 |, for 0 ≤ x ≤ 1. iv) f (x, 0) = 0. 5 − | 2 x − 0. 5 |, for 0 ≤ x ≤ 0 .5.
Consider the following three problems:
(a) Convection: α = β = 0, u = 0.1, f (0, t) = 0, and the Lax- Wendroff scheme (LW); (b) Diffusion: u = β = 0, α = 0. 1 /π^2 , f (0, t) = f (1, t) = 0, and the scheme consisting of forward Euler in time and central difference in space (FTCS); (c) Dispersion: u = α = 0, β = 0. 001 /π^2 , f (0, t) = 0, f (x, t) → 0 as x → ∞, and the Crank-Nicolson scheme (CN).
In each case, discuss the quantitative and qualitative behaviour of the numerical solutions for time t ∈ [0, 20], using ∆t = 2, by making use of the corresponding modified equations and analytical solutions. Note: select your time step according to stability requirement.
∂^2 u ∂t^2
= a
∂^2 u ∂x^2
∂u ∂x
with initial and boundary conditions
u(x, 0) = g 1 (x),
∂u ∂t
(x, 0) = g 2 (x), u(0, t) = f 1 (t), u(1, t) = f 2 (t)
where a, b, and c are constants, a > 0, and f 1 (t), g 1 (x), and g 2 (x) are known functions, is solved using the difference scheme
(1 − β 1 θ) un m+1− 1 + 4 (1 + β 2 θ) un m+1 + (1 − β 3 θ) un m+1+1 = [2 + β 1 (1 − 2 θ)] unm− 1 + 4 [2 − β 2 (1 − 2 θ)] unm + [2 + β 3 (1 − 2 θ)] unm+ − (1 − β 1 θ) un m−−^11 − 4 (1 + β 2 θ) un m− 1 − (1 − β 3 θ) un m−+1^1 ,
where β 1 = 6aλ^2 − 3 bλk + ck^2 , β 2 = 3aλ^2 − ck^2 , β 3 = 6aλ^2 + 3bλk + ck^2 , λ = k/h, k = ∆t, h = ∆x, and 0 ≤ θ ≤ 1. Obtain:
i) the local truncation error. ii) the stability criterion.
−∇^2 u = π^2 sin(πx) sin(πy)
On the domain Ω : x ∈ [0, 1], y ∈ [0, 1], with boundary conditions,
u(x, 0) = 1 − x, u(x, 1) = 1, u(0, y) = 1, u(1, y) = y,
while ∇^2 is the Laplacian operator in Cartesian coordinates.
(a) Solve to get the exact solution that satisfies the above equation and the boundary conditions. (b) Solve the equation numerically using five-point difference scheme by: i) Successive over-relaxation ii) Jaccobi iteration, iii) Simple Gaussian elimination, iv) Gauss-Seidel iteration (c) Do a convergence study by taking ∆x = ∆y = 0. 1 , 0. 05 , 0. 01 , 0 .005, plot (on log − log scale) ∆x versus L∞