SEM is based on the weak form of the wave equation. 0. L vibrating string of length L fu x μ x u Ï. = â. â . â. â. â. â. â. â. â. â. - xx strong form of the wave ...
a short lecture on
The spectral-element method by
Andreas Fichtner
Universiteit Utrecht Department of Earth Sciences
Origins
• originally developed in fluid dynamics (Patera, 1984) • migrated to seismology in the early 1990‘s (Seriani & Priolo, 1991) • major advantage: accurate modelling of interfaces and the free surface (with topography)
reflection and transmission of surfaces waves at material discontinuities
Priolo, Carcione & Seriani: 1994
1. The weak form of the wave equation …
… in 1D
SEM in 1D: weak form of the wave equation SEM is based on the weak form of the wave equation
ρ u
μ u f x x
----------- PDE -----------
u(t,0) u(t, L) 0 x x
strong form of the wave equation
-- B.C. (free surface in 3D) --
0
L
vibrating string of length L
SEM in 1D: weak form of the wave equation SEM is based on the weak form of the wave equation
ρ u
L
0
μ u f x x
ρ w u dx
L
0
u(t,0) u(t, L) 0 x x
L w μ u dx w f dx 0 x x
strong form of the wave equation
multiply with test function w(x) integrate over x from 0 to L
SEM in 1D: weak form of the wave equation SEM is based on the weak form of the wave equation
ρ u
L
L
0
0
μ u f x x
ρ w u dx
L
0
ρ w u dx
L
0
u(t,0) u(t, L) 0 x x
L w μ u dx w f dx 0 x x L w u dx w f dx 0 x x
strong form of the wave equation
multiply with test function w(x) integrate over x from 0 to L integrate by parts use the boundary conditions
SEM in 1D: weak form of the wave equation SEM is based on the weak form of the wave equation
Solving the weak form of the wave equation means
to find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
Why is this important to know ?
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
1. The basis of many numerical techniques:
• Finite-element method (FEM) • Spectral-element method (SEM) • Discontinuous Galerkin method (DGM)
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
2. Free surface boundary condition is automatically satisfied
BIG advantage!
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
2. Free surface boundary condition is automatically satisfied
BIG advantage!
-∆x
0
0
∆x
Compare to finite-difference method:
2∆x
3∆x
4∆x
u (x) u (x) u (0) x 2x
5∆x
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
2. Free surface boundary condition is automatically satisfied
BIG advantage!
-∆x
0
0
∆x
Compare to finite-difference method:
2∆x
3∆x
4∆x
u (x) u (x) u (0) x 2x
5∆x
Implementation of the free surface in FD requires grid points outside the computational domain!
SEM in 1D: weak form of the wave equation
Find a displacement field u(x,t) such that
L
0
ρ w u dx
L
0
L w u dx w f dx 0 x x
is satisfied for any differentiable test function w(x).
2. Free surface boundary condition is automatically satisfied
BIG advantage! Correct free surface comes without any additional effort!
This makes accurate surface waves!
2. Spatial discretisation
SEM in 1D: decomposition of the computational domain 1. decompose the computational domain [0, L] into disjoint elements Ei 2. consider integral element-wise E1 0
ρ w u dx μ Ei Ei x w x u dx Ei w f dx Ei
E2
E3
E4
E5
E6 E 7 L
SEM in 1D: mapping to the reference interval
E1
E2
E3
E4
E5
E6 E 7
3. map each element to the reference interval [-1, 1] 0
L
ρ w u dx μ Ei Ei x w x u dx Ei w f dx
Ei x
Ei
y = Fi(x) -1
y
1
SEM in 1D: mapping to the reference interval Is the same for every element !!!
All elements can now be treated in the same way.
E1
-1
dx -1 ρ w u dy dy ...
E2
E3
E4
E5
E6 E 7
0
L
ρ w u dx μ Ei Ei x w x u dx Ei w f dx
Ei x
y = Fi(x) -1
y
1
SEM in 1D: approximation by polynomials
4. Approximate u‘ by interpolating polynomials. -1
ρ w u -1
dx dy ... dy
SEM in 1D: approximation by polynomials
4. Approximate u‘ by interpolating polynomials. -1
ρ w u -1
dx dy ... dy 1st try: equidistant collocation points exact wave field approximation (interpolant) degree 6 7 collocation points
Runge‘s phenomenon
SEM in 1D: approximation by polynomials
4. Approximate u‘ by interpolating polynomials. -1
ρ w u -1
dx dy ... dy 1st try: equidistant collocation points exact wave field approximation (interpolant) degree 6 7 collocation points
Runge‘s phenomenon
Don‘t use equidistant collocation points!
SEM in 1D: approximation by polynomials
4. Approximate u‘ by interpolating polynomials. -1
ρ w u -1
dx dy ... dy 2nd try: Gauss-Lobatto-Legendre (GLL) points exact wave field approximation (interpolant) degree 6 7 collocation points
GLL collocation points avoid Runge‘s phenomenon!
SEM in 1D: approximation by polynomials
4. Approximate u by Lagrange polynomials collocated at the GLL points 5. choose Lagrange polynomials also for the test function w -1
ρ w u -1
k (y)
dx dy ... dy N
u' (y, t) ui (t) i (y) i 0
SEM in 1D: The mass matrix
4. Approximate u by Lagrange polynomials collocated at the GLL points 5. choose Lagrange polynomials also for the test function w -1
ρ w u -1
k (y)
dx dy ... dy N
u' (y, t) ui (t) i (y) i 0
N 1 dx dx dy u i ρ k i -1 ρ w u dy dy dy i 0 1
-1
N
M i0
ki
i (t) u
M=mass matrix
SEM in 1D: The mass matrix
6. The integral is approximated using Gauss-Lobatto-Legendre (GLL) quadrature.
Big advantage !!!
Mass matrix is diagonal !!!
N 1 dx dx dy u i ρ k i -1 ρ w u dy dy dy i 0 1
-1
N
M i0
ki
i (t) u
M=mass matrix
SEM in 1D: A brief summary
ρ w u dx Ei Ei x w x u dx Ei w f dx 1. mapping to the reference interval [-1 ,1] 2. polynomial approximation (GLL points) 3. numerical integration (GLL quadrature) N
M i0
ki
i (t) u
weak form, element-wise
SEM in 1D: A brief summary
ρ w u dx Ei Ei x w x u dx Ei w f dx
weak form, element-wise
repeat this for the remaining two terms …
N
M i 0
ki
i (t) u
N
K i 0
ki
i u
stiffness matrix
fi
discrete force vector
SEM in 1D: A brief summary
ρ w u dx Ei Ei x w x u dx Ei w f dx
weak form, element-wise
M 1 f K u u
partial differential equation
ordinary differential spatial discretisation
equation for the polynomial coefficients
You have survived the math part !
3. The concept in 3D
SEM in 3D: Mesh design
accurate solutions: discontinuities need to coincide with element boundaries
low velocities: high velocities:
short wavelength → small elements long wavelength → large elements
many small elements → high computational costs !!!
SEM in 3D: Mesh design
accurate solutions: discontinuities need to coincide with element boundaries
low velocities: high velocities:
short wavelength → small elements long wavelength → large elements
many small elements → high computational costs !!! possible solution: homogenisation theory (Y. Capdeville‘s talk)
SEM in 3D: Mesh design Realistic example: The Grenoble valley
Stupazzini et al. (2009)
SEM in 3D: The general procedure
Essentially the same as in 1D:
ρu C u f i x ijkl x l i j k 1. mapping to the reference cube [-1 ,1]3 2. polynomial approximation (GLL points) 3. numerical integration (GLL quadrature)
M 1 f K u u
deformed element
reference cube
SEM in 3D: Available codes
GeoElse (Milano, Cagliari)
• Interaction with engineering structures • Nonlinear rheologies (visco-plasticity)
SEM in 3D: Available codes
T. Nissen-Meyer: 2D domain, 3D synthetics
• 2D computational domain makes 3D synthetics • Spherically symmetric Earth models
• High-frequency wave propagation
SEM in 3D: Available codes
See the talk by J. Tromp and Q. Liu.
SpecFEM3D (Paris, Pau, Princeton)
SEM in 3D: Available codes
• Spherical section, regular grid • Simplistic and very easy to use
• Makes nice tomographic images
SES3D
Thank you for your attention!