Discontinuous Galerkin method explained

In applied mathematics, discontinuous Galerkin methods (DG methods) form a class of numerical methods for solving differential equations. They combine features of the finite element and the finite volume framework and have been successfully applied to hyperbolic, elliptic, parabolic and mixed form problems arising from a wide range of applications. DG methods have in particular received considerable interest for problems with a dominant first-order part, e.g. in electrodynamics, fluid mechanics and plasma physics. Indeed, the solutions of such problems may involve strong gradients (and even discontinuities) so that classical finite element methods fail, while finite volume methods are restricted to low order approximations.

Discontinuous Galerkin methods were first proposed and analyzed in the early 1970s as a technique to numerically solve partial differential equations. In 1973 Reed and Hill introduced a DG method to solve the hyperbolic neutron transport equation.

The origin of the DG method for elliptic problems cannot be traced back to a single publication as features such as jump penalization in the modern sense were developed gradually. However, among the early influential contributors were Babuška, J.-L. Lions, Joachim Nitsche and Miloš Zlámal. DG methods for elliptic problems were already developed in a paper by Garth Baker in the setting of 4th order equations in 1977. A more complete account of the historical development and an introduction to DG methods for elliptic problems is given in a publication by Arnold, Brezzi, Cockburn and Marini. A number of research directions and challenges on DG methods are collected in the proceedings volume edited by Cockburn, Karniadakis and Shu.

Overview

Much like the continuous Galerkin (CG) method, the discontinuous Galerkin (DG) method is a finite element method formulated relative to a weak formulation of a particular model system. Unlike traditional CG methods that are conforming, the DG method works over a trial space of functions that are only piecewise continuous, and thus often comprise more inclusive function spaces than the finite-dimensional inner product subspaces utilized in conforming methods.

As an example, consider the continuity equation for a scalar unknown

\rho

in a spatial domain

\Omega

without "sources" or "sinks" :
\partial\rho
\partialt

+\nablaJ=0,

where

J

is the flux of

\rho

.

Now consider the finite-dimensional space of discontinuous piecewise polynomial functions over the spatial domain

\Omega

restricted to a discrete triangulation

\Omegah

, written as
p(\Omega
S
h)=\{v
|\Omega
ei

\in

p(\Omega
P
ei

),

  \forall\Omega
ei

\in\Omegah\}

for

p(\Omega
P
ei

)

the space of polynomials with degrees less than or equal to

p

over element
\Omega
ei
indexed by

i

. Then for finite element shape functions

Nj\inPp

the solution is represented by
i
\rho
h

=

dofs
\sum
j=1
i
\rho
j
i
(t)N
j

(\boldsymbol{x}),\forall\boldsymbol{x}\in

\Omega
ei

.

Then similarly choosing a test function

dofs
\varphi
j=1
i
\varphi
j
i(\boldsymbol{x}),
N
j

\forall

\boldsymbol{x}\in\Omega
ei

,

multiplying the continuity equation by

i
\varphi
h
and integrating by parts in space, the semidiscrete DG formulation becomes:
d
dt
\int
\Omega
ei
i
\rho
h

d\boldsymbol{x}+

\int
\partial\Omega
ei
i
\varphi
h

Jh\boldsymbol{n}d\boldsymbol{x}=

\int
\Omega
ei

Jh\nabla\varphi

i
h

d\boldsymbol{x}.

Scalar hyperbolic conservation law

A scalar hyperbolic conservation law is of the form

\begin{align} \partialtu+\partialxf(u)&=0 for t>0,x\in\R \\ u(0,x)&=u0(x), \end{align}

where one tries to solve for the unknown scalar function

u\equivu(t,x)

, and the functions

f,u0

are typically given.

Space discretization

The

x

-space will be discretized as

\R=cupkIk , Ik:=\left(xk,xk+1\right) for xk<xk+1.

Furthermore, we need the following definitions

hk:=|Ik|, h:=\supkhk, \hat{x}k:=xk+

hk
2

.

Basis for function space

We derive the basis representation for the function space of our solution

u

.The function space is defined as
p
S
h

:=\left\lbracev\inL2(\R) :

v|
Ik

\in\Pip \right\rbracefor p\in\N0,

where
{v|}
Ik

denotes the restriction of

v

onto the interval

Ik

, and

\Pip

denotes the space of polynomials of maximal degree

p

.The index

h

should show the relation to an underlying discretization given by

\left(xk\right)k

.Note here that

v

is not uniquely defined at the intersection points

(xk)k

.

At first we make use of a specific polynomial basis on the interval

[-1,1]

, the Legendre polynomials

(Pn)

n\in\N0

, i.e.,

P0(x)=1 , P1(x)=x , P2(x)=

1
2

(3x2-1) ,...

Note especially the orthogonality relations

\left\langlePi,Pj

\right\rangle
L2([-1,1])

=

2
2i+1

\deltaij\foralli,j\in\N0.

Transformation onto the interval

[0,1]

, and normalization is achieved by functions

(\varphii)i

\varphii(x):=\sqrt{2i+1}Pi(2x-1) forx\in[0,1],

which fulfill the orthonormality relation

\left\langle\varphii,\varphij

\right\rangle
L2([0,1])

=\deltaij\foralli,j\in\N0.

Transformation onto an interval

Ik

is given by

\left(\bar{\varphi}ki\right)i

\bar{\varphi}ki:=

1
\sqrt{hk
} \varphi_i \left(\frac \right) \quad \text \quad x\in I_k\,,which fulfill

\left\langle\bar{\varphi}ki,\bar{\varphi}kj

\right\rangle
2(I
L
k)

=\deltaij\foralli,j\in\N0\forallk.

For

Linfty

-normalization we define

\varphiki:=\sqrt{hk}\bar{\varphi}ki

, and for

L1

-normalization we define

\tilde{\varphi}ki:=

1
\sqrt{hk
} \bar_ , s.t.

\|\varphiki

\|
Linfty(Ik)

=\|\varphii

\|
Linfty([0,1])

=:ci,inftyand \|\tilde{\varphi}ki

\|
L1(Ik)

=\|\varphii

\|
L1([0,1])

=:ci,1.

Finally, we can define the basis representation of our solutions

uh

\begin{align} uh(t,x):=&

p
\sum
i=0

uki(t)\varphiki(x) for x\in(xk,xk+1) \\ uki(t)=&\left\langleuh(t,),\tilde{\varphi}ki

\right\rangle
2(I
L
k)

. \end{align}

Note here, that

uh

is not defined at the interface positions.

Besides, prism bases are employed for planar-like structures, and are capable for 2-D/3-D hybridation.

DG-scheme

The conservation law is transformed into its weak form by multiplying with test functions, and integration over test intervals

\begin{align} \partialtu+\partialxf(u)&=0 \\ \left\langle\partialtu,v

\right\rangle
2(I
L
k)

+\left\langle\partialxf(u),v

\right\rangle
2(I
L
k)

&=0 for \forallv\in

p
S
h

\\ \Leftrightarrow \left\langle\partialtu,\tilde{\varphi}ki

\right\rangle
2(I
L
k)

+\left\langle\partialxf(u),\tilde{\varphi}ki

\right\rangle
2(I
L
k)

&=0 for \forallk\foralli\leqp. \end{align}

By using partial integration one is left with

\begin{align}

d
dt

uki(t) +f(u(t,xk+1))\tilde{\varphi}ki(xk+1)-f(u(t,xk))\tilde{\varphi}ki(xk)-\left\langlef(u(t,)),\tilde{\varphi}ki'

\right\rangle
2(I
L
k)

=0 for \forallk\foralli\leqp. \end{align}

The fluxes at the interfaces are approximated by numerical fluxes

g

with

gk:=

+)
g(u
k

,

\pm
u
k

:=

\pm)
u(t,x
k

,

where
\pm
u
k
denotes the left- and right-hand sided limits.Finally, the DG-Scheme can be written as

\begin{align}

d
dt

uki(t) +gk+1\tilde{\varphi}ki(xk+1)-gk\tilde{\varphi}ki(xk)-\left\langlef(u(t,)),\tilde{\varphi}ki'

\right\rangle
2(I
L
k)

=0 for \forallk\foralli\leqp. \end{align}

Scalar elliptic equation

A scalar elliptic equation is of the form

\begin{align} -\partialxxu&=f(x) for x\in(a,b) \\ u(x)&=g(x)forx=a,b \end{align}

This equation is the steady-state heat equation, where

u

is the temperature. Space discretization is the same as above. We recall that the interval

(a,b)

is partitioned into

N+1

intervals of length

h

.

We introduce jump

[{}{}]

and average

\{{}{}\}

of functions at the node

xk

:
[v]|
xk

=

-),
v(x
k

\{v\}|
xk

=0.5

-))
(v(x
k

The interior penalty discontinuous Galerkin (IPDG) method is: find

uh

satisfying

A(uh,vh)+A\partial(uh,vh)=\ell(vh)+\ell\partial(vh)

where the bilinear forms

A

and

A\partial

are

A(uh,vh)=

N+1
\sum
k=1
xk
\int
xk-1

\partialxuh\partialxvh -\sum

N
k=1

\{\partialxuh\}

xk

[vh]

xk
N
+\varepsilon\sum
k=1

\{\partialxvh\}

xk

[uh]

+
xk
\sigma
h
N
\sum
k=1

[uh]

xk

[vh]

xk

and

A\partial(uh,vh)=\partialxuh(a)vh(a)-\partialxuh(b)vh(b) -\varepsilon\partialxvh(a)uh(a)+\varepsilon\partialxvh(b)

u
h(b) +\sigma
h

(uh(a)vh(a)+uh(b)vh(b))

The linear forms

\ell

and

\ell\partial

are

\ell(vh)=

b
\int
a

fvh

and

\ell\partial(vh)=-\varepsilon\partialxvh(a)g(a)+\varepsilon\partialxvh(b)g(b) +

\sigma
h

(g(a)vh(a)+g(b)vh(b))

The penalty parameter

\sigma

is a positive constant. Increasing its value will reduce the jumps in the discontinuous solution. The term

\varepsilon

is chosen to be equal to

-1

for the symmetric interior penalty Galerkin method; it is equal to

+1

for the non-symmetric interior penalty Galerkin method.

Direct discontinuous Galerkin method

The direct discontinuous Galerkin (DDG) method is a new discontinuous Galerkin method for solving diffusion problems. In 2009, Liu and Yan first proposed the DDG method for solving diffusion equations.[1] [2] The advantages of this method compared with Discontinuous Galerkin method is that the direct discontinuous Galerkin method derives the numerical format by directly taking the numerical flux of the function and the first derivative term without introducing intermediate variables. We still can get a reasonable numerical results by using this method, and the derivation process is more simple, the amount of calculation is greatly reduced.

The direct discontinuous finite element method is a branch of the Discontinuous Galerkin methods. It mainly includes transforming the problem into variational form, regional unit splitting, constructing basis functions, forming and solving discontinuous finite element equations, and convergence and error analysis.

For example, consider a nonlinear diffusion equation, which is one-dimensional:

Ut-{(a(U)Ux)}x=0  in(0,1) x (0,T)

, in which

U(x,0)=U0(x)  on(0,1)

Space discretization

Firstly, define

\left\{Ij=\left(

x
j-1
2
,x
j+1
2

\right),j=1...N\right\}

, and

\Deltaxj=x

j+1
2
-x
j-1
2
. Therefore we have done the space discretization of

x

. Also, define

\Deltax=max1\leq\Deltaxj

.

We want to find an approximation

u

to

U

such that

\forallt\in\left[0,T\right]

,

u\inV\Delta

,

V\Delta:=\left\{v\inL2\left(0,1\right

):{v|}
Ij

\inPk\left(Ij\right),j=1,...,N\right\}

,

Pk\left(Ij\right)

is the polynomials space in

Ij

with degree at most

k

.

Formulation of the scheme

Flux:

h:=h\left(U,Ux\right)=a\left(U\right)Ux

.

U

the exact solution of the equation.

Multiply the equation with a smooth function

v\inH1\left(0,1\right)

so that we obtain the following equations:

\int

Ij

Utvdx-h

j+1
2
v
j+1
2
+h
j-1
2
v
j-1
2

+\inta\left(U\right)Uxvxdx=0

,

\int

Ij

U\left(x,0\right)v\left(x\right)dx=\int

Ij

U0\left(x\right)v\left(x\right)dx

Here

v

is arbitrary, the exact solution

U

of the equation is replaced by the approximate solution

u

, that is to say, the numerical solution we need is obtained by solving the differential equations.

The numerical flux

Choosing a proper numerical flux is critical for the accuracy of DDG method.

The numerical flux needs to satisfy the following conditions:

♦ It is consistent with

h={b\left(u\right)}x=a\left(u\right)ux

♦ The numerical flux is conservative in the single value on

x
j+1
2
.

♦ It has the

L2

-stability;

♦ It can improve the accuracy of the method.

Thus, a general scheme for numerical flux is given:

\widehat{h}=Dxb(u)=\beta

0\left[b\left(u\right)\right]
\Deltax

+\overline{{b\left(u\right)}x}+\sum

k
2
m=1

\betam{\left(\Deltax\right)}2m-1\left[\partial

2m
x

b\left(u\right)\right]

In this flux,

k

is the maximum order of polynomials in two neighboring computing units.

\left[\right]

is the jump of a function. Note that in non-uniform grids,

\Deltax

should be

\left(

\Deltaxj+\Deltaxj+1
2

\right)

and
1
N
in uniform grids.

Error estimates

Denote that the error between the exact solution

U

and the numerical solution

u

is

e=u-U

.

We measure the error with the following norm:

\left|\left|\left|v(,t)\right|\right|\right|={\left

1
(\int
0

v2dx+\left(1-\gamma\right

t
)\int
0
N
\sum
j=1
\int
Ij
2
v
x

dxd\tau+\alpha

t
\int
0
N
\sum
j=1

{\left[v\right]}2/\Deltaxd\tau\right)}0.5

and we have

\left|\left|\left|U(,T)\right|\right|\right|\leq\left|\left|\left|U(,0)\right|\right|\right|

,

\left|\left|\left|u(,T)\right|\right|\right|\leq\left|\left|\left|U(,0)\right|\right|\right|

See also

References

Notes and References

  1. Hailiang Liu, Jue Yan, The Direct Discontinuous Galerkin (DDG) Methods For Diffusion Problems,SIAM J. NUMER. ANAL. Vol. 47, No. 1, pp. 675–698.
  2. Hailiang Liu, Jue Yan, The Direct Discontinuous Galerkin (DDG) Method for Diffusion with Interface Corrections, Commun. Comput. Phys. Vol. 8, No. 3, pp. 541-564.