28
Laboratori de Càlcul Numèric (LaCàN) Universitat Politècnica de Catalunya - BarcelonaTech (Spain) http://www.lacan.upc.edu/ Discontinuous Galerkin for diffusion problems: historical overview Antonio HUERTA Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · SECOND-ORDER OPERATORS IN DG Motivation § Discretization of selft-adjoint operators in convection dominated problems: Navier-Stokes, convection-diffusion equation, Euler equations with artificial viscosity for shock capturing,How to treat the self-adjoint operator with a DG formulation? Interior Penalty Method (IPM) Local Discontinuous Galerkin (LDG) 2

Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Laboratori de Càlcul Numèric (LaCàN) Universitat Politècnica de Catalunya - BarcelonaTech (Spain)

http://www.lacan.upc.edu/

Discontinuous Galerkin for diffusion problems: historical overview

Antonio HUERTA

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

SECOND-ORDER OPERATORS IN DG Motivation

§ Discretization of selft-adjoint operators in convection dominated problems: Navier-Stokes, convection-diffusion equation, Euler equations with artificial viscosity for shock capturing,…

How to treat the self-adjoint operator with a DG formulation?

Interior Penalty Method (IPM) Local Discontinuous Galerkin (LDG) …

2

Page 2: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Interior Penalty Method (IPM)

§ Model problem over computational domain

§ Model problem over “BROKEN” computational domain

3

for e = 1, . . . , nel

IMPOSE CONTINUITY OF SOLUTION AND FLUXES

Douglas N. Arnold (1982)

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Definitions• Computational domain:

• With boundary and

• is partitioned in disjoint subdomains s.t.

• with boundaries , which define an internal interface

4

⌦ ⇢ Rnsd

nel⌦ ⇢ Rnsd ⌦i

@⌦ = �D [ �N �D \ �N = ;

⌦ =

nel[

i=1

⌦i, ⌦i \ ⌦j = ; for i 6= j

� :=h nel[

i=1

@⌦i

i\ @⌦

@⌦i �

Page 3: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

NotationΓ

5

[Montlaur, A., Fernández-Méndez, S., Huerta, A. IJNMF’08]

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Interior Penalty Method (IPM)

§ Model problem over computational domain

§ Model problem over “BROKEN” computational domain

6

for e = 1, . . . , nel

IMPOSE CONTINUITY OF SOLUTION AND FLUXES

Douglas N. Arnold (1982)

Page 4: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

What happens with Stokes?§ The strong form

§ Model problem over “BROKEN” computational domain

7

8>>><

>>>:

�r · (⌫ru) +rp = s in ⌦,

r · u = 0 in ⌦,

u = uD on �D,

⌫(n ·r)u� pn = t on �N ,

for e = 1, . . . , nel

IMPOSE CONTINUITY OF SOLUTION AND FLUXES

8>>>>>>>><

>>>>>>>>:

�r · (⌫ru) +rp = s in ⌦e,

r · u = 0 in ⌦e,

u = uD on �D \ @⌦e,

(⌫ru)n� pn = t on �N \ @⌦e,

Ju⌦ nK = 0 on �,

J(⌫ru)n� pnK = 0 on �,

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Interior Penalty Method (IPM)

§ Model problem over computational domain

§ Model problem over “BROKEN” computational domain

8

for e = 1, . . . , nel

IMPOSE CONTINUITY OF SOLUTION AND FLUXES

Douglas N. Arnold (1982)

Page 5: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Interior Penalty Method (IPM)

§ Weak formulation in a generic element

where n is the unitary outward normal to

Douglas N. Arnold (1982)

9

for e = 1, . . . , nel

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

§ Adding over elements or is the union of all interior edges/faces is the union of all exteriors edges/faces, which can be split in Dirichlet, , and Neumann, , boundaries

IPM. Weak formulation

Useful identity (I)

10

�D �N

@⌦�int

nelX

e=1

Z

@⌦e

↵w · nd� =

Z

⇣J↵nK · {w}+ {↵}Jw · nK

⌘d�+

Z

@⌦↵w · nd�

Page 6: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

§ Useful identity:

§ Assume and are adjacent elements, for that edge/face

Useful identity

11

⌦i ⌦j

=

Z

@⌦i\@⌦j

⇣J↵nK · {w}+ {↵}Jw · nK

⌘d�

X

e=i,j

Z

@⌦e

↵w · nd� =

Z

@⌦i\@⌦j

⇣↵iwi · ni + ↵jwj · nj

⌘d�

?

nelX

e=1

Z

@⌦e

↵w · nd� =

Z

⇣J↵nK · {w}+ {↵}Jw · nK

⌘d�+

Z

@⌦↵w · nd�

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 12

=

Z

@⌦i\@⌦j

⇣J↵nK · {w}+ {↵}Jw · nK

⌘d� =

=

Z

@⌦i\@⌦j

⇣↵iwi · ni + ↵jwj · nj

⌘d�+

12

Z

@⌦i\@⌦j

⇣↵iwj ·ni + ↵jwi·nj + ↵iwj ·nj + ↵jwi·ni

⌘d�

Z

@⌦i\@⌦j

⇣12 (↵ini + ↵jnj) · (wi +wj) +

12 (↵i + ↵j)(wi · ni +wj · nj)

⌘d�

X

e=i,j

Z

@⌦e

↵w · nd� =

Z

@⌦i\@⌦j

⇣↵iwi · ni + ↵jwj · nj

⌘d�=

Page 7: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

§ Adding over elementsIPM. Weak formulation

non-symmetric

Useful identity (I)

13

nelX

e=1

Z

@⌦e

↵w · nd� =

Z

⇣J↵nK · {w}+ {↵}Jw · nK

⌘d�+

Z

@⌦↵w · nd�

Recall @⌦ = �D

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

IPM. Weak formulation§ Adding terms to obtain a symmetric bilinear form

14

Page 8: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

IPM. Weak formulation§ Adding terms to obtain a symmetric bilinear form

15

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

IPM. Weak formulation§ Adding terms to obtain a symmetric bilinear form

§ Now it is symmetric, but maybe not coercive. Add terms

§ The bilinear form is coercive for β large enough. ensures optimal convergence (consistent penalty).

16

constant typical of Nitsche BC

Page 9: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

IPM. Stencil 2D

Only neighboring elements adjacent to are used

But must be calculated on (thus, dependence on all neighboring nodes)

17

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

IPM convergence• Using polynomials of degree p the following optimal rates of

convergence are demonstrated

• If the penalty parameter is not defined as the optimal rate of convergence can be degraded.

18

Norm Order of convergence

p+1p

Page 10: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Local Discontinuous Galerkin (LDG)

§ Model problem

§ Mixed formulation (system of first-order PDEs):

Cockburn and Shu (1998)

19

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

• Mixed formulation and broken computational domain

20

for e = 1, . . . , nel

IMPOSE CONTINUITY OF SOLUTION AND FLUXES

8>>>>>><

>>>>>>:

� �ru = 0 in ⌦e,

�r · � = f in ⌦e,

JunK = 0 on �,

Jn · �K = 0 on �,

u = g on @⌦ := �D.

Page 11: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG. Weak formulation

§ Weak formulation on

§ Numerical fluxes

21

8><

>:

� �ru = 0 in ⌦e,

�r · � = f in ⌦e,

u = g on @⌦.

(JunK = 0 on �,

Jn · �K = 0 on �,

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG. Numerical fluxes§ The numerical fluxes are defined as

with and a switch such that

§ Some properties: • The u-flux does not depend on σ• Consistency

• Conservation

LOCAL DG

22

(JunK = 0 on �,

Jn · �K = 0 on �,

Page 12: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG summary

with

§ σ is isolated from LOCAL and replaced in GLOBAL

This can be done after discretization… or in the weak form using the so-called “lifting operators”

23

LOCAL

GLOBAL

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG Stencil 2D

24

Global equation at element uses traces of neighbors:�̂⌦e

Page 13: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 25

But of neighbors requires solving local equation on red and green elements

�̂

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 26

Local equation uses traces of primal variable (no derivatives)

Page 14: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Are LDG and IPM alike?§ Integrate by parts LOCAL equation

§ Sum over elements, and apply identity (I) to the previous equation and the GLOBAL equation. LDG is rewritten as

§ Recall: determine σ from LOCAL and replace in GLOBAL to get an equation with only u

27

LOCAL

GLOBAL

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Lifting operators

[Remark: here u and σ denote the LDG solution, not the analytical solution]

The lifting operators and are defined as

Now LOCAL in strong form can be replaced in GLOBAL…

28

LOCAL

LOCAL in strong form

Page 15: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG primal form

LDG weak form Ξ IPM weak form + extra terms

29

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

LDG convergence• Using polynomials of degree p the following optimal rates of

convergence are demonstrated

• Recall:

• The optimal order of convergence in the norm is obtained when the parameter is mesh-dependent ( must be h-1 like the penalty parameter of the IPM). If is constant the order is not optimal (p+1/2).

30

Norm Order of convergence

p+1p

C11

C11

C11

Page 16: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Compact Discontinuous Galerkin (CDG)§ LDG stencil is larger than IPM stencil: lost of compactness

due to the lifting operators § CDG [Peraire & Persson SISC’08]: modify liftings to keep

compactness

Instead of , solution of the LOCAL problem, CDG considers for each face i

with the

modified liftings

CGD weak form similar to LDG but compact scheme31

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Comparison IPM and CDG

32

IPM CDG compact methods (relative to LDG)

optimal convergence rates

similar accuracy

straight-forward rationale and implementation

non trivial implementation and extra computational cost of lifting operators

necessary tuning of penalty parameter

less sensitive to the selection of parameter

[Montaur, Fernández-Méndez, Peraire, AH IJNMF’09]

Page 17: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

DG unified analysis for self-adjoint operators[Arnold, Brezzi, Cockburn and Marini, SINUM’02]

33

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

High vs. Low-orderDo we need high-order?Literature conclusions are non-conclusive: § [Vos, Sherwin & Kirby, JCP’10] :

“for a low error level of 10% a reasonably coarse mesh with a sixth-order spectral/hp expansions minimised the run-time”

§ [Löhner, IJNMF’11+’13] :“The comparison of error and work estimates shows that for relative accuracy in the 0.1% range, which is one order below the typical accuracy of engineering interest (1% range), linear elements may outperform all high-order elements.”

§ … [AH, A. Aleksandar, X. Roca, J. Peraire, IJNME’13]34

Page 18: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Computational cost estimate• Compare for different: • Galerkin methods: CG, CG(NSC), CDG and HDG • Element types: simplices/paralellotopes in 2D/3D • Approximation orders p (low versus high)

• How to evaluate computational cost: • Asymptotic estimates: major uncertainties • Cost indicators (number of: elements, DOF, non-zeros per

row, non-zeros): not enough information • Operation count: cost of local (element-by-element) and

global operations ... (memory operations)

• To compute cost estimates evaluate FLOPS for § Creating element and face matrices § Solving the local problem § Solving the global problem

35

Parallelizable

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Computational cost estimate• Major hypothesis: • Structured uniform mesh having a number of boundary

faces negligible compared with the number of interior ones,

• Smooth solution (bounded solution & bounded derivatives) and such that the approximation error is controlled by the interpolation one

• Compare computational cost to achieve the same level of accuracy

• Estimate ratio between low and high order elements for a given approximation error

36

Page 19: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 37

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 38

Page 20: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 39

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 40

Page 21: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 41

with parallelization!

with parallelization!

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

HIGH vs. LOW order § Based on FLOPS (not asymptotic, not runtime,...) § High-order approximations outperform low-order (smooth

solutions) ✓in 2D and more in 3D ✓at engineering accuracy or higher (2 digits) ✓always for global solves (implicit) ✓also for element-by-element (explicit) if straight-

sided elements or sum-factorization is used § Only case for p=1: explicit codes and non-linear problems and

majority of curved elements

[AH, A. Aleksandar, X. Roca, J. Peraire, IJNME’13][G. Giorgiani, D. Modesto, S. Fernandez-Mendez, AH, IJNMF’13]

42

Page 22: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Continuous versus Discontinuous§ All the freedom to choose interpolation functions

element-by-element, numerical flux stabilization, data structure, local conservation, … pays-off the overhead of edge/face node duplication?

§ Only for explicit schemes… § NOT for low-order but YES for high-order

approximations...

§ Can DG outperform CG in an implicit problem?

43

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 44

pHDG = 1.04 CG

pHDG = 1.32 CG

[AH, A. Aleksandar, X. Roca, J. Peraire IJNME’13]

REMEMBER:Number crunching is NOT our goal

Computability is NOT only operation count

Page 23: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 45

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Stencil: CG versus CDG

46

Page 24: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Stencil: CG versus HDG

47

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Scattering circle

48

Page 25: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 49

10% runtime reduction

CG: 781 226 ndof ➠ 5161 bandwidth HDG: 937 230 ndof ➠ 3438 bandwidth

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 50

THE COMPLETE STORY

Total runtime 60% more expensive

Page 26: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 51

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 · 52

THE COMPLETE

COMPLETE STORY

Page 27: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

ADAPTIVITY process § CHEAP and RELIABLE error estimate

§ Degree update in each element K (inspired in [Remacle, Flaherty & Shepard’03]) Goal: uniform error distribution

§ Degree update for faces [Cockburn, Chen’12]

K+

K-

F53

HDG superconvergent solution

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Incident

wave

Example: Barcelona harbor

54

Two areas of interest

[G. Giorgiani, S. Fernandez-Mendez, AH IJNMF’13]

Page 28: Discontinuous Galerkin for diffusion problems: historical ... Notes/Lecture Notes Hue… · Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·17 IPM

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

• Final p-map

• Final error map in the two areas of interest:

55

Discontinuous Galerkin for diffusion problems: historical overview · July, 2017 ·

Barcelona harborApplications: wave propagation in harbors

DOF reduction respect to CG

56