• 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 11/12 Fachbereich Mathematik und Statistik

S. Volkwein, M. Gubisch, R. Mancini, S. Trenz

Übungen zu Theorie und Numerik partieller Differentialgleichungen

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

Sheet 4 Deadline: 20.01.2012, 10:10 o’clock before the Lecture Exercise 10 (FDM for the 1D heat equation) (4 Points) Let Ω = (a, b) ⊆ R . Let T > 0, Θ := (0, T ), Q := Θ × Ω und Σ := Θ × ∂ Ω.

Consider the linear onedimensional heat equation

y t (t, x) − σ∆y(t, x) = f (t, x) for all (t, x) ∈ Q y(t, x) = 0 for all (t, x) ∈ Σ y(0, x) = y 0 (x) for all x ∈ Ω

(1)

with constant coefficient σ > 0, inhomogeneity f ∈ C 0 (Q) and initial value y 0 ∈ C 0 (Ω).

1. Let ξ = (x 0 , ..., x n+1 ) an equidistant discretization of Ω. Use the central difference ¯ approximation for ∆y to approximate (1) by an ordinary system of differential equations for the unknowns y j (t) ≈ y(t, x j ).

2. Write this system in matrix-vector form

Y ˙ (t) + AY (t) = F (t), Y (0) = Y 0 . (2) 3. Approximate the time derivatives now by backward differences on an equidistant discretization of [0, T ]. Determine the linear equations and the matrix-vector form that arise by solving (2) with the implicit Euler method.

4. What disadvantage arises if the time derivatives are approximated by central differ- ences?

Exercise 11 (Weak formulation and finite elements) (4 Points) Consider the same situation as in Exercise 10.

1. Define the family (φ i ) i∈I ⊆ C 0 ([a, b], R ) of hat functions φ i , I = {1, ..., n}, with φ i (x) = 0 for x / ∈ [x i−1 , x i+1 ], φ i (x i ) = 1 and φ i linear on [x i−1 , x i ] and on [x i , x i+1 ].

2. Let z 0 , ..., z n+1 ∈ R . Define the function z ∈ C 0 ([a, b], R ) piecewise linear on the

intervals [x i , x i+1 ] with z(x i ) = z i .

(2)

3. To solve (1) numerically, we make the ansatz ˆ

y(t, x) =

n

X

i=1

g i (t)φ i (x)

for desired time-dependent coefficients g i (t). Write down the weak formulation for (1) with test functions φ j to set up a system of equations for the coefficient functions.

4. Introduce matrices Φ, Ψ ∈ R n×n and vectors g 0 , φ(t) ∈ R n such that the equations above can be written in matrix-vector form

Φ ˙ g(t) + σΨg(t) = ϕ(t)

Φg(0) = g 0 . (3)

Φ is called the “mass matrix”, Ψ the “stiffness matrix”. This terminology comes from the classical elasticity theory.

Remark: In this exercise, it is not necessary to calculate the L 2 -scalar products arising in the weak formulation explicitely.

Exercise 12 (FEM for the 1D heat equation) (4 Points) (1) shall be solved now by the Finite Element Method.

1. Calculate the L 2 -scalar product

i , zi L

2

([a,b], R ) =

b

Z

a

φ i (x)z(x)dx

with the interpolated function z from Exercise 11.

Use this to determine the matrices Φ and Ψ explicitely.

2. Replace y 0 and f(t) by such continuous, piecewise linear functions to approximate g 0 and φ(t).

Alternatively, approximate the integrals arising for g 0 and φ(t) by the trapezoidal rule. What do you observe?

3. Use backward differences on an equidistant discretization for [0, T ] and use the im- plicit Euler method to solve (1) as a system of linear equations. State the coefficient matrices explicitely.

4. Why can’t the family (φ i ) i∈I be applied in the case of inhomogeneous Dirichlet

boundary conditions y(t, a) = y a (t), y (t, b) = y b (t) with non-zero boundary func-

tions y a , y b ∈ C 0 ([0, T ], R )?

Referenzen

ÄHNLICHE DOKUMENTE

Use the help function by typing “help <functionname>” 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. ,

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 p and

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