Docsity

Problem Set 1: Boundedness, Ellipticity, Polynomial Interpolation, and MLS Approximation -, Assignments of Mechanical Engineering

Toggle sidebar
bg1
1
MANE 6750 – Generalized Finite Element Methods
Rensselaer Polytechnic Institute
Problem Set # 1
1. (10 points) Consider the bilinear form
1
1
2 1
( , ) ( ) where
( ) is a bounded continuous function K ( )
du dv
a u v x uv dx
dx dx
x x K
κ
κ κ
−
= +
≤ ≤
∫
Prove that a is (i) bounded and (ii) H-elliptic
Hint: Prove that
1
2
1
2
2 2
2
2
L H
H
L
u u
du
and u
dx
≤
≤
2.
(40 points)
Polynomial interpolation
(a) Consider a set of (n+1) regularly spaced nodes on the interval [a,b]:
1n,,2,1k,h)1k(ax,
n
ab
h
k
+=−+=
−
=…
. Prove that the nodal polynomial
1 1 2 1
( ) ( )( ) ( )
n n
+ +
= − − −
⋯
satisifes
1
1
( ) ! ,
n
n
w x n h a x b
+
+
≤ ≤ ≤
(b) Using the above result prove that if
x
e)x(f =
and
)x(
n
Π
is the interpolating polynomial
of degree ‘n’ defined at the n+1 regularly spaced nodes
1n,,2,1k,
n
1k
x
k
+=
−
=…
; then the interpolation error
)x()x(fmaxe
n
1x0
n
Π−=
≤≤
goes to zero as
‘n’ goes to infinity:
0elim
n
n
=
∞→
(c) On the domain [-1,1] interpolate
(i)
a hyperbola
2
x1)x(f +=
(ii)
Runge’s function
2
x251
1
)x(f +
=
using a set of n+1 regularly spaced nodes
1n,,2,1k,
n
)1k(2
1x
k
+=
−
+−=
…
Take n=5,10,15,20 and plot the error |
)x()x(f
n
Π−
| at 41 regularly spaced points. Does the
interpolation accuracy increase or decrease with increase in ‘n’?
(hint: check out Matlab commands ‘polyfit’ and ‘polyval’).
(d) Repeat the experiments in part (c) replacing the regularly spaced nodes by the nodes
pf2

Partial preview of the text

Download Problem Set 1: Boundedness, Ellipticity, Polynomial Interpolation, and MLS Approximation - and more Assignments Mechanical Engineering in PDF only on Docsity!

MANE 6750 – Generalized Finite Element Methods

Rensselaer Polytechnic Institute

Problem Set # 1

1. (10 points) Consider the bilinear form

1

1

2 1

( , ) ( ) where

( ) is a bounded continuous function K ( )

du dv

a u v x uv dx

dx dx

x x K

κ

κ κ

−

Prove that a is (i) bounded and (ii) H-elliptic

Hint: Prove that

1 2

1

2

2 2

2 2

L H

H L

u u

du

and u

dx

2. (40 points) Polynomial interpolation

(a) Consider a set of (n+1) regularly spaced nodes on the interval [a,b]:

, x a (k 1 )h, k 1 , 2 , ,n 1 n

b a h k

= …. Prove that the nodal polynomial

1 1 2 1

n n

w x x x x x x x

= − − ⋯ − satisifes

1 1

n n

w x n h a x b

(b) Using the above result prove that if

x

f (x)= e and (x)

n

Π is the interpolating polynomial

of degree ‘n’ defined at the n+1 regularly spaced nodes

, k 1 , 2 , ,n 1 n

k 1 x k

= … ; then the interpolation error e maxf(x) n(x)

0 x 1

n =^ −Π ≤≤

goes to zero as

‘n’ goes to infinity: lim e 0

n n

→ ∞

(c) On the domain [-1,1] interpolate

(i) a hyperbola

2 f (x)= 1 + x

(ii) Runge’s function

2 1 25 x

f (x)

using a set of n+1 regularly spaced nodes

, k 1 , 2 , ,n 1 n

2 (k 1 ) x 1 k

Take n=5,10,15,20 and plot the error | f (x) (x)

n

− Π | at 41 regularly spaced points. Does the

interpolation accuracy increase or decrease with increase in ‘n’?

(hint: check out Matlab commands ‘polyfit’ and ‘polyval’).

(d) Repeat the experiments in part (c) replacing the regularly spaced nodes by the nodes

, k 1 , 2 , ,n 1 n

(k 1 ) x cos k

 π − = …

These nodes are the roots of the Chebyshev polynomial on [-1,1]. Plot the error

| f (x) (x)

n

− Π | at 41 regularly spaced points for n=5,10,20. Comment on your observations.

3. (50 points) MLS approximation

(a) Generate a moving least squares (MLS) approximation to Runge’s function (in Problem 1)

using n+1 equally spaced points

, k 1 , 2 , ,n 1 n

2 (k 1 ) x 1 k

on the domain [-1,1]. Use a quartic spline (radial) weight function of the form

2 3 4

W ( s )= 1 − 6 s + 8 s − 3 s

where

i

i

r

x x

s

xi being the coordinate of the i

th

node and ri being the radius of the support at the node (see

figure). You may assume ri=0.8 for all the nodes and a linearly accurate MLS approximation.

For n=5,10,15,20 plot the error | f (x)− fh(x)| at 41 regularly spaced points. Does the

approximation accuracy increase or decrease with increase in ‘n’? Remember that the MLS

functions do NOT usually possess the Kronecker delta property. However, make sure that that

the MLS approximation does interpolate the data.

(b) For the problem in part (a) plot (log-log) the relative error in discrete L

2

norm

=

=

41

k 1

2 k

41

k 1

2 k h k

0

h 0

f(x )

f(x ) f(x )

f

f f

Relativeerror

as a function of ‘n’ for

(i) ri=0.8 for all the nodes

(ii) ri=4/n for all the nodes

Comment on your observations.

ri ri

xi