• Keine Ergebnisse gefunden

Scientific Computing II

N/A
N/A
Protected

Academic year: 2021

Aktie "Scientific Computing II"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Scientific Computing II

Summer term 2018 Priv.-Doz. Dr. Christian Rieger

Christopher Kacwin

Sheet 6

Submission onThursday, 21.6.18.

Exercise 1. (1D heat equation)

We again consider Exercise 1 from the previous sheet. There, we used the implicit Euler scheme and a finite element approach to arrive at the discrete system (1). A genera- lization of the time discretization can be obtained with the θ-rule: For θ ∈ [0,1], one

approximates ˆ b

a

g(x) dx≈(b−a)(θg(a) + (1−θ)g(b)).

Using this approach instead of implicit Euler, derive the more general time-space dis- cretized formulation

M+ (1−θ)T NK

yn=θT

NLn−1+(1−θ)T NLn+

M−θT NK

yn−1, n= 1, . . . , N . (6 points) Programmieraufgabe 1. (1D heat equation)

• Modify your code from the last exercise sheet to solve the θ-rule based system of equations instead. Try to solve the heat equation from the previous sheet with T = 1, f ≡0,l≡r ≡0, and

y(x,0) =

(5 x≤0.5 0 else.

Forθ= 0,0.5,1, run your program for different choices ofm, N.

• For certain choices of m, N, one can see ’ripples’ in the solution which get smoo- thened out rather slowly. Try to reproduce this behaviour with your program. Does this have an effect onL2/H1-convergence?

(14 points) The programming exercise should be handed in either before/after the exercise class on 21.6.18 (bring your own laptop!) or in the HRZ-CIP-Pool, after making an appoint- ment at ’angelina.steffens@uni-bonn.de’. All group members need to attend the pre- sentation of your solution. Closing date for the programming exercise is the 21.6.2018.

You can choose the programming language yourself.

1

Referenzen

ÄHNLICHE DOKUMENTE

You have to ensure that you have copied the source code of your solved exercises to the server before the exercise class starts.. If necessary, ask your tutor how to copy files

In this exercise we want to show that the model construction for FO 2 -formulae from the lecture is optimal in the following sense: in general it does not suffice to take only

Prove that the Douglas-Rachford Splitting (14.18) is a valid splitting scheme.

Although a situation of absolute and direct political dependence between the Soviet Republic of Georgia and the Soviet Union existed, there are some indications that Georgia –

Every processor can access every shared variable with atomic read and write operations (i.e., a process can either read from or write to a shared variable and the system guarantees

Dabei unterscheiden sich die Funktionen der Virenschutzprogramme für Smartphone und Tablet leicht von der PC-Version: Diese Virenschutzprogramme kont - rollieren in der Regel schon

Implement the required classes in Java without the support of an IDE (e.g. on a sheet of paper). All attributes should be accessible only using getters and setters.. b) Not only

The government announcement of its intention to enforce payment rescheduling immediately led both Moody’s and Standard services to heavily downgrade the Islamic sukuk along with