• Keine Ergebnisse gefunden

Limiters and Riemann solvers – the basic ingredients of Finite Volume schemes

N/A
N/A
Protected

Academic year: 2021

Aktie "Limiters and Riemann solvers – the basic ingredients of Finite Volume schemes"

Copied!
34
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

of Finite Volume schemes

Friedemann Kemm BTU Cottbus

kemm@math.tu-cottbus.de

-1 -0.5 0 0.5 1 1.5 2 2.5 3

-4 -2 0 2 4 6

TVD-region Sweby-region linear 3rd order Lax-Wendroff Beam-Warming Fromm

expansion

shock contact

(2)

We start with 1d linear advection, end with multidimensional nonlinear systems.

System

Multi Dimensional

Nonlinear

Wave equation

Full Gas Dynamics

Burgers Linear Advection

2d Advection

Shock tube

(3)

The simplest discretization of linear advection is unconditionally unstable.

qin+1 qin

∆t aqin+1 aqin−1

2∆x = 0

000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000

111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111

0000000000 0000000000 0000000000 0000000000 0000000000 0000000000

1111111111 1111111111 1111111111 1111111111 1111111111 1111111111

Eigenvalues Stability region

1

−i

−1

i

(4)

Stable schemes are obtained with

better time- or space discretizations.

Change time difference:

Leapfrog qin+1 qin−1

2∆t

Lax-Friedrichs qin+1 12(qin+1 + qin−1)

∆t

Rusanov/LLF qin+1 12(νqin+1 + 2(1 ν)qin + νqin−1)

∆t Change space difference:

Upwind aqin aqin−1

∆x

(5)

The different forms of the upwind scheme lead to different generalizations.

Difference form

qin+1 = qin ν∆qin−1/2

Fluctuation form

qin+1 = qin + ∆x∆t a (−∆win−1/2) , win−1/2 = ∆qin−1/2

Viscous form/Flux form

qin+1 = qin + 2∆x∆t [f (qin+1) f (qin−1)] + 2∆x∆t a [qin+1 2qin + qin−1]

= qin ∆x∆t [Fin+1/2 Fin−1/2]

with Fi+1/2 = f (qi) = 12 [f (qin+1) + f (qin)] 12 |a|∆qi+1/2

(6)

Lax-Wendroff can be written as a correction of first order upwind.

Lax Wendroff

advection

qin+1 = qin

ν + 1

2ν(1 ν)

1

rin 1

∆qin−1/2

with

r = ∆qup

∆qdow n ν = distance covered in ∆t

∆x

(7)

Beam-Warming can be written as a correction of first order upwind.

Beam Warming

advection

qin+1 = qin

ν + 1

2ν(1 ν)

rin

rin rin−1

∆qin−1/2

with

r = ∆qup

∆qdow n ν = distance covered in ∆t

∆x

(8)

Fromm scheme can be written as a correction of first order upwind.

Fromm

advection

qin+1 = qin

ν + 1

2ν(1 ν)

(1 + rin)/2

rin (1 + rin−1)/2

∆qin−1/2

with

r = ∆qup

∆qdow n ν = distance covered in ∆t

∆x

(9)

TVD-schemes can be written as a correction of first order upwind.

General Case

advection

qin+1 = qin

ν + 1

2ν(1 ν)

ϕ(rin)

rin ϕ(rin−1)

∆qin−1/2

with

r = ∆qup

∆qdow n ν = distance covered in ∆t

∆x

(10)

A mean function should be

at least consistent and homogeneous.

ϕ(r) = M(r,1)

Consistency M(a, a) = a ϕ(1) = 1

Inclusion min{a, b} ≤ M(a, b) max{a, b} min{r,1} ≤ ϕ(r) max{r,1}

Homogeneity M(λa,λb) = λM(a, b)

Symmetry M(a, b) = M(b, a) ϕ(1/r) = ϕ(r)/r

Monotonicity M(·, b) , M(a,·) increasing ϕ(r) , r ϕ(1/r) increasing

(11)

The TVD-region is much larger than the Sweby region.

-1 -0.5 0 0.5 1 1.5 2 2.5 3

-6 -4 -2 0 2 4 6

CFL=0.1 TVD

Sweby

-1 0 1 2 3 4 5

-15 -10 -5 0 5 10 15

CFL=0.5 TVD

Sweby

0 5 10 15 20

-20 -10 0 10 20 30

CFL=0.9 TVD

Sweby

2

1 − |ν| ϕ(r)

r ϕ(R) 2

|

−2≤ ϕ(r)

r ϕ(R) 2

(12)

Third order schemes are upwind biased.

-1 -0.5 0 0.5 1 1.5 2 2.5 3

-6 -4 -2 0 2 4 6

CFL=0.1 3rd order

LW BW Fromm

-1 0 1 2 3 4 5

-15 -10 -5 0 5 10 15

CFL=0.5 3rd order

LW BW Fromm

0 5 10 15 20

-20 -10 0 10 20 30

CFL=0.9 3rd order

LW BW Fromm

ϕ3(r) =

1 1 + | 3

+ 1 + |ν|

3 r ϕLW(r) = 1 ϕBW(r) = r

(13)

Limiters might be constructed by sticking to third order as long as possible.

-1 -0.5 0 0.5 1 1.5 2 2.5 3

-6 -4 -2 0 2 4 6 CFL=0.1

θ=1.00 θ=0.75 θ=0.50 MC

-1 0 1 2 3 4 5

-15 -10 -5 0 5 10 15

CFL=0.5 θ=1.00

θ=0.75 θ=0.50 MC

0 5 10 15 20

-20 -10 0 10 20 30 CFL=0.9

θ=1.00 θ=0.75 θ=0.50 MC

ϕθ(r) = minn

maxn

−(1 θ) 2

|ν|, ϕ3(r)o ,

maxn

−(1 θ) 2

1 − |ν|r, θ 2

|ν|ro

, θ 2 1 − |ν|

o

(14)

Superbee-type limiters provide a

good approximation of the amplitude.

0 0.2 0.4 0.6 0.8 1 1.2

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 CFL=0.1

Ultrabee β=2/3 Superbee

0 0.2 0.4 0.6 0.8 1 1.2

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 CFL=0.1

θ=0.50 θ=1.00 MC

Standard example with 200 cells after 10 full rounds (t = 20)

(15)

The squaring effect spoils the

convergence of Superbee type limiters.

0.01 0.1 1

100 1000 10000 100000

CFL=0.1

Superbee Ultrabee β=2/3 Superpower θ=1

0.01 0.1 1

100 1000 10000 100000

CFL=0.9

Superbee Ultrabee β=2/3 Superpower θ=1

L1-norm of the error

(16)

There are more methods to obtain higher order.

PPM

Woodward Colella 1984

generalized to higher orders by Rider, Greenough and Kamm 2005

PHM, PRM, Double logarithmic limiter

Marquina, Xiao and Peng 2004, Artebrandt and Schroll, ˇCada and Torrilhon

ENO/WENO

Harten, Shu, Osher,. . .

measure oscillation of different stencils

(17)

2d transport can be realized by DCU or CTU.

v

CTU

DCU

(18)

One dimensional schemes can be used in multi-d by dimensional splitting.

Godunov

first order

Strang

preserves second order

Lin, Rood (Monthly Weather Review, 1996)

in addition resembles CTU

(19)

Geometric limiting can be done in all geometries.

Structured

direction wise multidimensional

Unstructured grids

Meshless grids (Sonar et al.)

(20)

CFL-independent limiters may be generalized for unstructured grids.

Minmod

Many variants

MC

Barth, Jespersen (1989)

Albada

Tu, Alliabadi (2005)

(21)

Multi-d limiters should be

at least consistent and homogeneous.

Swartz, 1999:

good stencil

bad stencil

(22)

Scalar methods can be applied to systems by characteristic decompositon.

qt + Aqx = 0

A = RΛL w = Lq

wt + Λwx = 0

(23)

The numerical flux for linear advection has many nonlinear counterparts.

Godunov: Numerical flux from exact solution of RP Flux Splitting:

Fi+1/2 = f +(qi) + f (qi+1) Enquist Osher:

f +(q) =

Z q

0

max{f 0(z),0} d z

f (q) =

Z q

0

min{f 0(z),0} d z

Fi+1/2 = 1

2(f (qi+1) + f (qi)) 1 2

Z qi+1

qi

|f 0(z)| d z Linearization (Roe)

(24)

For nonlinear equations, numerical fluxes can be computed by Roe-linearization.

f (qi+1) f (qi) =

Z 1 0

f 0(θqi+1 + (1 θ)qi) d θ

| {z }

=:˜a(qi+1,qi)

(qi+1 qi)

More general:

q = q(w) , b = d q

d w f (q) = F(w) , c = d F d w

∆qi+1/2 = ˜b(qi+1, qi)∆wi+1/2 ∆Fi+1/2 = c˜(qi+1, qi)∆wi+1/2 leads to

˜

a(qi+1, qi) = c˜(qi+1, qi)

˜b(qi+1, qi)

(25)

The scalar concepts can be directly generalized to nonlinear systems.

Godunov Numerical flux from exact solution of RP

Osher-Solomon

Fi+1/2 = 1

2(f(qi+1)+f(qi))1 2

Z

Γ

|f0(z)|dz

other FVS Steger Warming, Vijayasundaram, van Leer, AUSM, Eberle etc.

Roe Linearization parameter vectors

(26)

HLL-type solvers are Roe-type solvers and vice versa.

VRoe = 1

2 |A(q˜ r,ql)|

VHLL = 1 2

SR + SL SR SL

A(q˜ r, ql) SRSL SR SLI

Rusanov/LLF

SR = −SL = max| fastest wave speed in RP

Lax-Friedrichs

SR = −SL = ∆x

∆t maximal allowed wave speed on grid

(27)

Smooth limiters are a

good choice for nonlinear waves.

3 3.5 4 4.5

0 0.5 1 1.5 2 2.5 3

reference solution mixed Superpower and Ultrabee

3 3.5 4 4.5

0 0.5 1 1.5 2 2.5 3

reference solution mixed β=2/3 and Ultrabee

Detail of Shu-Osher problem, t = 1.8, 400 cells

(28)

Characteristic CFL-dependent limiting enhances the quality of TVD-schemes.

0 1 2 3 4 5 6 7

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35

Superbee, primitive Minmod, characteristic Superbee, characteristic Ultrabee, characteristic

Detail of Toro’s test case 3

(29)

Godunov scheme is

not always the best choice.

0 10 20 30 40 50 60 70

0 10 20 30 40 50 60

5 0 10 15 20 30 25

0 10 20 30 40 50 60 70

0 10 20 30 40 50 60 70

0 10 20 30 40 50 60

5 0 10 15 20 30 25

0 10 20 30 40 50 60 70

Godunov HLLE

(30)

Standard carbuncle fix is based on nonlocal data.

flux to compute

strong shock?

strong shock?

(31)

The carbuncle can be addressed from within the Riemann solver.

By entropy consistency Roe 2008

Bouchut 2003/2004

By adjusting viscosity on shear waves Kemm 2008

Nishikawa and Kitamura 2008

0 10 20 30 40 50 60 70

0 10 20 30 40 50 60

0 5 10 15 20 25 30

0 10 20 30 40 50 60 70

HLLEMCC

(32)

JST-schemes choose viscosity terms by indicator functions.

differentiable

mainly for steady states and implicit time discretizations

stabilized by implicit time schemes

naive use yields bad results

viscosity via second and fourth derivatives

(33)

New schemes provide

multidimensional flux calculations.

FVEG

Morton, Warnecke, Lukaˇcova,. . .

2d HLL/HLLC/LFC

Wendroff 1999

Nonstaggered central schemes

Tadmor et al.

(34)

A careful choice of limiters and

Riemann solvers yields fine results.

3 3.5 4 4.5

0 0.5 1 1.5 2 2.5 3

CFL, characteristic, Roe

3 3.5 4 4.5

0 0.5 1 1.5 2 2.5 3

Minmod, primitive, HLLE

Detail of Shu-Osher problem, t = 1.8, 400 cells

Referenzen

ÄHNLICHE DOKUMENTE

In compartmented access structures with upper bounds the goal is to avoid a given percentage of members from all (disjoint) groups in qualified subsets. This problem was introduced

In Chapter 7, using the asymptotics of certain automorphic functions from Chapter 4, we compute an upper bound for the canonical Green’s function when evaluated at two

Abstract The Tamari lattice, thought as a poset on the set of triangulations of a convex polygon with n vertices, generalizes to the higher Stasheff-Tamari orders on the set

explore new boundaries in mass dimension and loops for EFTs of scalar fields, and the structures that appear there and ii) the development of new general techniques to enable

Hence, the model embodies a positive feedback mechanism of diffusion: prices fall with increasing market shares possibly due to learning economies, dynamic

T h e formal apparatus presented here, based on a few refinements on generalized urn schemes, allows quite general analytical accounts of the relationships between some

In this section, through long-time numerical simu- lations, we illustrate the performance of the FVEG method for the linear wave equation system, see [10] for its approximate

The aim of the lecture course is the classification of finite commutative group schemes over a perfect field of characteristic p , using the classical approach by