MHD
Friedemann Kemm IAG Universit¨at Stuttgart kemm@iag.uni-stuttgart.de
Claus-Dieter Munz IAG Universit¨at Stuttgart munz@iag.uni-stuttgart.de
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
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
A simplified system
The system:
Bt = 0
∇ · B = 0
Over-determined!
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
Modelling the artificial error terms
What a reasonable error model has to fulfill:
• Simple form for error equations
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)
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)
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
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)
Transport methods
Model:
err1 = −ψv˜ (˜v ∈ Rn) err2 = ψ
Error equation:
ψt + ∇ · (ψv) = 0˜ Implementation:
Bt = −(∇ · B)˜v
Properties of the error equation
Quasi-linear form:
ψt + ˜v∇ψ = −(∇ · v)ψ˜
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)
Generalised Lagrange multiplier methods (GLM)
Model:
err1 = ∇ψ
err2 = g(ψ, ψt) Error equation:
g(ψ, ψt)t − ∆ψ = 0
Different forms of GLM-Correction
g(ψ, ψt)t − ∆ψ = 0
Hyperbolic correction: g(ψ, ψt) = 1
c2ψt → wave equation
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
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
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
Properties of the different forms
Hyperbolic correction: Cheap in Computation Conservation of errors Consistent with physics
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
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
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
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
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
Numerical implementation
Transport method:
Like Powell correction with v replaced by artificial v˜ in the right hand side term
Numerical implementation
Transport method:
Like Powell correction with v replaced by artificial v˜ in the right hand side term
GLM-Methods:
Elliptic: Projection method.
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
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
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 e−c
2
κ ∆t after each time step
The 2d Riemann problem
0
1 4 2
3
xy
1 → 2: rarefaction wave
2 → 3: downward running shock 3 → 4: left running shock
4 → 1: general RP with several waves
Numerical Results for MHD
B-Field:
B1-component: a) Powell, b) GLM B2-component: a) Powell, b) GLM
Numerical Results for MHD
Divergence errors:
a) without correction, b) Powell correction, c) GLM correction
Numerical Results for MHD
Grid adaption:
a) without correction, b) Powell correction, c) GLM correction
Conclusions
• Error modelling gives insight into the known correction methods
Conclusions
• Error modelling gives insight into the known correction methods
• Error modelling is a platform for development of improved correction schemes
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
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
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?
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?
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?
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?
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?
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.