• Keine Ergebnisse gefunden

Exercise sheet 10. Submission on Tuesday, 2019-01-15, after the lecture.

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise sheet 10. Submission on Tuesday, 2019-01-15, after the lecture. "

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Numerical Algorithms

Winter semester 2018/2019 Prof. Dr. Marc Alexander Schweitzer

Denis Duesseldorf

Exercise sheet 10. Submission on Tuesday, 2019-01-15, after the lecture.

Exercise 31. (B-spline derivatives)

We have already looked into B-splines but not yet at their derivatives.

a) Show that

d

dξ N i,p (ξ) = p

N i,p−1 (ξ) ξ i+p − ξ i

− N i+1,p−1 (ξ) ξ i+p+1 − ξ i+1

.

Hint: Recursion formula and induction starting with p = 1.

b) Using a), compute the derivative of the B-spline curve d

dξ C(ξ) = d dξ

n

X

i=1

N i,p (ξ)B i .

(2 Points ) Exercise 32. (Minimal degree condition)

A not yet posed or answered is how p T , p e should be related in a higher order FEM with V -E-C shape functions. One strategy for this is the minimal degree condition.

Let T be an element of some triangulation τ of the domain Ω for some PDE. For each edge e of the triangulation it should hold that

p e = min{p T |e is edge of T } .

For the depicted mesh, choose the degrees p e of each edge e such that the minimal degree condition is fulfilled

p = 1 p = 2 p = 1

p = 3 p = 4 p = 3

p = 1 p = 2 p = 1

(2 Points )

1

(2)

Exercise 33. (sup − inf and n-width)

In the lecture the notion of classification of best approximation of a set Y ⊂ X with some normed space (X, k·k X ) was introduced with the Kolmogorov n-width

d n := inf

E

n

⊂X,dim E

n

≤n sup

u∈Y v

n

inf ∈E

n

ku − v n k X .

If X, (·, ·) X is a Hilbert space and Y = T H with H, (·, ·) H being another Hilbert space that can be compactly embedded in Y via the operator T

H , → C X , T : H → X , kT xk X ≤ Ckxk H , T compact . these quantity allows for a more practical expression. With H being a linear space it is reasonable to exclude multiplicative constants leading to

Y := {x ∈ H : kxk H = 1} = {T x : x ∈ H, kxk H = 1} ⊂ X , Ψ(E n ) := sup

u∈Y v

n

inf ∈E

n

ku − v n k X , d n = inf

E

n

⊂X,dim E

n

≤n Ψ(E n ) .

Ψ is called a sup − inf of E n with respect to the k·k X approximation of Y . For conve- nience the embedding T is dropped from notation.

In this special case of a compact embedding these quantities are related to the generalized eigenvalue problem

(u k , v) X = λ k (u k , v) H , ∀v ∈ H with eigenpairs (λ k , u k ), k = 0, . . . and eigenvalues

λ 0 ≥ λ 1 ≥ λ 2 . . . > 0 , d n = p λ n

There exists a similar generalized eigenvalue problem for the computation of Ψ(E n ).

a) Show that for u ∈ H, E n ⊂ X and dim E n = n we have

v

n

inf ∈E

n

ku − v n k X ≤ kuk H Ψ(E n )

b) Assume that H ⊂ Z with Z being another Hilbert space with a basis ϕ i , i ∈ I = {1, . . . , N}. Using the coefficients of a H basis with respect to ϕ i , give the matrix representation of the generalized eigenvalue problem for the computation of d n .

(4 Points )

2

(3)

Exercise 34. (Moving Least Squares)

Given data x i , f i , i = 1, . . . , N and an approximation space P = spanhϕ i i the natural extension of least squares is moving least squares (MLS) approximation.

For a locally supported non-negative function W , often referred to as window function or weight function, the pointwise moving least squares energy of an approximation π is given as

J x (π) =

N

X

i=1

W (x − x i )(f i − π(ξ)) 2 = X

W(x−x

i

)>0

W (x − x i )(f i − π(x i )) 2 .

The MLS approximation π of the data x i , f i is given pointwise via the minimizers π x ∈ P of J x

π(x) = π x (x) . Using the basis ϕ i and a representation π x = P

i u x,i ϕ i , u x = (u x,i ) i we can compute the solutions π x as

G x u x = f x , (G x ) k,l := X

W(x−x

i

)>0

ϕ k (x i )W (x − x il (x i ) , f x := X

W(x−x

i

)>0

f i W (x − x i )ϕ l (x i ) .

a) Expand and compute

d dx π(x) .

b) The case P = spanh1i is called Shepard approximation. For this case, compute π, dx d π.

(4 Points )

3

(4)

Programming exercise 11. (Refined Spinoraptor)

Consider the B-Spline curve defined through the knot vector and control points given in programming exercise 10. Since the resolution of the model is rough, a further analysis requires the refinement of the model.

The analogue of h-refinement from finite elements for B-Splines (and B-Spline curves and surfaces and volumes) is knot insertion. Similarly to h-refinement, this can be done without changing the curve geometrically or parametrically.

Given a knot vector

Ξ = (ξ 1 , . . . , ξ n+p+1 )

and let ˆ ξ ∈ [ξ k , ξ k+1 ) be a desired new knot. The n + 1 basis functions ˆ N i,p are formed recursively using the new knot vector

Ξ = (ξ ˆ 1 , . . . , ξ k , ξ, ξ ˆ k+1 , . . . , ξ n+p+1 ) of length n + p + 2.

The new n + 1 control points ˆ B i , 1 ≤ i ≤ n + 1 are formed from the original control points B i , 1 ≤ i ≤ n by

B ˆ i = α i B i + (1 − α i )B i−1 , α i =

 

 

1 , 1 ≤ i ≤ k − p ,

ξ−ξ ˆ

i

ξ

i+p

−ξ

i

, k − p + 1 ≤ i ≤ k , 0 , k + 1 ≤ i ≤ n + p + 2 . a) Write a function using the described algorithm for insertion of valid knots. The

function should compute the modified control points accordingly.

b) Using appropriate knots and control points, show an example of internal knots ap- pearing more than p times leading to discontinuous functions.

c) Compute the midpoints of the unique knots η j = 1

2 (ξ i + ξ i+1 ) , ξ i < ξ i+1 .

d) Use a) to insert the knots η j into the knot vector from programming exercise 10.

e) Use the modified knots and control points from d) to plot ˆ N i,p .

f) Use the modified knots and control points from d) to plot the corresponding B-Spline curve.

(4 Points ) Send to duesseldorf@ins.uni-bonn.de

4

Referenzen

ÄHNLICHE DOKUMENTE

We consider families (Y n ) of degenerating hyperbolic surfaces. The surfaces are geometrically finite of fixed topological type. The technique is an examination of resolvent of

Then corresponding to L 2 -Betti numbers of normal coverings we show, for any real number r, the construction of a finitely generated amenable group and an associated F 2 [G]

Thus, if the intraoperative postinsertion recordings are still good and the audiometric threshold after surgery deteriorates, it is difficult to separate whether the postinsertion

In each span cumulative sums (CumSum) of squared residuals are calculated in two versions, first starting from left to right and second starting from right to left. The idea of

The algorithm computes an approximation of the Gaussian cumulative distribution function as defined in Equation (1). The values were calculated with the code taken

Un- der the assumption that the optimal VRPTW solutions remain very good, if not optimal solu- tions to the derived PDPTW instances, each of them provides a high quality upper bound

The problem of minimizing nonconvex nondifferentiable func- tions poses a considerable challenge to specialists in mathe- matical programming.. Most of the difficulties arise from

CAP-Gly, cytoskeleton-associated protein with glycine-rich segment; CCT, chaperonin containing T-complex polypeptide 1; CLIP-170, cytoskeleton-associated protein with