








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









For boundary value problem:Find
u
such that
−∇
2
u
=
f
in Ω
u
=
g
D
on
∂
Ω
D
and
∂u ∂n
=
g
N
on
∂
Ω
N
The Galerkin finite element solution
u
h
=
n ∑ j
=
u
j
φ
j
n
n
∂
∑ j
=
n
u
j
φ
j
∈ H
1 E
is found from the solution of:
A
u = f
where
A
=
{
a
i,j
}
, a
i,j
=
∫
Ω
∇
φ
j
· ∇
φ
i
u = (u
1
,^
u
2
,... ,
u
n
)
T
and
f = (f
1
,^
f^2
,... ,
f
n
)
T
with
fi
=
∫
Ω
φ
i
f
∫
∂
Ω
N
φ
i
g
N
−
n
n
∂
∑ j
=
n
u
j
∫
Ω
∇
φ
j
· ∇
φ
i
FEM – p.2/
Basic tasks are:
Input of the data on
Ω
, ∂
Ω
N
, ∂
Ω
D
defining the problem
to be solved
Generation of a grid or mesh of elements (i.e. anappropriate tiling)
Construction of the Galerkin system
Solution of the discrete system, using a linear equationsolver that exploits the sparsity of the finite elementcoefficient matrix
A posteriori error estimation and meshrefinement/derefinement
FEM – p.4/
Definition of the computational grid comprises:
vectors
x
(
i
)
,^
y
(
i
)
,^
i
= 1
,^
2
,... , n
n
∂
of (cartesian)
coordinates for each node.
a list of indices of nodes on
∂
Ω
D
a contiguous list (numbering in order around theNeuman boundary - usually anticlockwise in2-dimensions) of nodes on
∂
Ω
N
a numbering
k
= 1
,^
2
,... , K
of the triangular elements
and a
(
n
n
∂
)
×
3
array (the
connectivity matrix
) which
identifies the nodes which are vertices of each element
FEM – p.5/
Such a data structure allows us to work with element basedquantites and to later
assemble
the relevant quantities (the
stiffness matrix and load vector) from element contributions:for the stiffnes matrix:
∫
Ω
∇
φ
j
· ∇
φ
i^
=
K∑ k
=
∫
4
k
∇
φ
j
· ∇
φ
i
and on
4
k
we can consider 3 local basis functions
{
ψ
k,
1
, ψ
k,
2
, ψ
k,
3
}
which are linear, equal to 1 at one vertex
and 0 at the other 2 vertices
FEM – p.7/
The
element stiffness matrix
(or
local stiffness matrix
) is the
3
×
3
matrix
A
k
=
{
a
(k
) ij
}
,^
a
(k
) ij
=
∫
4
k
∇
ψ
k,i
· ∇
ψ
k,j
ie. a
(k
) ij
=
∫
4
k
∂ψ
k,i ∂x
∂ψ
k,j ∂x
∂ψ
k,i ∂y
∂ψ
k,j ∂y
d
x
d
y,
i, j
= 1
,^
2
,^
3
and the
element
(or
local
)^
load vector
is the 3-vector
f
k
=
{
f
(
k
) i^
}
,^
f
( k
) i^
=
∫
4
k
f ψ
k,i
∫
∂
Ω
N
∩
∂
4
k
g
N
ψ
k,i
Note: we ignore any Dirichlet boundary conditions at thisstage
FEM – p.8/
x
(x ,y )
(1,0)
1
(x ,y )
y
(0,0)
1
2
2
ξ
η
(x ,y )
3
3
(0,1)
x
(
ξ, η
)
=
x
1
χ
1
(
ξ, η
) +
x
2
χ
2
(
ξ, η
) +
x
3
χ
3
(
ξ, η
)
y
(
ξ, η
)
=
y
1
χ
1
(
ξ, η
) +
y
2
χ
2
(
ξ, η
) +
y
3
χ
3
(
ξ, η
)
where
χ
1
(
ξ, η
)
=
1
−
ξ
−
η
χ
2
(
ξ, η
)
=
ξ
χ
3
(
ξ, η
)
=
η
are the
P
1
basis functions defined on the reference
element. This is called an
isoparametric
mapping.
FEM – p.10/
x
(
ξ, η
)
=
x
1
χ
1
(
ξ, η
) +
x
2
χ
2
(
ξ, η
) +
x
3
χ
3
(
ξ, η
)
y
(
ξ, η
)
=
y
1
χ
1
(
ξ, η
) +
y
2
χ
2
(
ξ, η
) +
y
3
χ
3
(
ξ, η
)
where
χ
1
(
ξ, η
)
=
1
−
ξ
−
η
χ
2
(
ξ, η
)
=
ξ
χ
3
(
ξ, η
)
=
η
This mapping is certainly differentiable (smoother!) thus forany given function
ϕ
(
ξ, η
)
the chain rule applies:
[
∂ϕ^ ∂ξ∂ϕ^ ∂η
]
=
[
∂x^ ∂ξ
∂y^ ∂ξ
∂x ∂η
∂y ∂η
] [
∂ϕ^ ∂x∂ϕ^ ∂y
]
=
[
x
2
−
x
1
y
2
−
y
1
x
3
−
x
1
y
3
−
y
1
]
[
∂ϕ ∂x∂ϕ^ ∂y
]
⇒
[
∂ϕ^ ∂x∂ϕ^ ∂y
]
=
1 |J
k
|
[
y
3
−
y
1
y
1
−
y
2
x
1
−
x
3
x
2
−
x
1
]
[
∂ϕ^ ∂ξ∂ϕ^ ∂η
]
,^
|J
k
|^
= 2
|
k
|
FEM – p.11/
so for the entries of the element stiffness matrix a
(k
) ij
=
∫
4
k
∂ψ
k,i ∂x
∂ψ
k,j ∂x
∂ψ
k,i ∂y
∂ψ
k,j ∂y
d
x
d
y,
i, j
= 1
,^
2
,^
3
=
∫
4∗
{
∂ψ
∗
,i
∂x
∂ψ
∗
,j
∂x
∂ψ
∗
,i
∂y
∂ψ
∗
,j
∂y
}
|J
k
|d
ξ
d
η
where
4∗
is the reference triangle and
ψ
∗
,^1
=
χ
1
(
ξ, η
) = 1
−
ξ
−
η
ψ
∗
,^2
=
χ
2
(
ξ, η
) =
ξ
ψ
∗
,^3
=
χ
3
(
ξ, η
) =
η
are the
P
1
basis functions on the reference element
FEM – p.13/
Finally we arrive at
a
(
k
) ij
=
∫
4∗
(
(
y
3
−
y
1
)
∂χ
i
∂ξ
y
1
−
y
2
)
∂χ
i
∂η
)
(
(
y
3
−
y
1
)
∂χ
j
∂ξ
y
1
−
y
2
)
∂χ
j
∂η
)
1 |J
k
|^
d
ξ
d
η
∫
4∗
(
(
x
1
−
x
3
)
∂χ
i
∂ξ
x
2
−
x
1
)
∂χ
i
∂η
)
(
(
x
1
−
x
3
)
∂χ
j
∂ξ
x
2
−
x
1
)
∂χ
j
∂η
)
1 |J
k
|^
d
ξ
d
η
with
χ
1
(
ξ, η
)
=
1
−
ξ
−
η
χ
2
(
ξ, η
)
=
ξ
χ
3
(
ξ, η
)
=
η
FEM – p.14/