• Keine Ergebnisse gefunden

Problem 3.2: Galerkin equations

N/A
N/A
Protected

Academic year: 2022

Aktie "Problem 3.2: Galerkin equations"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

IWR – Universit¨at Heidelberg Prof. Dr. Guido Kanschat

Due date:15.11.2013

Homework No. 3

Numerical Methods for PDE, Winter 2013/14 Problem 3.1: Trilinearform

ForΩ⊂R2consider the term

c(w;u, v) = (w· ∇u, v), c(·;·,·) :W ×V ×V →R, withW =H01(Ω;R2), and V =H01(Ω).

Note: The semicolon indicates that we will later on usew as data, such thatc(w;., .)is a bilinearform which fits into our existing framework.

(a) Show thatc(·;·,·)is linear in each variable (altogether trilinear) and continuous.

Hint:Show that|c(w;u, v)|is bounded. Use the Sobolev embedding theorem.

(b) Show that the following identity holds:

(w· ∇u, u) =−1

2 ∇·w, u2 .

Hint:The notation

∇·ϕ:=∂x1ϕ1+∂x2ϕ2

denotes the divergence of a sufficiently regular vector fieldϕ(x) = ϕ1(x), ϕ2(x)T .

(c) Deduce an analogous formula forw∈H1(Ω;R2)andu∈H1(Ω)without zero boundary conditions.

Problem 3.2: Galerkin equations

Starting point is the one-dimensional problem

−u00+u=f inΩ = (0,1), for the spaceV =H01(Ω).

We consider the equidistant mesh

xj=jh, j= 0, . . . , N, with h= 1 N

on the intervalΩwithN mesh cellsIj = (xj−1, xj). The finite-dimensional subspaceVhis now the span of piecewise linear functions

ϕj(x) =





x−xj−1

h , ifx∈(xj−1, xj],

xj+1−x

h , ifx∈(xj, xj+1),

0, otherwise.

wherej= 1, . . . , N−1.

(a) Sketch the domainΩwith its subdivision and a reasonable number of functionsϕj.

(b) Argue that the spaceVhcontains exactly all functions which are linear on each cellIj, continuous onΩand have zero boundary conditions.

(c) Set up the Galerkin equations.

(d) Compute the2×2cell matricesAkand cell vectorsbK.

(e) Assemble the cell matrices and cell vectors into the global matrixAand the global vectorb.

(f) Bonus (2 points): Calculate the solution of Galerkin equations for the right hand sidef(x) = 1and plot it forN = 5,10,20,40,100in one figure.

Each problem 6 points.

Referenzen