Professional Documents
Culture Documents
Lecture 6
Lecture 6
Lecture 6
Numerical Integration
x1
x2
B EB Adx
T 1
x 2 x1
2
1 1 x2
1 1 x1 AEdx
x1
x2
AEdx x x
2
1
1
2
1 1
1 1
f1
f
-1 1
1 1
g ( ) f (1) f (1)
2 2
1 1
I f ( ) d g ( ) d f (1) f (1)
1 1
Simpson’s rule
Approximate the function f(x) by a parabola g(x) that
passes through the end points and through f(0) and
integrate the parabola
f1
f(0
-1 1
( 1) (1 )
g ( ) f (1) (1 )(1 ) f (0) f (1)
2 2
1 1 1 4 1
I f ( ) d g ( ) d f (1) f (0) f (1)
1 1 3 3 3
Requires the function f(x) to be evaluated at 3 points (-1,0, 1)
Constants, linear functions and parabolas are exactly integrated
Not good for cubic and higher order polynomials
FEM Dr. Riessom 7
Simpson’s Rule Continued…
M
I f ( ) d Wi f ( i )
1
1
i 1
1
i 1
Now W = 1 and a = 0.5773 ... are the Wi’s and ai’s (xi’s) for
the two-point Gaussian quadrature as given in the table.
FEM Dr. Riessom 15
Example
Use three-point Gaussian Quadrature evaluate the integrals:
1 0 2 1
2 -1/3, 1/3 1, 1 3
But we want
1
1
f ( ) d W1 f (1 ) a0W1 a0W1
f
f0
g
-1 1
Midpoint quadrature rule:
• Only one evaluation of f(x) is required at the midpoint
of the interval.
• Scheme is accurate for constants and linear
polynomials (compare with Trapezoidal rule)
FEM Dr. Riessom 21
Example: M=2
1
I f ( ) d W1 f (1 ) W2 f ( 2 )
1
2 2
a0 W1 W2 a1 W11 W2 2 a2 W11 W2 2 a3 W11 W2 2
3 3
FEM Dr. Riessom 22
Hence, we obtain the 4 conditions to determine the 4
unknowns (W1 ,W2 x1 and x2 )
Condition 1 : W1 W2 2
Condition2 : W11 W2 2 0
2
Condition3 : W11 W2 2
2 2
3
Condition4 : W11 W2 2 0
3 3
-1
* * 1
1
T 1 1 1 1
k B EB Ad
4 1 1 1
AEd 1
1 1 1
1 AEd 4 1 1
Nodal load vector
1
1
f b N b d
T f b i N i b d
1
1
k B EB Ad AE B B d
1 T 1 T
1 1
Assuming E and A are constants
d N dN1 dN 2 dN3 1
2 1
1
B 2 1 2
d d d d 2 2
FEM Dr. Riessom 27
Quadratic Element Continued…
k B EB Ad AE B B d
1 T 1 T
1 1
1
1/ 2 2 2 1/ 2
2 1/ 4
AE 2 1/ 2 4 2
2 1/ 2 d
1
1/ 4
2
2 1/ 2 1/ 2
2
f 1/ 3
f 1/ 3
-1 1 / 3 1/ 3 1
1
1 1
s I f ( s, t ) dsdt
1 1
1
1 1 1 1
, ,
3 3 3 3
1 1
I f ( s, t ) dsdt
1 1
M
W j f ( s, t j ) ds Using 1D Gauss rule to integrate along ‘t’
1
1
j 1
M M
WiW j f ( s i , t j ) Using 1D Gauss rule to integrate along ‘s’
i 1 j 1
M M
Wij f ( si , t j ) Where Wij =Wi Wj
i 1 j 1
FEM Dr. Riessom 30
The Rule
M M
f ( s, t ) dsdt Wij f ( si , t j )
1 1
I
1 1
i 1 j 1
Wij si t j
1 1
s t dsdt for 2M 1
1 1
i 1 j 1
1
s
1
1 1 1 1
, ,
3 3 3 3
2 2
I Wij f ( si , t j )
i 1 j 1
1 1 1 1 1 1 1 1
f( , ) f ( , ) f ( , ) f( , )
3 3 3 3 3 3 3 3
is exact for a product of two cubic polynomials
FEM Dr. Riessom 32
CASE III: M=3 (3x3 GQ rule)
t
1 1
64
3 6 2 W1 ,
1 3
81
7 1 9 5 25
3
s W2 W3 W4 W5
81
1 4 8 5 5
40
W6 W7 W8 W9
3 3 81
5 5
3 3
f ( s, t ) dsdt Wij f ( si , t j )
1 1
I
1 1
i 1 j 1
t 1 1t
s=1-t t s I f ( s, t ) dsdt
t 0 s 0
M
WIP f IP
1
IP 1