Docsity

Assignment 2 Problems - Topics in Numerical Analysis | MTH 659, Assignments of Mathematics

Toggle sidebar
bg1
MTH 659, Assignment 2: solve problem 1 and one of 2,3
.
Problem 1: (Computational). Consider
(C) : −∇ · (k∇u) = f, x ∈Ω = (0,1)2
u|∂Ω=ud
with f, udchosen so that
u(x, y) = (α(x))2y
is an exact solution. The coefficient k(x) is a scalar (or a diagonal tensor in the
optional part) and is defined below. The parameter α(x) is defined below as
well.
Implement/apply/adapt a computer program that will solve (C) for a general
value of k, f, udand which will deliver error values in L2and H1norms as well
as in the energy norm (optional).
Compute the finite element solution using linear elements (based on a tri-
angular mesh) and bilinear elements (based on a rectangular mesh). Make sure
you’re using an appropriate quadrature !
Use (1) α(x)≡x, k ≡1 Test convergence in L2and H1norm. (2) Use
α(x) = x, x ≤1/2,10x−4.5, x > 1/2 and k= 10, x ≤1/2,1, x > 1/2 and test
convergence in L2,H1, and (optional) energy norms. (3) α=x,kas in (2). (4)
(Extra) α=x,k=diag(1,10). Test convergence in L2norm and sensitivity to
the grid orientation/parameters.
Remark: For which α, k is the problem regular enough so that all desirable
interpolation estimates hold and so that the duality method would work ?
1
pf2

Partial preview of the text

Download Assignment 2 Problems - Topics in Numerical Analysis | MTH 659 and more Assignments Mathematics in PDF only on Docsity!

MTH 659, Assignment 2: solve problem 1 and one of 2, . Problem 1: (Computational). Consider

(C) :

−∇ · (k∇u) = f, x ∈ Ω = (0, 1)^2 u|∂Ω = ud

with f, ud chosen so that u(x, y) = (α(x))^2 y

is an exact solution. The coefficient k(x) is a scalar (or a diagonal tensor in the optional part) and is defined below. The parameter α(x) is defined below as well. Implement/apply/adapt a computer program that will solve (C) for a general value of k, f, ud and which will deliver error values in L 2 and H 1 norms as well as in the energy norm (optional). Compute the finite element solution using linear elements (based on a tri- angular mesh) and bilinear elements (based on a rectangular mesh). Make sure you’re using an appropriate quadrature! Use (1) α(x) ≡ x, k ≡ 1 Test convergence in L 2 and H 1 norm. (2) Use α(x) = x, x ≤ 1 / 2 , 10 x − 4. 5 , x > 1 /2 and k = 10, x ≤ 1 / 2 , 1 , x > 1 /2 and test convergence in L 2 , H 1 , and (optional) energy norms. (3) α = x, k as in (2). (4) (Extra) α = x, k = diag(1, 10). Test convergence in L 2 norm and sensitivity to the grid orientation/parameters. Remark: For which α, k is the problem regular enough so that all desirable interpolation estimates hold and so that the duality method would work?

Problem 2: (Applications). Consider the problem (satisfied in the sense of distributions)

(A) :

−(ku′)′^ = 0, 0 < x < 1 u(0) = 1, u(1) = 0

Assume that k(x) =

k 1 , x ≤ 1 / 2 k 2 , x > 1 / 2 where k 1 ,k 2 are constants. Consider also (B) :

−ku˜ ′′^ = 0, 0 < x < 1 u(0) = 1, u(1) = 0

where ˜k is a suitably chosen constant. (i) Show that the flux ku′(x) of the exact solution u(x) is equivalent to the flux computed for problem (B) with ˜k chosen as the harmonic mean k 12 of k 1 , k 2. (ii) Construct Galerkin formulation of the problems (A) and (B) using piece- wise linear functions. Consider similar issue as in (i): how does the value of ˜k depend on k 1 , k 2? Compare fluxes of the approximate solutions for (A) and (B) in (0,1/2) and (1/2,1). Hint: you can start by dividing (0, 1) into two elements and considering the stiffness matrix for the problem with homogeneous boundary conditions. (iii) Can you generalize these results? (what if you have more than two constants ki and more than two elements)? Comment on the consequences in view of the Remark below. Remark: Cell-centered finite difference (or mixed) approximations to (A) use harmonic averaging of coefficients. Note that in 1D the Galerkin solution exhibits superconvergent behavior (see Assignment 1) so you should be careful when generalizing your results. (iv) Consider a simple 2D problem with coefficient k which is constant ele- mentwise and with boundary conditions so that the flow goes across and along discontinuities in k. Which of the method(s) of averaging should be more accu- rate?

Problem 3: (Mathematical theory). Do the last Exercise in the “Notes on Aubin-Nitsche”.