• Keine Ergebnisse gefunden

A general approach to divergence correction in MHD

N/A
N/A
Protected

Academic year: 2021

Aktie "A general approach to divergence correction in MHD"

Copied!
43
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

MHD

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

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

(2)

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

(3)

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

Complicated! → Skip all terms without influence on ∇ · B-problem

(4)

A simplified system

The system:

Bt = 0

∇ · B = 0

Over-determined!

(5)

A simplified system

The system:

Bt = 0

∇ · B = 0

Over-determined!

→ Writing artificial error terms into the equations:

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

err2t − ∇ · err1 = 0

(6)

Modelling the artificial error terms

What a reasonable error model has to fulfill:

• Simple form for error equations

(7)

Modelling the artificial error terms

What a reasonable error model has to fulfill:

• Simple form for error equations

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

(8)

Modelling the artificial error terms

What a reasonable error model has to fulfill:

• Simple form for error equations

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

• Diminish errors locally (L norm) and globally (L1 norm)

(9)

Modelling the artificial error terms

What a reasonable error model has to fulfill:

• Simple form for error equations

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

• Diminish errors locally (L norm) and globally (L1 norm)

• Easy implementation of the resulting correction

(10)

Two general possibilities

1. Algebraic expressions to model the artificial error terms

→ Transport Methods

2. Differential expressions to model the artificial error terms

→ Generalised Lagrange multiplier methods (GLM)

(11)

Transport methods

Model:

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

Error equation:

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

Bt = −(∇ · B)˜v

(12)

Properties of the error equation

Quasi-linear form:

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

(13)

Properties of the error equation

Quasi-linear form:

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

Therefore v˜ should

• be directed to the outward on the boundary (diminish globally)

• have positive (at least nonnegative) divergence (diminish locally)

(14)

Generalised Lagrange multiplier methods (GLM)

Model:

err1 = ∇ψ

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

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

(15)

Different forms of GLM-Correction

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

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

c2ψt → wave equation

(16)

Different forms of GLM-Correction

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

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

c2ψt → wave equation Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation

(17)

Different forms of GLM-Correction

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

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

c2ψt → wave equation Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation

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

(18)

Different forms of GLM-Correction

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

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

c2ψt → wave equation Parabolic correction: g(ψ, ψt) = 1

κψ → heat equation

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

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

c2ψt + 1

κψ → telegraph equation

(19)

Properties of the different forms

Hyperbolic correction: Cheap in Computation Conservation of errors Consistent with physics

(20)

Properties of the different forms

Hyperbolic correction: Cheap in Computation Conservation of errors Consistent with physics

Parabolic correction: Restrictive time step condition for explicit computation High cost for implicit computation

(21)

Properties of the different forms

Hyperbolic correction: Cheap in Computation Conservation of errors Consistent with physics

Parabolic correction: Restrictive time step condition for explicit computation High cost for implicit computation

Elliptic correction: Expensive in computation

(22)

Properties of the different forms

Hyperbolic correction: Cheap in Computation Conservation of errors Consistent with physics

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 damped (not conserved) No resonance effects

(23)

Back to the full MHD-system

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

ρv · vT + (p + 1

2B2)I − B · BT

= 0 Bt + ∇ ·

v · BT − B · vT

= −err1 et + ∇ · h

(e + p + 1

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

= 0 err2 + ∇ · B = 0

(24)

Back to the full MHD-system

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

ρv · vT + (p + 1

2B2)I − B · BT

= 0 Bt + ∇ ·

v · BT − B · vT

= −err1 et + ∇ · h

(e + p + 1

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

= 0 err2 + ∇ · B = 0

Transport method with v˜ = v → Powell correction

(25)

Numerical implementation

Transport method:

Like Powell correction with v replaced by artificial v˜ in the right hand side term

(26)

Numerical implementation

Transport method:

Like Powell correction with v replaced by artificial v˜ in the right hand side term

GLM-Methods:

Elliptic: Projection method.

(27)

Numerical implementation

Transport method:

Like Powell correction with v replaced by artificial v˜ in the right hand side term

GLM-Methods:

Elliptic: Projection method.

Parabolic: Substitute ∇ · B-equation in evolution of B Solve like usual viscosity term

(28)

Numerical implementation

Transport method:

Like Powell correction with v replaced by artificial v˜ in the right hand side term

GLM-Methods:

Elliptic: Projection method.

Parabolic: Substitute ∇ · B-equation in evolution of B Solve like usual viscosity term

Hyperbolic: Operator splitting: Corrected test system as predictor and standard MHD as corrector

(29)

Numerical implementation

Transport method:

Like Powell correction with v replaced by artificial v˜ in the right hand side term

GLM-Methods:

Elliptic: Projection method.

Parabolic: Substitute ∇ · B-equation in evolution of B Solve like usual viscosity term

Hyperbolic: Operator splitting: Corrected test system as predictor and standard MHD as corrector

Mixed: Like hyperbolic; just multiply ψ by ec

2

κ ∆t after each time step

(30)

The 2d Riemann problem

0

1 4 2

3

x

y

1 → 2: rarefaction wave

2 → 3: downward running shock 3 → 4: left running shock

4 → 1: general RP with several waves

(31)

Numerical Results for MHD

B-Field:

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

(32)

Numerical Results for MHD

Divergence errors:

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

(33)

Numerical Results for MHD

Grid adaption:

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

(34)

Conclusions

• Error modelling gives insight into the known correction methods

(35)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

(36)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

(37)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

(38)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

• Best choice of parameters in GLM-methods?

(39)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

• Best choice of parameters in GLM-methods?

• Quasi neutrality?

(40)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

• Best choice of parameters in GLM-methods?

• Quasi neutrality?

(41)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

• Best choice of parameters in GLM-methods?

• Quasi neutrality?

(42)

Conclusions

• Error modelling gives insight into the known correction methods

• Error modelling is a platform for development of improved correction schemes

• Powell correction can be enhanced using an artificial velocity

• Optimised divergence correction scheme saves computation time on adapted grids

• Best choice of parameters in GLM-methods?

• Quasi neutrality?

(43)

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.

Referenzen

ÄHNLICHE DOKUMENTE

Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.. The original article can be found online

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. The online version of the original article can

The published paper has been carefully checked, and we have verified that the equation drawn in the published Fig. 4a was made with the correct equation, as is the case with

Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. The original article can be found online

Therefore, the copyright of the article has been changed on 4 June 2021 to © The Author(s), under exclusive licence to Springer Nature Switzerland AG 2021 with all rights

5 1st Clinic of Neurology, Italian Society of Neurology, AOU, University of Campania “Luigi Vanvitelli”, Caserta, Italy Published online: 10 July 2021. Neurological Sciences

Publisher’s Note Springer Nature remains neutral with regard to juris- dictional claims in published maps and institutional

Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.. The original article can be found online