• Keine Ergebnisse gefunden

Divergence Correction by Modelling Numerical Errors

N/A
N/A
Protected

Academic year: 2021

Aktie "Divergence Correction by Modelling Numerical Errors"

Copied!
47
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Errors

Friedemann Kemm IAG Universit¨at Stuttgart kemm@iag.uni-stuttgart.de

Claus-Dieter Munz IAG Universit¨at Stuttgart munz@iag.uni-stuttgart.de

(2)

What I want to tell you about

• Correction in a simple example

? The problem

? Modelling errors

∗ Transport methods

∗ Generalised Lagrange multiplier methods

? The behaviour of the resulting error equations

(3)

What I want to tell you about

• Correction in a simple example

? The problem

? Modelling errors

∗ Transport methods

∗ Generalised Lagrange multiplier methods

? The behaviour of the resulting error equations

• What about Maxwell- and MHD-equations?

? Corrections in Maxwell equations

? How they come into MHD equations

? The Powell correction

(4)

Motivation

MHD equations:

ρt + ∇ · [ρ~v] = 0 , (ρ~v)t + ∇ ·

ρ~v ·~vT + (p + 1

2B2)I − B · BT

= 0 , Bt + ∇ ·

~v · BT − B ·~vT

= 0 , et + ∇ · h

(e + p + 1

2B2)~v − B(~v · B)i

= 0

(5)

Motivation

MHD equations:

ρt + ∇ · [ρ~v] = 0 , (ρ~v)t + ∇ ·

ρ~v ·~vT + (p + 1

2B2)I − B · BT

= 0 , Bt + ∇ ·

~v · BT − B ·~vT

= 0 , et + ∇ · h

(e + p + 1

2B2)~v − B(~v · B)i

= 0

with divergence constraint

∇ · B = 0 .

(6)

A simple test Problem

A simple conservation law:

Bt = 0

(7)

A simple test Problem

A simple conservation law:

Bt = 0 A simple divergence constraint:

∇ · B = 0

(8)

A simple test Problem

A simple conservation law:

Bt = 0 A simple divergence constraint:

∇ · B = 0 Writing error terms into the equations:

Bt + err1 = 0 err2 + ∇ · B = 0

(9)

A simple test Problem

A simple conservation law:

Bt = 0 A simple divergence constraint:

∇ · B = 0 Writing error terms into the equations:

Bt + err1 = 0 err2 + ∇ · B = 0 Resulting error equation:

err2t − ∇ · err1 = 0

(10)

Modelling errors

What a reasonable error model has to fulfill:

• Simple form of error equations .

(11)

Modelling errors

What a reasonable error model has to fulfill:

• Simple form of error equations .

• Only one new scalar variable. (Otherwise under-determined.)

(12)

Modelling errors

What a reasonable error model has to fulfill:

• Simple form of error equations .

• Only one new scalar variable. (Otherwise under-determined.)

• Diminishing of errors locally and in L1 norm.

(13)

Modelling errors

What a reasonable error model has to fulfill:

• Simple form of error equations .

• Only one new scalar variable. (Otherwise under-determined.)

• Diminishing of errors locally and in L1 norm.

• Easy implementation of the resulting correction.

(14)

Modelling errors(2)

Possible forms of the error equation:

• transport equation

• wave equation

• heat equation

• Poisson equation

• telegraph equation

(15)

Transport methods

Model:

err1 = −ψv˜ (˜v ∈ Rn) , err2 = ψ .

Error equation:

ψt + ∇ · (ψv) = 0˜

Implementation:

Bt = −(∇ · B)˜v

(16)

Characteristic solution of error equation

Quasi-linear form:

ψt + ˜v∇ψ = −(∇ · v)ψ˜

Characteristics:

˙

x(t) = ˜v(x(t), t)

Solution along characteristics:

ψ(x(t), t) = ψ0eR0t∇·v(x(s),s)˜ ds

(17)

How to choose v ˜

• Should point to the outward on the boundary. (Diminish L1-norm.)

(18)

How to choose v ˜

• Should point to the outward on the boundary. (Diminish L1-norm.)

• Should have positive (at least nonnegative) Divergence. (Diminish locally.)

(19)

How to choose v ˜

• Should point to the outward on the boundary. (Diminish L1-norm.)

• Should have positive (at least nonnegative) Divergence. (Diminish locally.) Examples:

Star-region with respect to the origin:

˜

v(x) = v0 x

(20)

How to choose v ˜

• Should point to the outward on the boundary. (Diminish L1-norm.)

• Should have positive (at least nonnegative) Divergence. (Diminish locally.) Examples:

Star-region with respect to the origin:

˜

v(x) = v0 x

Higher dimensional analogue of an annulus ({x ∈ Rn : 0 < r < kxk2 < R}):

˜

v(x) =

v0 x

1 − kxr˜k2

if kxk2 ≥ r˜ v0kxxk

2

1

˜

rkkx1kk 2

if kxk2 < r˜ (r < r < R, k˜ ≥ n − 1)

(21)

One dimensional example

For v˜ = v0x the solution for ψ is:

ψ(x, t) = ψ0(x · ev0t)ev0t Special cases:

ψ0(x) = x ⇒ ψ(x, t) = x · e2v0t . ψ0(x) =

N

X

j=0

αjxj ⇒ ψ(x, t) =

N

X

j=0

αjxj e(j+1)v0t .

ψ0(x) = 1

x ⇒ ψ(x, t) = 1

x .

(22)

Generalised Lagrange multiplier methods (GLM)

Model:

err1 = ∇ψ ,

err2 = g(ψ, ψt) . Error equation:

g(ψ, ψt)t − ∆ψ = 0 .

(23)

Generalised Lagrange multiplier methods (GLM)

Model:

err1 = ∇ψ ,

err2 = g(ψ, ψt) . Error equation:

g(ψ, ψt)t − ∆ψ = 0 . Evolution of the errors:

g(err1,err1t) − ∇(∇ · err1) = 0 , g(err2,err2t) − ∆ err2 = 0 .

(24)

Different forms of GLM-Correction

Hyperbolic correction: g(ψ, ψt) = 1

c2ψt → wave equation.

(25)

Different forms of GLM-Correction

Hyperbolic correction: g(ψ, ψt) = 1

c2ψt → wave equation.

Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation.

(26)

Different forms of GLM-Correction

Hyperbolic correction: g(ψ, ψt) = 1

c2ψt → wave equation.

Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation.

Elliptic correction: g(ψ, ψt) ≡ 0 → Poisson equation.

∇ψ as Lagrange multiplier.

Leads to projection method.

(27)

Different forms of GLM-Correction

Hyperbolic correction: g(ψ, ψt) = 1

c2ψt → wave equation.

Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation.

Elliptic correction: g(ψ, ψt) ≡ 0 → Poisson equation.

∇ψ as Lagrange multiplier.

Leads to projection method.

Mixed type correction: g(ψ, ψt) = 1

c2ψt + 1

κψ → telegraph equation.

(28)

Properties of the different forms

Hyperbolic correction: Cheap in Computation. Conservation of errors (→ absor- bing boundary conditions).

(29)

Properties of the different forms

Hyperbolic correction: Cheap in Computation. Conservation of errors (→ absor- bing boundary conditions).

Parabolic correction: Restrictive time step condition for explicit computation.

High cost for implicit computation.

(30)

Properties of the different forms

Hyperbolic correction: Cheap in Computation. Conservation of errors (→ absor- bing boundary conditions).

Parabolic correction: Restrictive time step condition for explicit computation.

High cost for implicit computation.

Elliptic correction: Expensive in computation.

(31)

Properties of the different forms

Hyperbolic correction: Cheap in Computation. Conservation of errors (→ absor- bing boundary conditions).

Parabolic correction: Restrictive time step condition for explicit computation.

High cost for implicit computation.

Elliptic correction: Expensive in computation.

Mixed type correction: Cheap in computation. Errors not conserved (→ almost no care to be taken on boundary conditions). Our favourite!

(32)

Convergence results

Sonja Gutmann (2000):

For the GLM-corrected system of the hyperbolic, parabolic or mixed type with initial values

B0 ∈ L2(Ω) , ψ0 ≡ 0 and boundary values

• Homogeneous Dirichlet (parabolic correction).

• ψ − B · ~n = 0 (hyperbolic and mixed type correction).

the (weak) solution B converges to the divergence free part of B0.

(33)

Travelling wave solutions

Ansatz:

err2(x, t) = ei(~kxωt) · eαt , (α, ω ∈ R, ~k ∈ Rn) Hyperbolic correction:

err2 = ei(~kx±ck~kk2t) . Parabolic correction:

err2 = ei~kx · eκ~k2t . Mixed type correction:

err2 =





 ei(

~kx±c r

~k2 c2

2 t)

· ec

2

t if ~k2c22 , ei~kx · e

c2 t±c

r

c2

2~k2 t

if ~k2c22 .

(34)

Corrections in the Maxwell equations

Et − c2(∇ × B) + fehl1 = − j ε0 , Bt + (∇ × E) + err1 = 0 ,

∇ · E + fehl2 = q ε0 ,

∇ · B + err2 = 0 . Error equations:

fehl2t − ∇ · fehl1= 1

ε0(qt + ∇ · j) , err2t − ∇ · err1= 0 .

(35)

MHD equations deduced with corrected Maxwell equations

ρt + ∇ · [ρ~v] = 0 , (ρ~v)t + ∇ ·

ρ~v ·~vT + (p + 1

2B2)I − B · BT

= fehl1×B − (∇ · B)B , Bt + ∇ ·

~v · BT − B ·~vT

= −err1 , et + ∇ · h

(e + p + 1

2B2)~v − B(~v · B)i

= −~v ·

fehl1×B

−(~v · B)(∇ · B) − B·err1 , fehl2 − ∇ · [~v × B] = 0 ,

err2 + ∇ · B = 0 .

(36)

MHD equations corrected directly

ρt + ∇ · [ρ~v] = 0 , (ρ~v)t + ∇ ·

ρ~v · ~vT + (p + 1

2B2)I − B · BT

= −fehl1 , Bt + ∇ ·

~v · BT − B ·~vT

= −err1 , et + ∇ · h

(e + p + 1

2B2)~v − B(~v · B)i

= 0 , fehl2 − ∇ · [~v × B] = 0 , err2 + ∇ · B = 0 . Error equation for fehl involves most state variables.

Error equation for err same as for Maxwell and simple problem.

(37)

The Powell correction

ρt + ∇ · [ρ~v] = 0 , (ρ~v)t + ∇ ·

ρ~v ·~vT + (p + 1

2B2)I − B · BT

= −(∇ · B)B , Bt + ∇ ·

~v · BT − B ·~vT

= −err1 , et + ∇ · h

(e + p + 1

2B2)~v − B(~v · B)i

= 0 , err2 + ∇ · B = 0 With transport method for err and

˜

v = ~v .

(38)

Numerical Results for MHD

Divergence errors:

a) without correction, b) Powell correction, c) GLM correction

(39)

Numerical Results for MHD

Grid adaption:

a) without correction, b) Powell correction, c) GLM correction

(40)

Numerical Results for MHD

B-Field:

B1-component: a) Powell, b) GLM B2-component: a) Powell, b) GLM

(41)

Numerical Results for MHD

Norm of divergence error:

0 2 4 6 8 10 12

0 0.05 0.1 0.15 0.2 0.25

L1(|divBjmp|)

time cp = 2.0

cp = 10.0 Powell no correction

0 200 400 600 800 1000 1200 1400 1600 1800

0 0.05 0.1 0.15 0.2 0.25

max(|divBjmp|)

time cp = 2.0

cp = 10.0 Powell no correction

L1 norm, sup norm.

(42)

Conclusions

• Error modelling gives insight in the known correction methods.

(43)

Conclusions

• Error modelling gives insight in the known correction methods.

• Error modelling is a platform for the development of better correction schemes.

(44)

Conclusions

• Error modelling gives insight in the known correction methods.

• Error modelling is a platform for the development of better correction schemes.

• The mixed type is the preferable GLM method.

(45)

Conclusions

• Error modelling gives insight in the known correction methods.

• Error modelling is a platform for the development of better correction schemes.

• The mixed type is the preferable GLM method.

• Divergence correction makes the scheme more stable.

(46)

Conclusions

• Error modelling gives insight in the known correction methods.

• Error modelling is a platform for the development of better correction schemes.

• The mixed type is the preferable GLM method.

• Divergence correction makes the scheme more stable.

• A good Divergence correction scheme saves computation time on adapted grids.

(47)

Conclusions

• Error modelling gives insight in the known correction methods.

• Error modelling is a platform for the development of better correction schemes.

• The mixed type is the preferable GLM method.

• Divergence correction makes the scheme more stable.

• A good Divergence correction scheme saves computation time on adapted grids.

• Good choice of parameters in GLM-methods?

Referenzen

ÄHNLICHE DOKUMENTE

In instances where the tax authorities refuse to allow input VAT deduction in the case of where there is some degree of specification, albeit inadequate, it is essential to

While control logic seems to be less prone to faults induced by path delays [Bl04], it will also need capabilities for on-line error detection and correction.. In a typical

As future work we plan to further improve our implicit rating mechanism by considering the existing explicit ratings on the Android Market, and including time spans

The systematic height errors of the ZY3 DSM, based on orientation by bias correction with affine transformation, against the reference DSM from IGN (figure 2) are obvious – in

2 Laboratory for Critical Care Computational Intelligence, Department of Intensive Care Medicine, Amsterdam Medical Data Science, Amsterdam UMC, Vrije Universiteit, Amsterdam,

This way we know that we have introduced a well-formed dependency tree (since its annotation belonged to a different tree before) to the corpus and the exact number of

• If a category is just used in very few gram- mar rules, the usage of a wrong path vari- able by the grammar developer can result in the determination of incomplete left or

A lin- ear artifact correction model is derived within a Bayesian multi-task learning (MTL) framework, which captures in- fluences of artifact sources on EEG channels across dif-