Docsity

Finite Element Methods II - Seminar - Study Guide | STAT 992, Study notes of Statistics

Toggle sidebar
bg1
Stat 992: Lecture 29
Finite element methods II.
Moo K. Chung [email protected]
December 7, 2003
1. Barycentric coordinates. Parameterization gives an
automatic way of estimating the Laplacian and in
turn it can be used to set up diffusion smoothing.
However, in a very complex manifold, simple pa-
rameterization may not be given. In that situation,
we show how to solve a diffusion equation using
the finite element method (FEM). Let NTbe the
number of triangles in the triangular mesh Sthat is
the discrete estimation of true surface ∂Ω. We seek
an approximate solution Fiin triangle Tisuch that
the solution Fi(x, t)is continuous across neighbor-
ing triangles. The approximate solution Ffor the
whole region is then
F(x, t).
=
NT
X
i=1
Fi(x, t).
A slightly different formulation of FEM for the sur-
face flattening problem is given in Angenent et al..
Let pi1, pi2, pi3be the vertices of element Ti. In Ti,
we interpolate Filinearly by
Fi(x, t) =
3
X
j=1
ξij(x)F(pij, t),
where nonnegative ξikare given by the barycen-
tric coordinates. In the barycentric coordinates, any
point x∈Tiis uniquely determined by two condi-
tions:
x=
3
X
k=1
ξik(x)pik,
3
X
k=1
ξik(x) = 1.
If x∈Ti, we let ξik= 0. Note that 0≤ξik≤1.
Let Gbe an arbitrary piecewise linear function on
S. Then it can be uniquely written as
G(x) =
NT
X
i=1
ξi1(x)Gi1+ξi2(x)Gi2+ξi3(x)Gi3,
where Gik=G(pik)are the values of function G
evaluated at vertex pikof Ti. Another piecewise
linear function F(x, t)is given similarly so that
Fik=F(pik, t).
Figure 1: A typical triangular elements.
2. Diffusion equation in an element. The integral ver-
sion of diffusion equation ∂tF= ∆Fcan be writ-
ten as
ZTi
G∂tF dT =−ZTi
h∇F, ∇GidT . (1)
The left-hand term in (1) is
ZTi
G∂tF dT =
3
X
k,l=1
Gik∂tF(pil, t)ZTi
ξikξildT
= [Gi]0[Ai]d
dt[Fi],
where [Gi] = (Gi1, Gi2, Gi3)0,[Fi] =
(Fi1, Fi2, Fi3)0
[Ai] = |Ti|
12
211
121
112
,(2)
where |Ti|is the area of the triangular element Ti.
Similarly the right-hand term in (1) can be written
as
ZTi
h∇F, ∇GidT =
3
X
k,l=1
GikF(pil, t)ZTi
h∇ξik,∇ξilidT
= [Gi]0[Ci][Fi],
pf2

Partial preview of the text

Download Finite Element Methods II - Seminar - Study Guide | STAT 992 and more Study notes Statistics in PDF only on Docsity!

Stat 992: Lecture 29

Finite element methods II.

Moo K. Chung [email protected]

December 7, 2003

  1. Barycentric coordinates. Parameterization gives an automatic way of estimating the Laplacian and in turn it can be used to set up diffusion smoothing. However, in a very complex manifold, simple pa- rameterization may not be given. In that situation, we show how to solve a diffusion equation using the finite element method (FEM). Let NT be the number of triangles in the triangular mesh S that is the discrete estimation of true surface ∂Ω. We seek an approximate solution Fi in triangle Ti such that the solution Fi(x, t) is continuous across neighbor- ing triangles. The approximate solution F for the whole region is then

F (x, t) =.

∑^ NT

i=

Fi(x, t).

A slightly different formulation of FEM for the sur- face flattening problem is given in Angenent et al.. Let pi 1 , pi 2 , pi 3 be the vertices of element Ti. In Ti, we interpolate Fi linearly by

Fi(x, t) =

∑^3

j=

ξij (x)F (pij , t),

where nonnegative ξik are given by the barycen- tric coordinates. In the barycentric coordinates, any point x ∈ Ti is uniquely determined by two condi- tions:

x =

∑^3

k=

ξik (x)pik ,

∑^3

k=

ξik (x) = 1.

If x ∈ Ti, we let ξik = 0. Note that 0 ≤ ξik ≤ 1. Let G be an arbitrary piecewise linear function on S. Then it can be uniquely written as

G(x) =

∑^ NT

i=

ξi 1 (x)Gi 1 + ξi 2 (x)Gi 2 + ξi 3 (x)Gi 3 ,

where Gik = G(pik ) are the values of function G evaluated at vertex pik of Ti. Another piecewise linear function F (x, t) is given similarly so that Fik = F (pik , t).

Figure 1: A typical triangular elements.

  1. Diffusion equation in an element. The integral ver- sion of diffusion equation ∂tF = ∆F can be writ- ten as ∫

Ti

G∂tF dT = −

Ti

〈∇F, ∇G〉 dT. (1)

The left-hand term in (1) is ∫

Ti

G∂tF dT =

∑^3

k,l=

Gik ∂tF (pil , t)

Ti

ξik ξil dT

= [Gi]′[Ai] d dt

[Fi],

where [Gi] = (Gi 1 , Gi 2 , Gi 3 )′, [Fi] = (Fi 1 , Fi 2 , Fi 3 )′

[Ai] = |Ti| 12

where |Ti| is the area of the triangular element Ti. Similarly the right-hand term in (1) can be written as ∫

Ti

〈∇F, ∇G〉dT =

∑^3

k,l=

Gik F (pil , t)

Ti

〈∇ξik , ∇ξil 〉dT

= [Gi]′[Ci][Fi],

Figure 2: Global coefficient matrix.

where [Ci] = (Ckli), Cikl =

Ti 〈∇ξik^ ,^ ∇ξil^ 〉^ dT. Since Ti is planar, the gradient ∇ξik becomes the standard planar gradient. Following Sadiku, it can be shown that 2[Ci] is the matrix of the following form:  

cot θi 2 + cot θi 3 − cot θi 3 − cot θi 2 − cot θi 3 cot θi 1 + cot θi 3 − cot θi 1 − cot θi 2 − cot θi 1 cot θi 1 + cot θi 2

where θik is the interior angle of vertex pik. Equat- ing the left and right hand sides, we get

[Gi]′[Ai] d dt

[Fi] = −[Gi]′[Gi][Fi].

Since the equation (3) should be satisfied for an ar- bitrary vector [Gi], we have a system of ordinary differential equations (ODE) given by d[Fi] dt

= −[Ai]−^1 [Ci][Fi] for all i.

This is the diffusion equation on planer element Ti.

  1. Assembling elements Having discretized an ele- ment, the next step is to assemble all such ele- ments in m incident triangles around vertex p. Let p 1 , · · · , pm be the m neighboring vertices around p = p 0 in the counter-clockwise direction. Let p, pi, pi+1 be the vertices of the element Ti (Figure 1). Then from combining elements, we have ∫

T 1 ∪···∪Tm

〈∇F, ∇G〉 dT =

∑^ m

i=

Ti

〈∇F, ∇G〉 dT

= [G]′[C][F ],

where [F ] = [F (p, t), F (p 1 , t), · · · , F (pm, t)]′^ and [G] = [G(p), G(p 1 ), · · · , G(pm)]′. The matrix [C] = (Cij ) is called the global coefficient matrix , which is the assemblage of individual element co- efficients. The contribution to Cij comes from all elements containing vertices i and j. In the case of a hexagonal triangulation in Figure 1, [C] is given in Figure 2. Similarly ∫

T 1 ∪···∪Tm

G∂tF dT = [G]′[A] d[F ] dt

where [A] = (Aij ) has the same structure as [C], i.e. write A 01 = A^101 + A^601 instead of C 01 = C 011 + C 016. Equating the above equations we have

[G]′[A]

d[F ] dt

= −[G]′[C][F ].

Since equation (4) should be satisfied for an arbi- trary piecewise linear function G, we have a dis- crete diffusion equation on m elements T 1 , · · · , Tm given by

d[F ] dt

= −[A]−^1 [C][F ].

At first glance, it seems like we need to solve a sys- tem of linear equations iteratively. Note that the first row of the simultaneous ODE (4) gives the dis- crete diffusion equation at the vertex p = p 0 :

dF (p, t) dt

∑^ m

i,k=

A− 0 k^1 CkiF (pi, t),

where A− 0 k^1 is the 0 k-th element of A−^1. Compar- ing this with the diffusion equation ∂tF (p, t) = ∆F (p, t), we can see that the right-hand side of equation (4) is the discrete estimation of Laplacian of function F evaluated at vertex p. Simplifying the matrix computation using the computational al- gebraic system MAPLE, we have the FEM estimation for the Laplace-Beltrami operator given by

∆̂ F (p) =

∑^ m

i=

wi

F (pi) − F (p)

with the weights wi = (cot θi + cot φi)/|T |, where θi and φi are the two angles opposite to the edge pi − p and |T | =

∑m i=1 |Ti|^ is the sum of the areas of the incident triangles (Figure 1). Read M.N.O. Sadiku, Numerical Techniques in Electromagnetics. Possibly the easiest introductory book on FEM. Problem 43. Using only 6 elements in Figure 1 minimize

∑^6

i=

|F (pi)−f (pi)|^2 +λ

T 1 ∪···∪T 6

∆F (p)f (p) dμ(p)

for given continuous functional data f and smooth- ing bandwidth λ using FEM. Hint: Assume F to be a piecewise linear function and find values F (pi).