Professional Documents
Culture Documents
Typeset by FoilTEX
Typeset by FoilTEX
Typeset by FoilTEX
(1)
Integrate by parts
Z 1
Z 1
Z
(uv +2uv)dx = u(1)v(1)u (0)v(0)+ (uv +2uv)dx =
0
vdx.
0
(u v + 2uv)dx =
(2)
Remarks:
- The problems are equivalent in the sense that any solution u C 2(0, 1) of
(2) also satisfies (1) except possibly the boundary value u(0) = 1. Also (2) is
called the weak form of (1).
- We have a(u, v) =< , v > for all v V , where a(, ) is a bilinear operator
and < , > is a linear functional.
- The condition u(0) = 1 is called an essential boundary condition and u(1) = 1
is a natural boundary condition.
Typeset by FoilTEX
Remarks:
- The solution uh Vh is called the finite element solution.
- The essential boundary condition u(0) = 1 appear explicitly in the formulation
of the problem.
- The natural boundary condition u(1) = 1 is included in the definition of the
functional < , >.
Typeset by FoilTEX
A basis for Vh is
0
N1 N
i(x) =
x0 x1
1, x = xi,
0, x = xj , j 6= i.
xN1 xN
x2
N
X
cii(x).
i=0
Remark: The boundary value uh(0) = c00(0) = 1 gives us an equation for c0.
Typeset by FoilTEX
or
1
c0
1
0 ...
0
c1 < , 1 >
a(0, 1)
. . . a(N , 1)
. =
.
.
.
.
.
.
< , N >
cN
a(0, N )
. . . a(N , N )
Remark This is a system Kc = f where K is the stiffness matrix and f is the
load vector.
Typeset by FoilTEX
1
0
(ii+1+2ii+1)dx
h
0
i+1
xi h
xi+1
11
x x
1 h
{ +2(1 ) }dx = + .
hh
h h
h 6
u + 2u = 1,
x (0, 1),
(3)
10
u
vud = v ud +
v d
- Introduce proper function spaces for solutions and test functions (Weak derivatives, Sobolev spaces).
- Discretize the domain (Mesh of Triangles) and introduce a set of basis functions.
- Efficiently compute the stiffness matrix and load vector for a given problem.
Typeset by FoilTEX
11
ux dx =
1
ux dx+
u(x)
Z
ux dx =
0
ux dx =
uxdx+[u]0
[u]1
0
1
Z 0
Z 1
(+1)dx
(1)dx = (v, )
1
Typeset by FoilTEX
v(x)
+1
1
12
Definition: The Sobolev space H 1() is the set of functions u L2() that
have weak derivatives in L2().
Remarks:
- The set H 1() consists of piecewise differentiable and continous functions.
- The space H 1() is a Hilbert space with scalar product (u, v)1 and norm
1/2
kuk1 = (u, u)1 .
- Higher order Sobolev spaces H m() can be defined similarily.
Example: Suppose R2 then
Z
Z
Z
(u, v)1 =
uvd +
uxvxd +
uy vy d.
Typeset by FoilTEX
13
Weak formulation
Example: Find u C 2 () such that
u = f,
u = g,
u
n = h,
in ,
on D ,
on N ,
N
Z
Typeset by FoilTEX
v ud +
hvd.
14
hvd,
v ud = f vd +
N
u = g, on D .
for all v V
(4)
Remarks
- Can introduce a bilinear operator a(u, v) and a linear functional < , v >.
- The next step is to pick a finite dimensional subspace Sh H 1() and
discretize the problem (4).
Typeset by FoilTEX
15
Domain discretization
Introduce a discretization parameter h and a triangular mesh Th =
{T1, T2, . . . , TM } on .
Need to represent the mesh in an efficient way. Want to be able to compute area
and boundary integrals.
Typeset by FoilTEX
16
Example:
N2
N3
T9
T8
T1
N9
T7
T3
T2
N1
N4
N7
T6
N5
N8
T4
T5
N6
17
N3
Example:
T9
T8
T1
N9
T7
T3
T2
N1
N4
N7
T6
N5
N8
T4
T5
N6
The basis function 8 is non-zero on the triangles T3, T4, T5, T6, and T7.
Typeset by FoilTEX
18
N
X
i=1
and,
uh(xj , yj ) = g(xj , yj ), for nodes Nj = (xj , yj )T on D .
Remarks:
- Most elements Ki,j are integrals a(j , i). How to compute them?
- The linear system Kc = f is (very) sparse.
Typeset by FoilTEX
19
Note that
a(i, j ) =
i j d =
XZ
Tk
i j d.
Tk
20
u = 0
u = 10
Typeset by FoilTEX
n u = 0
21
Summary
The Finite Element Method compared to Finite Differences
- A general purpose technique for solving (elliptic) PDEs in complex domains.
- Relatively easy to make good software that can handle many different types of
equations and domains.
- The linear system Kc = f is sparse but usually not very structured. Have to
use standard sparse linear equation solvers. Less efficient preconditioners.
- Assuming the mesh is of good quality error estimates are similar for Finite
Elements and Finite Differences.
- Can use different types of basis functions, e.g. j C 1(), without changing
the codes very much.
Typeset by FoilTEX
22
23