Professional Documents
Culture Documents
002 Stiffness Method
002 Stiffness Method
002 Stiffness Method
By
Sajjad AHMAD
Course outline (Week 1)
Chapter 1: Introduction
Introduction to matrix notation
General steps of the finite element method
Applications of the finite element method
Advantages of the finite element method
Computer programs for the finite element method
Structural analysis
Matrices
Matrices
Definition: A matrix is a rectangular array of
numbers or symbolic elements
In many applications, the rows of a matrix will
represent individuals cases (people, items,
plants, animals,...) and columns will represent
attributes or characteristics
The dimension of a matrix is it number of rows
and columns, often denoted as r x c (r rows by
c columns)
Can be represented in full form or abbreviated
form:
a11 a12 a1 j a1c
a a22 a2 j a2 c
21
A aij i 1,..., r ; j 1,..., c
ai1 ai 2 aij aic
ar1 ar 2 arj arc
Special Types of Matrices
Square Matrix: Number of rows = # of Columns r c
20 32 50
b b
A 12 28 42 B 11 12
28 46 60 b21 b22
Vector: Matrix with one column (column vector) or one row (row vector)
d1
57 d
C 24 D 2 E ' 17 31 F ' f1 f 2 f3
d3
18
d4
Transpose: Matrix formed by interchanging rows and columns of a matrix (use "prime" to denote transpose)
6 8
6 15 22
G G ' 15 13
23
8 13 25 32
22 25
h11 h1c h11 hr1
H h i 1,..., r ; j 1,..., c H '
ij
h j 1,..., c; i 1,..., r
ji
r c c r
hr1 hrc h1c hrc
Matrix Equality: Matrices of the same dimension, and corresponding elements in same cells are all equal:
4 6 b11 b12
A = B b b11 4, b12 6, b21 12, b22 10
12 10 21 22
b
Example
X Y
1 80 399
Y1 1 30 121
Y 1
1
50 221
Response Vector: Y 2
90 376
1 70 361
n1 1 60 224
1 120 546
Yn 1
1
80
100
352
353
Y' Y1 Y2 Yn 1
1
50 157
1 n 40 160
1 70 252
1 X 1 1 90 389
1 X 1 20 113
abij sum of the products of the c A rB elements of i th row of A and jth column of B :
2 5
3 1
A 3 1 B
3 2 22
0 7 2 4
c
If c A rB c : A B AB = abij = aik bkj i 1,..., rA ; j 1,..., cB
rA c A rB cB rA cB
k 1
Matrix Multiplication Examples - I
Simultaneous Equations: a11 x1 a12 x2 y1 a21 x1 a22 x2 y2
a11 a12 x1 y1
(2 equations: x1 , x2 unknown):
a21 a22 x2 y2
a11 x1 a12 x2 y1
AX = Y
a21 x1 a22 x2 y2
4
Sum of Squares: 4 2 2 32 4 2 3 2 29
2
3
1 X 1 0 1 X 1
1 X X
Regression Equation (Expected Values): 2 0
0 1 2
1
1 X n
0 1 n
X
Matrix Multiplication Examples - II
Matrices used in simple linear regression (that generalize to multiple regression):
Y1
Y n
Y ' Y Y1 Y2 Yn 2 Yi 2
i 1
Yn
1 X 1 n
1 1
1 1 X 2 n X i
n
i 1
X'X
X1 X2 Xn n
2
X i Xi
1 X n i 1 i 1
Y1 n 1 X 1 0 1 X 1
1 Y2 1 X X
Yi
1 1
Xβ 2 0 1 2
i 1
X'Y 0
X1 X2 Xn n
1
i i X Y
Yn i 1 1 X n
0 1 n
X
Special Matrix Types
Symmetric Matrix: Square matrix with a transpose equal to itself: A = A':
6 19 8 6 19 8
A 19 14 3 A' 19 14 3 A
8 3 1 8 3 1
Diagonal Matrix: Square matrix with all off-diagonal elements equal to 0:
4 0 0 b1 0 0
A 0 1 0 B 0 b2 0 Note:Diagonal matrices are symmetric (not vice versa)
0 0 2 0 0 b3
Identity Matrix: Diagonal matrix with all diagonal elements equal to 1 (acts like multiplying a scalar by 1):
1 0 0 a11 a12 a13 a11 a12 a13
I 0 1 0 A a21 a22 a23 IA AI A a21 a22 a23
33 33
0 0 1 a31 a32 a33 a31 a32 a33
Scalar Matrix: Diagonal matrix with all diagonal elements equal to a single number"
k 0 0 0 1 0 0 0
0 k 0 0 0 1 0 0
k k I
0 0 k 0 0 0 1 0 44
0 0 0 k 0 0 0 1
1-Vector and matrix and zero-vector:
1 0 1 1
1 1 1 0 1 1 1 1
1 J
0 Note: 1 ' 1 1 1 1 r 1 1 ' 1 1 1 J
r r
r 1 r r r 1 1r r 1 r 11r
1 1 1 1
1 0 1 1
Linear Dependence and Rank of a Matrix
Linear Dependence: When a linear function of
the columns (rows) of a matrix produces a zero
vector (one or more columns (rows) can be
written as linear function of the other columns
(rows))
Rank of a matrix: Number of linearly
independent columns (rows) of the matrix. Rank
cannot exceed the minimum of the number of
rows or columns of the matrix. rank(A) ≤
min(rA,cA)
A matrix if full rank if rank(A) = min(rA,cA)
1 3
A A1 A 2 3A1 A 2 0
12 21
Columns of A are linearly dependent rank(A ) = 1
22
4 21
4 3
B B1 B 2 0B1 0B 2 0 Columns of B are linearly independent rank(B) = 2
22
4 12 21 21
Geometry of Vectors - II
Length of a vector: length(u ) = u ' u
u 'v
Cosine of Angle between 2 vectors: cos( )
u 'u v 'v
u 'v
arcsin in degrees
u 'u v 'v
Matrix Inverse
Note: For scalars (except 0), when we
multiply a number, by its reciprocal, we get
1: 2(1/2)=1 x(1/x)=x(x-1)=1
In matrix form if A is a square matrix and full
rank (all rows and columns are linearly
independent), then A has an inverse: A-1
such that: A-1 A = A A-1 = I
2 8 2 8 4 32 16 16
36
2 8 36 36
36 2 8 36 36 36 36 1 0
A A -1 A -1 A I
4 2 4 2 4 2 4 2 8 8 32 4 0 1
36 36 36 36 36 36 36 36
4 0 0 1/ 4 0 0 4 1 / 4 0 0 000 0 0 0 1 0 0
B 0 2 0 B -1 0 1/ 2 0 BB -1 0 0 0 0 2 1/ 2 0 0 0 0 0 1 0 I
0 0 6 0 0 1/ 6 0 0 0 000 0 0 6 1/ 6 0 0 1
Computing an Inverse of 2x2 Matrix
a a12
A 11 full rank (columns/rows are linearly independent)
22
a21 a22
Determinant of A A a11a22 a12 a21
Note: If A is not full rank (for some value k ): a11 ka12 a21 ka22
A a11a22 a12 a21 ka12 a22 a12 ka22 0
a22 a12
1
A 1 a
-1
Thus A does not exist if A is not full rank
22
21
A a11
While there are rules for general r r matrices, we will use computers to solve them
Regression Example:
1 X 1 n
n
2
1 X n Xi
n
2 i
X
X'X n X i X i n X i i 1 n X i X
n n n
X X'X
2
2 i 1
2 2
n n
i 1 i 1 n
X i i 1 i 1
X i2
i 1
1 X n i 1
n 2 n
Xi X i
n n n n n
1
X'X Note: X i n X X i2 n X X i2 X i X
1 2 2
i 1
i 1 2 2
Xi X nX
n
n
n X i X
2
X i
i 1 i 1 i 1 i 1 i 1
n
i 1 i 1
1 X
2
X
n
n
n Xi X
2 2
Xi X
X'X
1 i 1 i 1
X 1
n 2
n
Xi X
2
X i X
i 1 i 1
Use of Inverse Matrix – Solving Simultaneous
Equations
AY = C where A and C are matrices of of constants, Y is matrix of unknowns
A -1 AY A -1C Y = A -1C (assuming A is square and full rank)
1 2 6 48 1 96 72 1 168 2
Y=A C
-1
84 10 12 12 84 480 144 84 336 4
Addition Rules:
AB BA ( A B ) C A (B C)
Multiplication Rules:
(AB)C A(BC) C( A B ) CA + CB k (A B ) kA kB k scalar
Transpose Rules:
( A ') ' A ( A B) ' A ' B ' ( AB) ' B'A' (ABC)' = C'B'A'
Red line-Continuous field
Domain with degrees of freedom
over the entire domain.
Blue line-Finite number of
x linear approximations with
the finite number of
Subdomain e
x
elements
Domain divided with subdomains
with degrees of freedom
1
2
5 6
3
4
x
General Steps
1) Discretize the domain
a) Divide domain into finite elements using Examples of Axisymmetric
appropriate element types (1-D, 2-D, 3-D, or models: if the left edge of
each mesh is coincident
Axisymmetric) with the X = 0 axis, then
the model on the left
2) Select a Displacement Function represents a SPHERE and
the model on the right
a) Define a function within each element using the represents a CYLINDER, in
three dimensions.
nodal values
3) Define the Strain/Displacement and
Stress/strain Relationships
4) Derive the Element Stiffness Matrix and
Equations
a)Derive the equations within each element
General Steps
Stress Analysis
Truss and frame
analysis
Stress concentration
Buckling
Vibration analysis
Heat transfer
Fluid flow
Advantages of FEM
Algor SAP
ANSYS STAAD
ABAQUS LS-DYNA
ETABs TNO DIANA
Note on Stiffness matrix
For a 1-D bar, the stiffness matrix is derived from the
stress/strain relationship in Hooke’s law and the definitions
of stress and strain.
[k] = EA 1 -1
L
-1 1
Note on the displacement function
E 2E
a A b A P
L L
Element a Element b
f1 f3 = P
1 2 3
u1 u2 u3
f1 2 f21 f23 2 3 f3 = P
1
u1 u2 u2 u3
Example con’t.
u1 u2 u3
σx = Eεx εx = du/dx
4) Derive the element stiffness matrix and element equations
f1 EA 1 -1 u1 EA
f23 2 -2 u2
f21 = L u2 , =
f3 L u3
-1 1 -2 2
Example con’t.
f1 EA 1 -1 0 u1
= Global Equation
f21+f23 u2
f3 L -1 3 -2 u3
0 -2 2
B.C.: (x =0) u1 = 0
Known variables: f3 = P and f2 = f21+f23 = 0
Example con’t.
f1 EA 1 -1 0 0
0 =
L u2
P -1 3 -2 u3
0 -2 2
f1 = -EAu2 0 = EA(3u2-2u3) P = EA(2u3-2u2)
L L L
u2 = PL u3 = 3PL
EA 2EA f1 = -P
Example con’t.
εa = P = u2 σa = Eεa = P
EA L A
εb = 3P = u3 σa = 2E εb = P
2EA L 3 A
so that:
xx yy zz
pvx 0
x y z
pv
Real Structure is governed by
“Partial Differential Equations” of
various order
Direct solution is only possible for:
• Simple geometry
• Simple Boundary
• Simple Loading.
The Need for Structural Model
STRUCTURE
EXCITATION RESPONSES
Displacements
Loads
Vibrations Strains
pv
Stress
Settlements
Stress Resultants
Thermal Changes
Structural
Model
The Need for Modeling
3D SOLIDS
Simplification Discretization
(geometric)
Equilibrium
Actual Structure Structural Model
xx yy zz
x
y
z
pvx 0
Stress-Strain Law
Kr R
Compatibility “Algebraic
“Partial Differential
Equations”
Equations” _ _ _
t
dV p u dV p u ds
v
t
v
t
s
K = Stiffness
r = Response
(Principle of Virtual Work) R = Loads
How FEM works
Generate individual element stiffness matrix based on element size
and its material properties, on its own local axis
Transform matrices to global axis
Assemble (or add up) element stiffness contributions to nodes that
connect the elements (Global Stiffness Matrix)
Modify the global stiffness matrix to include the effect of boundary
conditions
Solve the matrix equation to determine unknown displacements
Back substitute in element matrices to determine stress resultants
and stresses
CONTINUOUS vs DISCRETE MODELS
p3 Joint
p2
p1 CONTINUOUS MODEL
r8 r7
r9 r11
r5 r12
x2
r6 r4 r10
DISCRETE MODEL
r2
r3 r1 {r} = Joint Degree-of-freedom
= Free DOF
= Locked DOF
Boundary Conditions
continuous model discrete model
Transfer of Element Load to Nodes
system to be analysed
= +
R1 K 11
R 2 K 21
R K
3 31 r1
r1
R 4 = K 41
r3 -K R 5 K 51
51 -K R 6 K 61
61 r1
-K r1 = 1
41
Other r = 0
-K
11 R1 K11 K12 K13 K14 K15 K16 r1
-K R2 K21 K22 K23 K24 K25 K26 r2
31 R3 K31 K32 K33 K34 K35 K36 r3
-K
R4 = K41 K42 K43 K44 K45 K46 r4
r1 = 1 21 R5 K51 K52 K53 K54 K55 K56 r5
R6 K61 K62 K63 K64 K65 K66 r6
Other r = 0 r1-r6
Standard beam stiffness
r standard stiffness
3
R1 K11 K12 K13 K14 K 15 K16 r1 for beam r2
R2 K21 K22 K23 K24 K 25 K26 r2
R3 K31 K32 K33 K34 K 35 K36 r3 r1
R4
R5
= K41
K51
K42
K52
K43
K53
K44
K54
K 45
K 55
K46
K56
r4
r5 r3 C = cos q
R6 K61 K62 K63 K64 K 65 K66 r6
q S = sin q
r1-r6
EAS C2 + 12EIgS2 EAS CS - 12EIgCS -6EIgS -EAS C2 - 12EIgS2 -EAS +12EI3gCS -6EIgS
L L3 L L3 L2 L L3 CS
L L L2
EAS CS - 12EIgCS EAS S2 + 12EIgC2 6EIgC -EAS CS+12EI3gCS -EAS S2 - 12EIgC2 6EIgC
L L3 L L3 L2 L L L L3 L2
-6EIgS 6EIgC 4EIg +6EIgS -6EIgC 2EIg
L2 L2 L L2 L2 L
-EAS C2 - 12EIgS2 -EAS CS+12EI3gCS 6EIgS EAS C2 + 12EIgS2 EAS CS - 12EIgCS 6EIgS
L L3 L L L2 L L3 L L3 L2
-EAS CS+12EI3gCS -EAS S2 - 12EIgC2 -6EIgC EAS CS - 12EIgCS EAS S2 + 12EIgC2 -6EIgC
L L L L3 L2 L L3 L L3 L2
-6EIgS 6EIgC 2EIg 6EIgS -6EIgC 4EIg
L2 L2 L L2 L2 L
8
7 11
5 10
9 12
6
4
1
3
1
2
3
4
5
6 =
7
8
9
10
11
12
8
7 11
5 10
9 12
6
4
1
3
1
2
3
4
5
6 =
7
8
9
10
11
12
8
7 11
5 10
9 12
6
4
1
3
1
2
3
4
5
6 =
7
8
9
10
11
12
8
7 11
5 10
9 12
6
4
1
3
1
2
3
4
5
6 =
7
8
9
10
11
12
8
7 11
5 10
9 12
6
4
1
3
r 2 = r2
1
2
3
4
5
6 = -
7
8
9
10
11
12
8
7 11
5 10
9 12
6
4
1
Final System
3
r2 = r2
1
2
3
4
5
6 = -
7
8
9
10
11
12
Basic Steps in FEA
Discretize Model in FE
Solve FE Model
Engineer
Interpret FEA Results
Engineer + Software
Physical significance of Results Software