dicacim programme a.y. 2019–20 numerical methods for ... · spectral methods gottlieb &...

12
. DICACIM programme A.Y. 2019–20 Numerical Methods for Partial Dierential Equations Lesson 6. A short review on the Spectral Element Methods (SEM) Paola Gervasio DICATAM, Universit` a degli Studi di Brescia (Italy) uniBS, May, 2020

Upload: others

Post on 25-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

.

DICACIM programme A.Y. 2019–20Numerical Methods for Partial Differential

Equations

Lesson 6.A short review on the

Spectral Element Methods (SEM)

Paola GervasioDICATAM, Universita degli Studi di Brescia (Italy)

uniBS, May, 2020

Page 2: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

A step back: FEM

h-FEM: fixed low degreerefinement in h(simplices and quads)One parameter:h =mesh size(the same on quads)

p-FEM: fixed hrefinement in p(simplices and quads)One parameter:p =pol. degree(the same on quads)

hp-FEM: refinement in both h and p (simplices and quads)

Two parameters: p = pol. degree (�)h = mesh size (=elements diameter) (� 0)

2Paola Gervasio - DICATAM - unibs.it

Page 3: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

FEM: features

3Paola Gervasio - DICATAM - unibs.it

1. Low polynomial degree p (tipically p = 1 or p = 2),

2. Lagrangian basis functions ϕi (x) related to the nodes ofthe mesh,

3. local support basis functions,

4. integrals are computed “exactly” or almost-exactly (withhigh-order degree quadrature formulas)

Page 4: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Spectral MethodsGottlieb & Orszag (1977),Canuto, Hussaini, Quarteroni, & Zang (1988),Bernardi & Maday (1992)

Spectral Methods: one quad element Ω and global support of the polynomialbasis functions on Ω.One parameter: p = polynomial degree (�)

p = 5 p = 16

4Paola Gervasio - DICATAM - unibs.it

Page 5: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Spectral Element Methods

Patera (1984)

Spectral Element Methods: conformal partition of quads in Ω,global C 0 basis functions (local polynomials) with local support.Two parameters: p = pol. degree (�)

h = mesh size (=elements diameter) (� 0)

5Paola Gervasio - DICATAM - unibs.it

Page 6: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Spectral/hp

Patera (1984) for SEM on quads,Dubiner (1991), Sherwin & Karniadakis (1995) for SEM on simplices

spectral/hp conformal partition of quads/simplices in Ω,global C 0 basis functions (local polynomials) with local support.Two parameters: p = pol. degree (�)

h = mesh size (=elements diameter) (� 0)aaaaaaaaaaaaaaaaaaaa

6Paola Gervasio - DICATAM - unibs.it

Page 7: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Spectral Element Methods (SEM) on quads

Strong points (of the most used form nowadays: SEM-GNI)

1. Moderate/high polynomial degree;2. local support basis functions, but typically wider elements

than in FEM;3. Lagrangian basis functions related to the Legendre Gauss

Lobatto (LGL) nodes in each element;

4. exact and almost-exact integration are too expensive, thenLGL quadrature formulas are used. The quadrature nodescoincide with the nodes associated with the dof’s. (Verycheap approach).(SEM-GNI = Galerkin with Numerical Integration);

5. the mass matrix is diagonal (consequence of the previouschoice);

6. tensorial structure of the basis functions in Rd (with d ≥ 2)=⇒ high computational efficiency

7Paola Gervasio - DICATAM - unibs.it

Page 8: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Tensorization and remapping of LGL nodes

8Paola Gervasio - DICATAM - unibs.it

(xi , yj) ∈ [−1, 1]2 = �Q

ξ� ∈ [−1, 1]

Page 9: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Finite dimensional spaces

Set δ = (h, p),

Xδ = {v ∈ C 0(Ω) : v |Tk= v ◦ Φ−1

k , with v ∈ Qp, ∀Tk ∈ Th}

Vδ = Xδ ∩ V

If a(u, v) =

Ωµ∇u ·∇v +

Ωσuv , then the discrete bilinear form

reads:

aδ(u, v) =�

q

µ(xq)∇u(xq)∇v(xq)wq +�

q

σ(xq)u(xq)v(xq)wq

while the discrete functional is

Fδ(v) =�

q

f (xq)v(xq)wq

The LGL quadrature nodes xq coincide with the nodes associatedwith the dof’s.

9Paola Gervasio - DICATAM - unibs.it

Page 10: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Convergence analysis for SEM-GNI

?uδ ∈ Vδ : aδ(uδ, vδ) = (f , vδ)δ,Ω ∀vδ ∈ Vδ

uδ converges with spectral accuracy (with respect to p) to the exactsolution when the latter and f are smooth:

�u − uδ�H1(Ω) ≤ C (s)�

hmin(p,s)�

1p

�s

�u�Hs+1(Ω)

+hmin(p,r)�

1p

�r

�f �Hr (Ω)

h = 2/3, p = 2

eH1 � 3.77e -01

h = 2/3, p = 6

eH1 � 8.80e -04

h = 2/3, p = 16

eH1 � 3.64e -14

10Paola Gervasio - DICATAM - unibs.it

Ω = (0, 2)2

Page 11: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Convergence rate

1. s, r large (s, r > p)

�u − uδ�H1(Ω) ≤ C (hp�

1p

�s

�u�Hs+1(Ω) + hp�

1p

�r

�f �Hr (Ω))

s, r = ∞

0 5 10 15 2010

−15

10−10

10−5

100

p

err

or

H1

0.1 0.2 0.3 0.4 0.510

−7

10−5

10−3

4

h

err

or

H1

101

102

103

104

10−15

10−10

10−5

100

N

err

or

H1

2. s small (s ≤ p) �u − uδ�H1(Ω) ≤ C�

hp

�s

�u�Hs+1(Ω)

s = 4, r = 2, f composite Q2, null quadrature error on f , when p > 2

0 5 10 15 2010

−15

10−10

10−5

100

p

err

or

H1

0.1 0.2 0.3 0.4 0.510

−7

10−5

10−3

3 ( = s)

h

err

or

H1

101

102

103

104

10−15

10−10

10−5

100

N

err

or

H1

11Paola Gervasio - DICATAM - unibs.it

Page 12: DICACIM programme A.Y. 2019–20 Numerical Methods for ... · Spectral Methods Gottlieb & Orszag (1977), Canuto, Hussaini, Quarteroni, & Zang (1988), Bernardi & Maday (1992) Spectral

Essential bibliography (books)

BM C. Bernardi, Y. Maday. Approximations Spectrales deProblemes aux Limites Elliptiques. Springer Verlag (1992)

KS G.E. Karniadakis, S.J. Sherwin. Spectral/hp ElementMethods for Computational Fluid Dynamics, 2nd ed. OxfordUniversity Press (2005)

CHQZ2 C. Canuto, M.Y. Hussaini, A. Quarteroni, T. Zang. SpectralMethods. Fundamentals in Single Domains. Springer (2006)

CHQZ3 C. Canuto, M.Y. Hussaini, A. Quarteroni, T. Zang. SpectralMethods. Evolution to Complex Geometries and Applicationsto Fluid Dynamics. Springer (2007)

A simple MATLAB library for spectral methods:

paola-gervasio.unibs.it/CHQZ lib

12Paola Gervasio - DICATAM - unibs.it