Académique Documents
Professionnel Documents
Culture Documents
=
=
= ~
= ~
N
j
j j
N
j
j j
x d x V x v
x c x U x u
1
1
) ( ) ( ) (
) ( ) ( ) (
|
4.2 Approximating Function
U is called trial function and V is called test function
As the differential operator L[u] is second order
Therefore we can see U as element of a finite-diemnsional
subspace of the infinite-dimensional function space C
2
(0,1)
The same way
) 1 , 0 ( ) 1 , 0 (
2 2
C U C u e e
) 1 , 0 ( ) 1 , 0 (
2
C S U
N
c e
) 1 , 0 ( ) 1 , 0 (
2
L S V
N
c e
4.3 The Residual
Replacing v and u with respectively V and U (2) becomes
r(x) is called the residual (as the name of the method suggests)
The vanishing inner product shows that the residual is orthogonal to all
functions V in the test space.
q U L x r
S V r V
N
=
e =
] [ ) (
, 0 ) , (
Substituting into
and exchanging summations and integrals we obtain
As the inner product equation is satisfied for all choices of V in
S
N
the above equation has to be valid for all choices of d
j
which implies that
4.3 The Residual
=
=
N
j
j j
x d x V
1
) ( ) ( 0 ) ] [ , ( = q U L V
N j d q U L d
j
N
j
j j
, ... , 2 , 1 , 0 ) ] [ , (
1
= =
=
N j q U L
j
, ... , 2 , 1 0 ) ] [ , ( = =
4.4 Galerkins Method
One obvious choice of would be taking it equal to
This Choice leads to the Galerkins Method
This form of the problem is called the strong form of the problem.
Because the so chosen test space has more continuity than
necessary.
Therefore it is worthwile for this and other reasons to convert the
problem into a more symmetrical form
This can be acheived by integrating by parts the initial strong form
of the problem.
j
j
|
N j q U L
j
, ... , 2 , 1 0 ) ] [ , ( = = |
Let us remember the initial form of the problem
Integrating by parts
4.5 The Weak Form
dx q zu pu v q u L v
}
+ =
1
0
] )' ' ( [ ) ] [ , (
. 0 ) 1 ( ) 0 (
1 0 ), ( ) ( ) ) ( ( ] [
= =
< < = + =
u u
x x q u x z
dx
du
x p
dx
d
u L
0 ' ) ' ' ( ] )' ' ( [
1
0
1
0
1
0
= + = +
} }
vpu dx vq vzu pu v dx q zu pu v
4.5 The Weak Form
The problem can be rewritten as
where
The integration by parts eliminated the second derivatives
from the problem making it possible less continouity than the
previous form. This is why this form is called weak form of the
problem.
A(v,u) is called Strain Energy.
0 ) , ( ) , ( = q v u v A
dx vzu pu v u v A ) ' ' ( ) , (
1
0
}
+ =
4.6 Solution Space
Now that derivative of v comes into the picture v needs to have more
continoutiy than those in L
2
. As we want to keep symmetry its appropriate
to choose functions that produce bounded values of
As p and z are necessarily smooth functions the following restriction is
sufficient
Functions obeying this rule belong to the so called Sobolev Space and they
are denoted by H
1
. We require v and u to satisfy boundary conditions so we
denote the resulting space as
dx zu u p u u A ) ) ' ( ( ) , (
1
0
2 2
}
+ =
1
0
1
0
2 2
) ' (
H
dx u u
}
+
The solution now takes the form
Substituting the approximate solutions obtained earlier in the
more general WRM we obtain
More explicitly substituting U and V (remember we chose
them to have the same base) and swapping summations and
integrals we obtain
4.7 Linear System of Equations
=
= =
N
k
j k j k
N j q A c
1
, ... , 2 , 1 , ) , ( ) , ( | | |
1
0
) , ( ) , ( H v q v u v A e =
N
N
S V q V U V A
H S V U
0
1
0 0
) , ( ) , (
,
e =
c e
4.8 Connection to the Physical System
Mechanical Formulation Mathematical Formulation
dx EAu u U
L
}
=
0
' '
2
1
}
=
L
dx qu W
0
0 = = H W U o o o
dx vzu pu v u v A ) ' ' ( ) , (
1
0
}
+ =
0 ) , ( ) , ( = q v u v A
) , ( q v
PART III
Finite Element Discretization
Let us take the initial value problem with constant coefficients
As a first step let us divide the domain in N subintervals with
the following mesh
Each subinterval is called finite element.
5.0 Finite Element Discretization
. 0 ) 1 ( ) 0 (
0 ,
1 0 ), ( ' '
= =
>
< < = +
u u
z p
x x q zu pu
N j x x
j j
: 1 ), , (
1
=
1 ... 0
1 0
= < < < =
N
x x x
Next we select as a basis the so called hat function.
5.1 The Trial Basis
< s
< s
=
+
+
+
otherwise
x x x
x x
x x
x x x
x x
x x
x
j j
j j
j
j j
j j
j
j
0
) (
1
1
1
1
1
1
|
With the basis in the previous slide we construct our
approximate solution U(x)
It is interesting to note that the coefficients correspond to the
values of U at the interior nodes
5.1 The Trial Basis
The problem at this point can be easily solved using the
previously derived Galerkins Method
A little more work is needed to convert this problem into
matrix notation
5.1 The Trial Basis
=
= =
N
k
j k j k
N j q A c
1
, ... , 2 , 1 , ) , ( ) , ( | | |
Restricting U over the typical finite element we can write
Which in turn can be written as
in the same way
5.2 Matrix Form of the Problem
] , [ )] ( ) ( [
) (
) (
] [ ) (
1
1
1
1
1 j j
j
j
j j
j
j
j j
x x x
c
c
x x
x
x
c c x U
e
(
=
(
= | |
|
|
] , [ ) ( ) ( ) (
1 1 1 j j j j j j
x x x x c x c x U
e + = | |
] , [ )] ( ) ( [
) (
) (
] [ ) (
1
1
1
1
1 j j
j
j
j j
j
j
j j
x x x
d
d
x x
x
x
d d x V
e
(
=
(
= | |
|
|
Taking the derivative
Derivative of V is analogus
5.2 Matrix Form of the Problem
1
1
1
1
] , [ ] / 1 / 1 [
/ 1
/ 1
] [ ) ( '
=
e
(
=
(
=
j j j
j j
j
j
j j
j
j
j j
x x h
x x x
c
c
h h
h
h
c c x U
] , [ ] / 1 / 1 [
/ 1
/ 1
] [ ) ( '
1
1
1 j j
j
j
j j
j
j
j j
x x x
d
d
h h
h
h
d d x V
e
(
=
(
=
The variational formula can be elementwise defined as
follows:
5.2 Matrix Form of the Problem
}
}
}
=
=
=
+ =
=
=
j
j
j
j
j
j
x
x
x
x
M
j
x
x
S
j
M
j
S
j j
N
j
j j
dx Vq q V
dx zVU U V A
dx U pV U V A
U V A U V A U V A
q V U V A
1
1
1
) , (
) , (
' ' ) , (
) , ( ) , ( ) , (
0 ] ) , ( ) , ( [
1
Substituting U,V,U and V into these formulae we obtain
4.3 The Element Stiffnes Matrix
(
=
(
=
(
|
|
.
|
\
|
(
=
(
|
|
.
|
\
|
}
}
1 1
1 1
] [
1 1
1 1
] [ ) , (
] / 1 / 1 [
/ 1
/ 1
] [ ) , (
1
1
1
2
1
1
1
1
1
j
j
j
j
j j j
j
j
x
x
j
j j
S
j
j
j
x
x
j j
j
j
j j
S
j
h
p
K
c
c
K d d
c
c
dx
h
p
d d U V A
c
c
dx h h
h
h
p d d U V A
j
j
j
j
4.4 The Element Mass Matrix
(
=
(
=
(
|
|
.
|
\
|
(
}
2 1
1 2
6
] [ ) , (
] [ ] [ ) , (
1
1
1
1
1
1
1
j
j
j
j
j j j
S
j
j
j
x
x
j j
j
j
j j
M
j
zh
M
c
c
M d d U V A
c
c
dx z d d U V A
j
j
| |
|
|
The same way
The external work integral cannot be evaluated for every
function q(x)
We can consider a linear interpolant of q(x) for simplicity.
Substituting and evaluating the integral
4.5 External Work Integral
}
=
j
j
x
x
dx Vq q V
1
) , (
] , [ ), ( ) ( ) (
1 1 1 j j j j j j
x x x x q x q x q
e + ~ | |
(
+
+
=
=
(
}
j j
j j j
j
j j j
j
j
j j
x
x
j
j
j j j
q q
q q h
l
l d d dx
q
q
d d q V
j
j
2
2
6
] , [ ] , [ ] , [ ) , (
1
1
1
1
1
1
1
1
| |
|
|
Element load vector
Now the task is to assemble the elements into the whole
system in fact we have to sum each integral over all the
elements
For doing so we can extend the dimension of each element
matrix to N and then put the 2x2 matrix at the appropriate
position inside it
With all matrices and vectors having the same dimension the
summation looks like
4.6 Assembling
=
=
N
j
S
j
A
1
Kc d
T
(
(
(
(
(
(
(
(
=
2 1
1 2 1
... ... ...
1 2 1
1 2 1
1 2
h
p
K
(
(
(
(
=
(
(
(
(
=
1
2
1
1
2
1
... ...
N N
d
d
d
d
c
c
c
c
Doing the same for the Mass Matrix and for the Load Vector
4.6 Assembling
=
=
N
j
M
j
A
1
Mc d
T
(
(
(
(
(
(
(
(
=
4 1
1 4 1
... ... ...
1 4 1
1 4 1
1 4
6
zh
M
(
(
(
(
+ +
+ +
+ +
=
N N N
q q q
q q q
q q q
h
1 2
3 2 1
2 1 0
4
...
4
4
6
l
=
=
N
j
j
q V
1
) , ( l d
T
Substituting this Matrix form of the expressions in
we obtain the following set of linear equations
This has to be satisfied for all choices of d therefore
4.7 Linear System of Equations
0 l c M K d
T
= + ] ) [(
=
=
N
j
j j
q V U V A
1
0 ] ) , ( ) , ( [
0 l c M K = + ) (