Module 2 PDF
Module 2 PDF
(2.1.6)
For a 3D structural problem, stress has six components:
T
x y z xy yz zx
, , , , , o = o o o f f f .
Similarly, there are six components of strains:
T
x y z xy yz zx
, , , , , = . Now the strain-
displacement relationship can be expressed as { } | |{ } B d = , where {d} is the displacement vector in
x, y and z directions and [B] is called as the strain displacement relationship matrix. Again, the
stress can be represented in terms of its constitutive relationship matrix: { } | |{ } D = . Here | |
D
is called as the constituent relationship matrix. Using the above relationship in the strain energy
equation one can arrive
| |{ } | |{ }{ }
1
2
T
U B d D B d d
( =
(2.1.7)
Applying the variational principle one can express
3
{ }
{ }
| | | || | { }
T U
F B D B d d
d
= =
(2.1.8)
Now, from the relationship of { } | |{ } F K d = , one can arrive at the element stiffness matrix as:
| | | | | || |
T
K B D B d
(2.1.9)
Thus, by the use of variational principle, the stiffness matrix of a structural element can be obtained
as expressed in the above equation.
2.1.4 Weighted Residual Method
Virtual work and Variational method are applicable and adequate for most of the problems.
However, in some cases functional analogous to potential energy cannot be written because of not
having clear physical meaning. For some applications, such as in fluid mechanics problem,
functional needed for a variational approach cannot be expressed. For some types of fluid flow
problems, only differential equations and boundary conditions are available. For Such problems
weighted residual method can be used for obtaining the solutions. Approximate solutions of
differential equation satisfy only part of conditions of the problem. For example a differential
equation may be satisfied only at few points, rather than at each. The strategy used in weighted
residual method is to first take an approximate solution and then its validity is assessed. The
different methods in weighted Residual Method are
Collocation method
Least square method
Method of moment
Galerkin method
The mathematical statement of a physical problem can be defined as:
In domain ,
Du f 0 = (2.1.10)
Where,
D is the differential operator
u =u(x) =dependent variables such as displacement, pressure, velocity,
potential function
x =independent variables such as coordinates of a point
f =a function of x which may be constant or zero
If u is an approximate solution then residual in domain ,
R Du f = (2.1.11)
According to the weighted residual method, the weak form of above equation will become
4
( )
i
i
w R d 0 for i 1,2,3,...,n
or
w Du f d 0
\
\
\= =
\=
]
]
(2.1.12)
Where weighting function w
i
=w
i
(x) is chosen from the approximate basis function used for
constructing approximated solutionu.
5
Lecture 2: Galerkin Method
2.2.1 Introduction
Galerkin method is the most widely used among the various weighted residual methods. Galerkin
method incorporates differential equations in their weak form, i.e., before starting integration by
parts it is in strong form and after by parts it will be in weak form, so that they are satisfied over a
domain in an integral. Thus, in case of Galerkin method, the equations are satisfied over a domain in
an integral or average sense, rather than at every point. The solution of the equations must satisfy the
boundary conditions. There are two types of boundary conditions:
Essential or kinematic boundary condition
Non essential or natural boundary condition
For example, in case of a beam problem (
4
4
y
EI q 0
x
0
=
0
) differential equation is of forth order.
As a result, displacement and slope will be essential boundary condition where as moment and shear
will be non-essential boundary condition.
2.2.2 Galerkin Method for 2D Elasticity Problem
For a two dimensional elasticity problem, equation of equilibrium can be expressed as
xy
x
x
F 0
x y
\
0f
0o
=
0 0
(2.2.1)
xy y
y
F 0
x y
\
0f 0o
=
0 0
(2.2.2)
Where,
x y
F andF
\ \
are the body forces in X and Y direction respectively. Let assume,
x y
and
\ \
I I
are surface forces in X and Y direction and o as angle made by normal to surface
with X axis (Fig. 2.2.1). Therefore, force equilibrium of element can be written as:
( ) ( ) ( )
( )
x x xy
x x xy x xy x xy
F PQ t OP t OQ t
OP OQ
F cos sin cos Cos 90
PQ PQ
I
I
=o f
=o f =o o f o =o o f o
x x xy
Thus, F m
I
=o f (2.2.3)
Where, and m are direction cosines of normal to the surface. Similarly,
y xy y
F m
I
=f o (2.2.4)
6
Fig. 2.2.1 Elemental stress in 2D
Adopting Galerkins approach
xy xy y
x
x x
F u F v dxdy 0
x y x y
I I
l
1 1
0f 0f 0o
0o
l
o o =
l
0 0 0 0 ( ) ( )
l
]] ]]
(2.2.5)
Where u and v o o are weighting functions i.e elemental displacements in X and Y directions
respectively. Now one can expand above equation by using Greens Theorem.
Green Theorem states that if ( ) ( ) x,y and x,y o y are continuous functions then their first and
second partial derivatives are also continuous. Therefore,
2 2
2 2
dxdy dxdy mds
x x y y x y x y
l l l
0o 0y 0o 0y 0 y 0 y 0y 0y
l l l
= o o
l l l
0 0 0 0 0 0 0 0
l l l
]] ]] ]
(2.2.6)
Assuming,
x
; u; 0
x y
0y 0y
o=o =o =
0 0
one can rewrite with the use of above relation as
( )
x
x x
u
u dx dy dx dy u ds
x x
0 o
0o
o = o o o
0 0
]] ]] ]
(2.2.7)
Similarly, assuming
y
; 0and v
x y
0y 0y
o=o = =o
0 0
( )
y
y y
v
v dx dy dx dy m v ds
y y
0o 0 o
o = o o o
0 0
]] ]] ]
(2.2.8)
7
Again, assuming
xy
; v; 0
x y
0y 0y
o=f =o =
0 0
( )
xy
xy xy
v
v dx dy dx dy v ds
y x
0f 0 o
o = f f o
0 0
]] ]] ]
(2.2.9)
And assuming,
xy
; 0; u
x y
0y 0y
o=f = =o
0 0
( )
xy
xy xy
u
u dx dy dx dy m u ds
y y
0f 0 o
o = f f o
0 0
]] ]] ]
Putting values of eqs. (2.2.7), (2.2.8) and (2.2.9), in eq. (2.2.5), one can get the following relation:
( ) ( ) ( ) ( )
x y xy xy
x y xy xy x y
u v v u dx dy
x y x y
u mv v mu ds F u dx dy F v dx dy 0
\ \
l
0 0 0 0
l
o o o o f o f o
l
0 0 0 0
l
l
o o o o f o f o o o =
l
]]
] ]] ]]
(2.2.10)
Rearranging the terms of above expression, the following relations are obtained.
( ) ( ) ( ) ( ) ( )
x y xy xy x y
u v v u dx dy F u F v dx dy
x y x y
\ \
l
0 0 0 0
l
o o o o f o f o o o
l
0 0 0 0
l
]] ]]
( ) ( )
x xy xy y
m uds m vds 0 o f o f o o =
] ]
(2.2.11)
Here,
x y
F andF
\ \
are the body forces and u& v o o are virtual displacements in X and Y directions
respectively.
Considering first
term of eq. (2.2.11), virtual displacement u o is given to the element of unit
thickness. Dotted position in Fig. 2.2.2 shows the virtual displacement. Thus, work done by
x
o :
( ) ( )
x x x
dy u u dx dy u u dxdy
x x
l
0 0
l o o o o o =o o
l 0 0
l
(2.2.12)
Similarly, considering secondterm of eq. (2.2.11), virtual work done by body forces is
( )
x y
F u F v dx dy
\ \
o o
]]
8
Putting eqs. (2.2.3) & (2.2.4) in third term of eq. (2.2.11) we get the virtual work done by surface
forces as:
x y
F uds F vds
I I
o o
] ]
Fig. 2.2.2 Element subjected to stresses
Due to virtual displacement u o , change in strain
x
o is given by:
( )
( )
x
u u dx u
x
u
dx x
l
0
o o o l
0 l 0
l
o = = o
0
(2.2.13)
The virtual work done by
x x x
is . .dxdy o o o . Similarly all the individual term in the first term of
eq. (2.2.11) can be derived from eq. (2.2.13) which will be as follows:
( )
x x x
u dxdy dxdy
x
0
o o = o o
0
]] ]]
( )
y y y
v dxdy dxdy
y
0
o o = o o
0
]] ]]
(2.2.14)
( ) ( )
xy xy xy
v u dxdy
x y
' '
1 1 0 0
1 1
f o o = f o
! !
1 1
0 0
1 1 + +
]] ]]
Now, the work done by internal forces will be
9
( )
x x y y xy xy
U dxdy o = o o o o f o
]]
(2.2.15)
If external work done is represented by W
E
and U is the internal work done then,
E E
U w 0or U w o o = o =o
(2.2.16)
Thus in elasticity problems, Galerkins method turns out to be the principle of virtual work, which
can be stated that A Deformable body is said to be in equilibrium, if the total work done by external
forces is equal to the total work done by internal forces. The work done above is virtual as either
forces or deformations are also virtual. Thus, Galerkins approach can be followed in all problems
involving solution of a set of equations subjected to specified boundary values.
2.2.3 Galerkin Method for 2D Fluid Flow Problem
Let consider the two dimensional incompressible fluid equation which can be expressed by pressure
variable only as follows.
2
p 0 \ = (2.2.17)
Where p is the pressure inside the fluid domain. The above equation can be expressed in 2D form as:
2 2
2 2
ii
p p
0
x y
or
p, 0
0 0
=
0 0
=
(2.2.18)
Applying weighted residual method, the weak form of the above equation will become
i ii
w p, d 0
\
\=
]
(2.2.19)
Integrating by parts of the above expression, the following relation can be obtained.
i i i,i i
w p, d w p, d 0
I \
I \=
] ]
i,i i i i
or w p, d w p, d
\ I
\= I
] ]
(2.2.20)
If the nodal pressure and interpolation functions are denoted by pand N respectively, then the
pressure at any point inside the fluid domain can be expressed as
[ [ p N p =
Similarly, the weighted function can also be written with the help of interpolation function as
[ [ w N w =
10
Thus, [ [ [ [[ [ [ [
i,i
p L p L N p B p = = = , where, [ [ L
x y
l
0 0
l
=
l
0 0
l
=differential operator.
Similarly, [ [ [ [[ [ [ [
i,i
w L W L N w B w = = =
[ [ [ [ [ [[ [
T T
i,i i
Thus, w p, d w B B pd
\
\= \
] ]
(2.2.21)
[ [
T T
i i
p
w p, d = w N d
n
I I
0
I I
0
] ]
(2.2.22)
Here, denotes the surface of the fluid domain and n represents the direction normal to the surface.
Thus, from eq. (2.2.20), one can write the expression as:
[ [ [ [ [ [
T T T T p
Thus, w B B p d w N d
n
\ I
0
\= I
0
] ]
[ [ Or, G p S = (2.2.23)
Where,
[ [ [ [ [ [ [ [ [ [ [ [ [ [
[ [
T
T T
T
G B B d N N N N d
x x y y
p
and S N d
n
\ \
I
1
0 0 0 0
= \= \
0 0 0 0 ( )
0
= I
0
] ]
]
(2.2.27)
Here, n is the direction normal to the surface. Thus, solving the above equation with the prescribed
boundary conditions, one can find out the pressure distribution inside the fluid domain by the use of
finite element technique.
11
Lecture 3: Finite Element Method: Displacement Approach
2.3.1 Choice of Displacement Function
Displacement function is the beginning point for the structural analysis by finite element method.
This function represents the variation of the displacement within the element. On the basis of the
problem to be solved, the displacement function needs to be approximated in the form of either
linear or higher-order function. A convenient way to express it is by the use of polynomial
expressions.
2.3.1.1 Convergence criteria
The convergence of the finite element solution can be achieved if the following three conditions are
fulfilled by the assumed displacement function.
a. The displacement function must be continuous within the elements. This can be ensured by
choosing a suitable polynomial. For example, for an n degrees of polynomial, displacement
function in I dimensional problem can be chosen as:
2 3 4
0 1 2 3 4
.....
n
n
u x x x x x = + + + + + + (2.3.1)
b. The displacement function must be capable of rigid body displacements of the element. The
constant terms used in the polynomial (
0
to
n
) ensure this condition.
c. The displacement function must include the constant strains states of the element. As
element becomes infinitely small, strain should be constant in the element. Hence, the
displacement function should include terms for representing constant strain states.
2.3.1.2 Compatibility
Displacement should be compatible between adjacent elements. There should not be any
discontinuity or overlapping while deformed. The adjacent elements must deform without causing
openings, overlaps or discontinuous between the elements.
Elements which satisfy all the three convergence requirements and compatibility condition
are called Compatible or Conforming elements.
2.3.1.3 Geometric invariance
Displacement shape should not change with a change in local coordinate system. This can be
achieved if polynomial is balanced in case all terms cannot be completed. This balanced
representation can be achieved with the help of Pascal triangle in case of two-dimensional
polynomial. For example, for a polynomial having four terms, the invariance can be obtained if the
following expression is selected from the Pascal triangle.
0 1 2 3
u x y xy = + + + (2.3.2)
12
The geometric invariance can be ensured by the selection of the corresponding order of terms on
either side of the axis of symmetry.
1
x y
x
2
xy y
2
x
3
x
2
y xy
2
y
3
x
4
x
3
y x
2
y
2
xy
3
y
4
Fig. 2.3.1 Pascals Triangle
2.3.2 Shape Function
In finite element analysis, the variations of displacement within an element are expressed by its
nodal displacement (
i i
u N u =
1
,
x
is discontinuous. If the interpolation function is considered as
2
2 0 1 2
x x = + + then
2, 1 2
2
x
x = + is also continuous but
2, 2
2
xx
= is discontinuous. As a result, this function
2
will
become C
1
continuous.
2.3.4 Isoparametric Elements
If the shape functions (N
i
) used to represent the variation of geometry of the element are the same as
the shape functions (N
i
) used to represent the variation of the displacement then the elements are
called isoparametric elements. For example, the coordinates (x,y) inside the element are defined by
the shape functions (N
i
) and displacement (u,v) inside the element are defined by the shape functions
(N
i
) as below.
i i i i
i i i i
x N x u N u
y N y v N v
= =
= =
(2.3.3)
If N
i
= N
i
, then the element is called isroparametric. Fig. 2.3.2(a) shows the two dimensional 8 node
isoparametric element.
If the geometry of element is defined by shape functions of order higher than that for representing
the variation of displacements, then the elements are called superparametric (Fig. 2.3.2(b)).
If the geometry of element is defined by shape functions of order lower than that for representing the
variation of displacements then the elements are called subparametric (Fig. 2.3.2(c)).
Fig. 2.3.2 Shape functions for geometry and displacements
14
2.3.5 Various Elements
Selection of the order of the polynomial depends on the type of elements. For example, in case of
one dimensional element having single degrees of freedom with two nodes, the displacement
function can be chosen as
0 1
u x = + . However, if the same has two degrees of freedom at each
node, then the chosen displacement function should be
2 3
0 1 2 3
u x x x = + + + . Various types of
elements used in finite element analysis are given below:
1. One dimensional elements.
(a) Two node element
(b) Three node element
Fig. 2.3.3 One dimensional elements
2. Two dimensional elements
(a) Triangular element
(b) Rectangular element
(c) Quadrilateral element
(d) Quadrilateral formed by two triangles
(e) Quadrilateral formed by four triangles
Few of the elements with number of nodes are shown in Fig. 2.3.4.
15
Fig. 2.3.4 Two dimensional elements
3. Three dimensional elements.
(a) Tetrahedron
(b) Rectangular brick element
Few of the three dimensional solid elements are shown in Fig. 2.3.5.
16
Fig. 2.3.5 Three dimensional elements
17
Lecture 4: Stiffness Matrix and Boundary Conditions
2.4.1 Element Stiffness Matrix
The stiffness matrix of a structural system can be derived by various methods like variational
principle, Galerkin method etc. The derivation of an element stiffness matrix has already been
discussed in earlier lecture. The stiffness matrix is an inherent property of the structure. Element
stiffness is obtained with respect to its axes and then transformed this stiffness to structure axes. The
properties of stiffness matrix are as follows:
Stiffness matrix is symmetric and square.
In stiffness matrix, all diagonal elements are positive.
Stiffness matrix is be positive definite
2.4.2 Global Stiffness Matrix
A structural system is an assemblage of number of elements. These elements are interconnected
together to form the whole structure. Therefore, the element stiffness of all the elements are first
need to be calculated and then assembled together in systematic manner. It may be noted that the
stiffness at a joint is obtained by adding the stiffness of all elements meeting at that joint.
To start with, the degrees of freedom of the structure are numbered first. This numbering will
start from 1 to n where n is the total degrees of freedom. These numberings are referred to as degrees
of freedom corresponding to global degrees of freedom. The element stiffness matrix of each
element should be placed in their proper position in the overall stiffness matrix. The following steps
may be performed to calculate the global stiffness matrix of the whole structure.
a. Initialize global stiffness matrix | | K as zero. The size of global stiffness matrix will be equal
to the total degrees of freedom of the structure.
b. Compute individual element properties and calculate local stiffness matrix | |
k of that
element.
c. Add local stiffness matrix| |
k to global stiffness matrix| | K using proper locations
d. Repeat the Step b. and c. till all local stiffness matrices are placed globally.
The steps to be followed in the computer program are shown in the form of flow chart in Fig. 2.4.1
for assembling the local stiffness matrix to global stiffness matrix.
18
Fig. 2.4.1 Assemble of stiffness matrix from local to global
19
2.4.3 Boundary Conditions
Under this section, procedure to include the effect of boundary condition in the stiffness matrix for
the finite element analysis will be discussed. The solution cannot be obtained unless support
conditions are included in the stiffness matrix. This is because, if all the nodes of the structure are
included in displacement vector, the stiffness matrix becomes singular and cannot be solved if the
structure is not supported amply, and it cannot resist the applied loads. A solution cannot be
achieved until the boundary conditions i.e., the known displacements are introduced.
In finite element analysis, the partitioning of the global matrix is carried out in a systematic
way for the hand calculation as well as for the development of computer codes. In partitioning,
normally the equilibrium equations can be partitioned by rearranging corresponding rows and
columns, so that prescribed displacements are grouped together. For example, let consider the
equation of equilibrium is expressed in compact form as:
{ } | |{ } F K d = (2.4.1)
Where,
[K] is the global stiffness matrix,
{d} is the displacement vector consisting of global degrees of freedom, and
{F} is the load vector corresponding to degrees of freedom.
By the method of partitioning the above equation can be partitioned in the following manner.
{ }
{ }
| | { }
{ }
K K F d
F d
K K
( (
(
=
` `
( ( (
) )
(2.4.2)
Where, subscripts refers to the displacements free to move and refers to the prescribed support
displacements. As the prescribed displacements {d
} as
{ } | | { } { } { }
-1
d = K F - K d
(
(2.4.4)
If the displacements at supports {d
} are restrained, i.e., displacements are zero. If the support has some known displacements, then
eq. (2.4.4) can be used to find the solution. If the few supports of the structures yield, then the above
method may be modified by partitioning the stiffness matrix into three parts as shown below:
20
[ [
K K K
F d
F K K K d
F d K K K
oo o o
o o
o
o
l ' ' ' ' l l
1 1 1 1
1 1 1 1 l l l
1 1 1 1
l 1 1 1 1
1 1 1 1
l l l
l =
! ! ! !
l l l
l 1 1 1 1
1 1 1 1
l
1 1 1 1
l l l
1 1 1 1
l
l l l 1 1 1 1 + + + + l
(2.4.6)
Here, refers to unknown displacement; refers to known displacement (0) and refers to zero
displacement. Thus, the above equation can be separated and solved independently to find required
unknown results as shown below.
[ [
[ [
[ [
1
F K d K d K d
or, K d F K d as d 0
Thus, d K F K d
o oo o o o
oo o o o
o oo o o
l l
=
l l
l
= =
l
l
=
l
(2.4.7)
For computer programming, several techniques are available for handling boundary conditions. One
of the approaches is to make the diagonal element of stiffness matrix corresponding to zero
displacement as unity and corresponding all off-diagonal elements as zero. For example, let consider
a 33 stiffness matrix with following force-displacement relationship.
1 11 12 13 1
2 21 22 23 2
3 31 32 33 3
F k k k d
F k k k d
F k k k d
(
(
=
` `
(
(
) )
(2.4.8)
Now, if the third node has zero displacement (i.e., d
3
=0) then the matrix will be modified as follows
to incorporate the boundary condition.
1 11 12 1
2 21 22 2
3
0
0
0 0 0 1
F k k d
F k k d
d
(
(
=
` `
(
(
) )
(2.4.9)
Thus, while inverting whole matrix, d
3
will become zero automatically.
To incorporate known support displacement in computer programming following procedure may be
adopted. Considering the displacement d
2
has known value of , 1
st
row of eq. (2.4.8) can be written
as:
1 11 1 12 2 13 3
F k d k d k d = + +
(2.4.10)
Or
1 12 11 1 13 3
F k k d k d = + (2.4.11)
Now the 2
nd
row of eq. (2.4.8) has to become:
21
{ } { }
2
d = (2.4.12)
Similarly 3
rd
row will be:
3 32 31 1 33 3
F k k d k d = + (2.4.13)
Thus above three equations can be written in a combined form as
1 12 11 13 1
2
32 31 33 3
0
0 1 0
0
F k k k d
d
F k k d
(
(
=
` `
(
(
) )
(2.4.14)
Another approach may also be followed to take care the known restrained displacements by
assigning a higher value (say =10
20
) in the diagonal element corresponding to that displacement.
1 11 12 13 1
20 20
22 21 22 23 2
3 31 32 33 3
10 10
F k k k d
k k k k d
F k k k d
(
(
=
` `
(
(
) )
(2.4.15)
20 20
22 21 1 22 2 23 3
10 k k d k 10 d k d o =
As d
3
is corresponding to zero displacement, the above equation can be simplified to the following.
20 20
22 21 1 22 2
20 20
22 22 2
2
10 k k d k 10 d
or 10 k k 10 d
d known displacement isensured
o =
o =
= =o
If the overall stiffness matrix is to be formed in half band form then the numbering of nodes should
be such that the bandwidth is minimum. For this the labels are put in a systematic manner
irrespective of whether the joint displacements are unknowns or restraints. However, if the unknown
displacements are labeled first then the matrix operations can be restricted up to unknown
displacement labels and beyond that the overall stiffness matrix may be ignored.