Professional Documents
Culture Documents
Lec11 PDF
Lec11 PDF
0 , .
Find the weak equation by multiplying the differential equation by φ with φ(0) = φ(L) = 0 and
integrating by parts
, .
In order to obtain more accurate approximations use quadratic and not linear shape functions.
Example Problem – Use the below axis, assume u1 = u(0), u2 = u(h/2), u3 = u(h)
0 0
/2
2
In matrix form
1 0 0
1 /2 /2
1
1 0 0
1 /2 /2
1
This is written in vector form
The inverse of A is
1 0 0
3/ 4/ 1/
2/ 4/ 2/
Express u as a function of u1, u2, and u3 through the use of shape function Qi, which will
be defined later,
Let us analyze Q1
0 1, 0, 0
2
1 1 0 0
0 1 /2 /2
0 1
, ,
This means the coefficients of the Qi are in column i of the inverse of A, which we wrote as B.
3
1 2/
4
0 4/
1
0 2/
,
,
,
, , ,
, .
0, 1 2.
∑̂ ̂, ̂ and ∑̂ ̂,
, ̂, ̂ ̂, ̂
̂ ̂, ̂, ̂
̂ ̂ ̂ ̂
, ̂, ̂ ̂
̂ ̂ ̂,
̂ ̂
̂, ̂ ̂ ̂
̂ ̂
, ij
• Error estimates for a test case: fem1d.m
Define the error = u(ih) – ui where we can choose to use either a linear or quadratic
n error in linear fem error in quadratic fem
6 0.0978 2.75E‐04
11 0.0248 2.12E‐05
21 0.0062 1.49E‐06
41 0.0015 9.80E‐08
O(h2) O(h4)
• Extension to 2D.
6 3
2
1
c
a ξ
b θ
y
x
1 0 0 0
1 0 0 0
2 2
1 0 0 0
1
2 2 2 4 2
1 0 0 0
1
2 2 2 4 2
̂ :,
, –Δ
,
! !
=
!
The values of a,b and c will change from one element to the next and can be computed