Professional Documents
Culture Documents
High Order Discotinuous Galerkin Methods For Fluid Dynamics: Esteban Ferrer, PHD
High Order Discotinuous Galerkin Methods For Fluid Dynamics: Esteban Ferrer, PHD
September 2013
1
26/09/2013
Summary
1) Introduction
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
Summary
1) Introduction
i. What is high order? Why use high order?
ii. Comparison of numerical methods in 1D
iii. General concepts
iv. Books and key references
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
2
26/09/2013
3
26/09/2013
h-ref
p-ref
4
26/09/2013
5
26/09/2013
6
26/09/2013
Finite differences
Finite Volume
Finite Elements
high order h/p Spectral
high order DG methods
7
26/09/2013
COMMON FEATURES:
GRID or MESH needed PDE to analytical system of equations.
Find an approximation of the exact solution u(x,t) uh(xi,tn)
Finite Differences
Differential form of the equations
Discretisation of derivatives using Taylor series expansion
High order needs large stencils of cells
Finite Volume
Integral form of the equations at a local element level
Local conservation
Gauss’s theorem (div theorem) to obtain flux formulation and impose BC
Piecewise constant functions inside elements (poly. order 0)
High order requires large stencils of cells
Finite Differences
0
du xi xi+1
dx ∆x
uh ( xi x) uh ( xi ) ui 1 ui
u x ( xi ) O(x) ux O(x)
x x
ui 1 ui
0 ui ui 1
x
8
26/09/2013
Finite Differences
0
du xi xi+1
dx ∆x
uh ( xi x) uh ( xi x) ui 1 ui 1
u x ( xi ) O(x2 ) ux O(x2 )
2x 2x
ui 1 ui 1
0 ui ?? Unstable!
2x
Only odd or even
coupling
Finite Volume
Xp XE
0
du xw xe
dx ∆x ∆x
uh x
u ( X ) uh ( XW )
dx e
2
h P
Divergence theorem
w
2
Central differences
uh ( XE ) uh ( XP ) uh ( XP ) uh ( XW )
0
2 2
u ( X ) uh ( XW )
h E uh ( XP ) ?? Unstable!
2
9
26/09/2013
Finite Volume
Xp XE
0
du xw xe
dx ∆x ∆x
uh ( XW )
e
dx
w
uh ( XP ) uh ( XW ) 0
uh ( XP ) uh ( XW )
0
du
dx Xi Xi+1
∆x
0 h ( x)d 0
du du ( x) Multiply by test function
dx dx and integrate
dx
d ( x)
u h ( x) d u h ( xi 1 ) ( xi 1 ) u h ( xi ) ( xi ) 0
dx
10
26/09/2013
Xi Xi+1
∆x
u
order 1
uh ( x) u00 ( x) u11 ( x)
Test functions = basis functions
order 0
i i
( x) ( 0 ( x), 1 ( x))
0 (u 0 0 u11 ) d u 0 0 0
d
u k h ( xi 1 ) u k 1 h ( xi )
dx
0
du xi xi+1 xi+2
xi+1
dx Δx Δx
0 h el1 ( x)d 0
du du ( x) el1=Ω el2
dx dx
d el1 ( x)
u h ( x) d u h ( xi 1 ) el1 ( xi 1 ) u h ( xi ) el1 ( xi ) 0
dx
u h ( xi 1 ) uˆi 1 (ui 1 , ui 1 )
u h ( xi ) uˆi (ui , ui )
Numerical fluxes
High order approx.
u
d ( x)
order p
u h ( x) d uˆi 1 el1 ( xi 1 ) uˆi ( xi ) el1 ( xi ) 0 uh ( x)
el1
order 0
i i
dx
test functions = basis functions
11
26/09/2013
The solution is to use different basis and test functions (e.g. Petrov-
Galerkin or Streamline Upwind Petrov-Galekin (SUPG))
12
26/09/2013
13
26/09/2013
14
26/09/2013
15
26/09/2013
16
26/09/2013
17
26/09/2013
18
26/09/2013
Software
At UPM, compressible and incompressible DG solvers
Nektar++, Imperial College
Deal II, Texas A&M Univ.
Sledge++, Rice Univ, Tim Warburton
hpGEM, Twente Univ.
FreeFEM++
Summary
1) Introduction
2) Finite elements and variational formulations
i. Norms
ii. Bilinear and linear forms
iii. Definitions and nomenclature
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
19
26/09/2013
20
26/09/2013
2) Sobolev spaces, denoted by Wm,p, are Hilbert spaces. These are a special
kind of function space in which differentiation may be performed, and
support the structure of an inner product. Because differentiation is
permitted, Sobolev spaces are a convenient setting for the theory of partial
differential equations.
1) Linearity 1
2) Linearity 2
3) Symmetry
4) and equal if and only if Non negativity
p=2
21
26/09/2013
22
26/09/2013
Consistency
23
26/09/2013
Coercivity
Continuous
24
26/09/2013
25
26/09/2013
Summary
1) Introduction
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
26
26/09/2013
One element K
is a subspace
27
26/09/2013
Numerical Flux
Numerical Flux
28
26/09/2013
=0 = cte
29
26/09/2013
Summary
1) Introduction
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
30
26/09/2013
E2
nE2 nE1
E1
Jump
31
26/09/2013
Consistent
scheme
+ε
Jump Average
Penalty parameterJ0
needed for coercivity
32
26/09/2013
33
26/09/2013
Discretisation
34
26/09/2013
(1)
(2)
Substract: (1)-(2)
35
26/09/2013
Summary
1) Introduction
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
36
26/09/2013
Compressible Navier-Stokes
Compressible Navier-Stokes
37
26/09/2013
Incompressible Navier-Stokes
Stokes system
Incompressible Navier-Stokes
38
26/09/2013
Summary
1) Introduction
2) Finite elements and variational formulations
3) DG for hyperbolic equations
4) DG for elliptic equations
5) Compressible and Incompressible flows
6) Advanced topics
i. Curved boundaries
ii. h/p Adaption
iii. Multigrid and Preconditioning
iv. Moving meshes
39
26/09/2013
Curved boundaries
Curved boundaries
- Isoparametric, the classic approach
curved boundary is approximated with polynomial of
same degree as solution in the interior of the element
- Analytical (e.g. Ferrer and Willden 2012)
use analytical expression to approximate polynomial
- NURBS or splines based approach
Isogeometric analysis by Hughes et al. 2005
NEFEM Sevilla et al. 2008)
Dr Rubén Sevilla
40
26/09/2013
Curved boundaries
Main problem is producing high order meshes,
few meshers allow high order:
- mainly academics:
* Octree mesher at UPM (now 2D)
* J. Peiro, (Imperial College), P. Olof-Persson (MIT and
Berckley), T. Warburton (Rice Univ.)
- Commercial codes:
* Gmsh (?), IcemCFD (?)
h/p adaption
- h and p refinement available in DG methods
- hanging nodes are not a problem
- p-refinement for smooth solution (smooth zones)
- h-refinement near discontinuities
- refinement zones located using a-posteriori error estimates,
adjoints, etc.
- solution smoothness can be “guessed”: e.g. decay of
modal coefficients for modal hierarchical basis
41
26/09/2013
Multigrid
- can be geometric (FAS) or algebraic (AMG)
- In addition to h-multigird, p-multigrid is available in DG methods
- p-multigrid is well suited to modal hierarchical basis functions
- Find right smoothers?
- Refs on multigird:
* Hong Luo, Joseph D. Baum, Rainald Löhner, A p-multigrid discontinuous Galerkin method for
the Euler equations on unstructured grids, JCP Volume 211, Issue 2, 2006
* F. Bassi, A. Ghidoni, S Rebay, High-order accurate p-multigrid discontinuous Galerkin
solution of the Euler equations, International Journal for Numerical Methods in Fluids
Volume 60, Issue 8, pages 847–865, 20 July 2009
Preconditioning
- DG matrices are block diagonal dominant
- Communication is limited to neighbours
(block bandwidth is not large)
Left preconditioning
- Refs on preconditioning:
* Compressible PO Persson - 2008, R Hartmann - 2009
* Incompressible G Kanschat - 2002, PF Antonietti 2013
42
26/09/2013
SUMMARY
- High order DG is very popular these days:
combines advantages of high order methods (i.e. exponential convergence)
with flexibility of Finite Volume (e.g. hanging nodes)
- Mature, particularly for 3D viscous compressible NS:
* turbulence RANS, ILES
* h/p adaption
- Bottlenecks:
* Requires more efficient solvers (e.g. preconditioners,
multigrid) to become competitive
* High order mesh generators
- Various projects focussing on high order and DG:
e.g. Adigma, Idihom, Anade
- Industry is getting interested, e.g. Numeca, Dassault
Z.J. Wang et al, High-Order CFD Methods: Current Status and Perspective, Int. J. Num.
Meth. Fluids., Vol. 72 (8), pp. 811-845, July 2013. Summary of Workshop on high order
43
26/09/2013
Acknowledgments
Upcoming Events
iw.anade-itn.eu
20-25 July 2014, ECCOMAS 2014: CFD for wind and tidal offshore turbines
20-25 July 2014, ECCOMAS 2014: Numerical predictions of detached flows
esteban.ferrer@upm.es
44