• Keine Ergebnisse gefunden

Übungen zu Theorie und Numerik partieller Differentialgleichungen

N/A
N/A
Protected

Academic year: 2021

Aktie "Übungen zu Theorie und Numerik partieller Differentialgleichungen"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Universität Konstanz WS 10/11 Fachbereich Mathematik und Statistik

S. Volkwein, O. Lass, R. Mancini

Übungen zu Theorie und Numerik partieller Differentialgleichungen

http://www.math.uni-konstanz.de/numerik/personen/volkwein/teaching/

Sheet 4 Submission: 17.01.2011, 11:00 o’clock, Box 18

Exercise 10 (4 Points)

Let Ω = (a, b)⊂R. Decompose Ωinto subdomains Ωi using the mesh {xi}Ni=0: a=x0 < x1 <· · ·< xN−1 < xN =b.

Set Ωi = (xi−1, xi) for i = 1, . . . , N. Furthermore, we introduce the local step size notation hi := xi −xi−1 for i = 1, . . . , N. Compute the piecewise linear and globally continuous nodal basis functions. Further draw graphs of the basis function and compute the derivatives. Repeat this for piecewise quadratic and globally continuous nodal basis functions.

Exercise 11 (4 Points)

Let us consider the boundary value problem

−(p(x)u0)0+q(x)u=f(x), x∈Ω (1)

u(0) = 0, u(1) = 0, (2)

where Ω = (0,1), p∈C(Ω), q ∈C(Ω), f ∈L2(Ω) with p(x)≥c > 0 and q(x)≤0 for all x∈Ω.

1. State the weak formulation of the problem.

2. Using piecewise linear and globally continuous nodal basis functions on a uniform mesh of size h= 1/N, N ≥2, write down the finite element approximation to this problem if pand q are assumed to be constant. What do you observe when looking at the obtained system compared to a finite difference discretization?

3. Replace (2) by

u(0) = 0 and u0(1) = 0.

Write down the finite element approximation to this new problem (i.e., repeat steps 1 and 2). What changes compared to the Dirichlet problem?

(2)

Exercise 12 (4 Points) GivenA∈RN×N a symmetric and positive definite matrix. The vectorsd0, d1, . . . , dN−1 ∈ RN are called A-orthogonal if dTi Adj = 0 for i 6= j, 0 ≤ i, j ≤N −1 and dTi Adi 6= 0 for 0≤i≤N −1.

a) Verify that d0, d1, . . . , dN−1 are a basis of RN.

b) Given the equation Ax = b show that the solution x = A−1b can be written with the basis d0, . . . , dN−1 as:

x =

N−1

X

k=0

αkdk with αk = dTkAx

dTkAdk, k = 0, . . . , N −1.

c) Show that for every x0 ∈RN the sequence

xk+1 = xkkdk with αk = −dTk(Axk−b) dTkAdk for k ≥0gives the solution xN =A−1b after at most N steps.

Referenzen

ÄHNLICHE DOKUMENTE

Notice that using sparse matrices and avoiding unnecessary loops speeds up the running time of the program and reduces the needed processor memory

Use the help function by typing “help &lt;functionname&gt;” in the Matlab con- sole for getting important information about all functions you do

This kind of discretization is often used in the context of convection dominated equations.... Discretize the first derivative of v in the symmetric difference for (av 0 ) 0 by

Hint: For needed definitions see the lecture notes on Numerik gewöhnlicher Differential- gleichungen by

Universität Konstanz WS 10/11 Fachbereich Mathematik und StatistikS. ,

Universität Konstanz WS 10/11 Fachbereich Mathematik und

Solve (1) by using the Partial Differential Equation Toolbox in Matlab using the graphical user interface pdetool.. Follow the steps Draw, Boundary, PDE, Mesh

Don’t forget to lable the plots (title, xlabel, ylabel, zlabel, .... Document your code well and write a report including