• Keine Ergebnisse gefunden

Exercise sheet 6. To be handed in on Tuesday, 05.06.2018.

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise sheet 6. To be handed in on Tuesday, 05.06.2018. "

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

V4E2 - Numerical Simulation

Sommersemester 2018 Prof. Dr. J. Garcke

Teaching assistant: Biagio Paparella Tutor: Marko Rajkovi´ c (marko.rajkovic@uni-bonn.de)

Exercise sheet 6. To be handed in on Tuesday, 05.06.2018.

Definition 1 (Invariance by translation). Let’s suppose to have an uniform infinite space grid. A scheme S is said to be invariant by translation (or simply invariant ) if, defined the translation operator Θ i such that

i V ) j = V j+e

i

, we have for any i = 1, . . . , d

S(∆, Θ i V ) = Θ i S(∆, V ) Exercise 1. (A condition for Lipschitz stability)

We use the notation

D i,j [V ] = v j+e

i

− v j

∆x i .

Prove that a monotone, conserving constants, invariant scheme satisfies the inequality:

kD i [S(V )]k kD i [V ]k ≤ 1 This condition is commonly referred as Lipschitz stability.

(3 Punkte) From now on we consider the linear 1-dimensional advection equation with constant coefficient:

u t (x, t) + cu x (x, t) = 0, (x, t) ∈ R × (0, T ] u(x, 0) = u 0 (x)

Exercise 2. (The forward in space and time scheme) Consider the forward in time, forward in space scheme:

0 = v i j+1 − v j i

∆t + c v j i+1 − v j i

∆x We set c = 1 and initial conditions:

u 0 (x) =

( 1 −1 ≤ x ≤ 0, 0 elsewhere.

Consequently, we use as initial condition for S ∆

v 0 i =

( 1 −1 ≤ i∆x ≤ 0, 0 elsewhere.

What can you observe concering convergence of the scheme for the equation stated above?

(Hint: an analytic solution is provided by u(x, t) = u 0 (x − ct))

(4 Punkte)

1

(2)

Exercise 3. (Numerical experiments - very important!)

Assume u 0 ∈ C 1 ( R ). First, find a solution to the advection equation by using the methods of characteristics. In this example, we condider a compact space domain Ω = [0, 10] (instead of the full R ) and boundary conditions u(0, t) = u 0 (−ct), u(10, t) = u 0 (10 − ct).

Then, implement (using a computer and an environment of your choice, for example Python/- Numpy):

• The forward in time, forward in space scheme (the one in the previous exercise):

0 = v j+1 i − v i j

∆t + c v j i+1 − v i j

∆x .

• the forward in time - centered in space (FTCS) scheme:

v i j+1 = v i j − c∆t

2∆x (v j i+1 − v j i−1 ),

• the Upwind scheme:

v j+1 i = v i j − c∆t

∆x (v j i − v j i−1 )

• (if c > 0) the Lax-Scheme:

v j+1 i = 1

2 (v j i+1 + v i−1 j ) − c∆t

2∆x (v j i+1 − v i−1 j ) for 0 < i < 10, and the bondary conditions as above in the remaining cases.

We choose parameters:

• Ω = [0, 10]

• u 0 (x) = e −10(x−2)

2

• ∆x = ∆t = 0.05

• c = 0.5

Plot the approximated solutions for time t = 0, 10, 50, 100, 150. Play with the parameters

∆x, ∆t and the velocity c such that the so called CFL condition is not fulfilled anymore, i.e.

c∆t

∆x > 1. Is there something interesting to observe comparing the plots?

Hint: also when the CFL condition is satisfied, when the time increases...something unexpected might happen...try then to repeat the approximation, but with a finer meshsize...what do you observe?

(9 Punkte)

2

Referenzen

ÄHNLICHE DOKUMENTE

We provide some evidence that the effects of parental migration is heterogenous: Parental migration from Sri Lanka does not affect children’s education on average, but

Versteegh, MM and Attema, AE and Oppe, M and Devlin, NJ and Stolk, EA. Erasmus

The other accusations of ―illegality‖ made in the CAIC repor t target prior administrations, charging them with having violated either mostly unspecified

Russian geo-political hard power may have trumped EU soft power in the short-run in both Armenia and Ukraine, but the democratic power of the Ukrainian people in alliance with

With a better understanding of why some issues gain policy traction while others are neglected or obstructed, advocates for women’s rights will be better equipped to articulate

Building on the expertise and experience of its staff and advisors, CNAS engages policymakers, experts and the public with innovative, fact-based research, ideas and analysis to

E-mail address:Ulrike.Nett@uni-konstanz.de (U.E. The goal of the present study was to contribute to systematic theory driven development and evaluation of scales

focal population with a genotype adapted to the absence of the partner, and