Shape Functions
Shape Functions
b. The displacement function must ensure rigid body displacements of the element. The constant
terms used in the polynomial (a0 to an) ensure this condition.
c. The displacement function must ensure the constant strain within the element. This can be
achieved by selecting infinitely small element. For this, the displacement function should
include appropriate terms.
FEM: Displacement Method
2. Compatibility Conditions:
• Shape/Displacement function should be compatible between neighboring
elements. Elements should be continuous and elements should not overlap, u ( x, y ) a0 a1 x a2 y
when it deforms. u ( x, y ) a0 a1 x a2 y a3 x 2 a4 xy a5 y 2
• Elements confirming convergence requirements and compatibility
conditions are known as conforming or compatible elements.
3. Geometric invariance:
• Deformation shape should be same when local coordinate system changes.
For this, polynomial should be complete. If it is not possible, incomplete
polynomial can be formed, but it must be balanced. For 2-D problems,
balanced polynomial can be formed with the help of “Pascal Triangle”. For
a four term polynomial, the invariance is ensured as follows:
u ( x, y ) a0 a1 x a2 y a3 xy
• The geometric invariance is obtained by maintaining symmetry,
while selecting the terms in Pascal’s Triangle.
Pascal’s Triangle
Shape Functions
• In FEA, the true deformation inside an element in not known, so the variations of
deformations inside an element are expressed using nodal deformation u ( x)
using interpolation function.
N i ( x)ui
• u(x) is the deformation at any point inside the element and u ( x) Ni ( x)ui are the
nodal deformations. Interpolating function is a single valued continuous polynomial of
n-degree.
• Interpolation function (Ni) is also known as “Shape function”. For linear interpolation,
n will be 1 and for quadratic interpolation n will become 2 and so on.
Types of Interpolation Function
(i) Lagrange interpolation and (ii) Hermitian interpolation
• Lagrange interpolation assumes that the function takes on the same values as the given
function at specified points. In Hermitian interpolation function, the slopes of the
function also take the same values as the given function at specified points.
Shape Functions
Degree of Continuity
• Let u(x) is an piecewise interpolation function in a finite element mesh. The
interpolation function u(x) should vary smoothly within the element. The transition
between adjacent elements may not be smooth.
• The term Cm is used to define the continuity of a piecewise displacement. A function
Cm is continuous if its derivative up to and including degree m are inter-element
continuous. For example, for one dimensional problem, u= u(x) is C0 continuous if u
is continuous, but its derivative is (u,x) is not.
• u= u(x) is C1 continuous if u and u’(x) are continuous, but u,xx is not.
• C0 element is used to model plane and solid body and C1 element is used to model
beam, plate and shell like structure, where inter-element continuity of slope is
necessary to ensure.
• Shape function for bar element, u1 ( x) a0 a1 x, is C0 continuous, since u1,x is
discontinuous. Function u2 ( x) a0 a1 x a2 x 2, first derivative, u2 , x a1 2a2 x and
second derivative, u2 , xx 2a2 , is discontinuous, so the function u2 is C1 continuous.
Shape Functions
Isoparametric elements
• If the shape functions (Ni) 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 (Ni) and displacement (u,v) inside the element are defined by the shape functions
(N´i) as:
x N i xi u N i ui
'
y N i yi v N i'vi
• If Ni = N´i, then the element is called isroparametric. Fig. 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 the
variation of displacements, then the elements
are called superparametric (Fig. 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. c). a) Isoparametric b) Superparametric c) Subparametric
0 – Geometry of the element and Displacement
Element Types
One dimensional elements
(a) Two node element u ( x) a0 a1 x u ( x) a0 a1 x a2 x 2
(b) Three node element
x1 , y1 a0 a1 x1 a2 y1 1 1 x1 y1 a0 1
x2 , y2 a0 a1 x2 a2 y2 2 1 x2 y2 a1 2
x3 , y3 a0 a1 x3 a2 y3 3
1 x3 y3 a2 3
2-D: Triangular Elements 1 x1 y1 a0 1
• Inverting above system, coefficients can be 1 x2 y2 a1 2
evaluated. 1 x3 y3 a2 3
1
a0 1 x2 y3 x3 y2 2 x3 y1 x1 y3 3 x1 y2 x2 y1
2A y 1 x1 y1
1
a1 1 y2 y3 2 y3 y1 3 y1 y2 1
x2 1
2A y2 x1 A 1 x2 y2
y3 2
1 1 x3 y3
a2 1 x3 x2 2 x1 x3 3 x2 x1 x3
2A
x2 y3 x3 y2 y2 y3 x x3 x2 y 1
1
x, y 3 1 1 3 3
x y x y y y1 x 1 3 2
x x y
2A
x1 y2 x2 y1 y1 y2 x x2 x1 y 3
N1 x, y x2 y3 x3 y2 y2 y3 x x3 x2 y
N 2 x, y x3 y1 x1 y3 y3 y1 x x1 x3 y
N 3 x, y x1 y2 x2 y1 y1 y2 x x2 x1 y
2-D: Triangular Elements
• The field variable to take on a constant
value, as per the completeness requirement,
and that the first partial derivatives with
respect to the independent variables x and y
are constants. Local Coordinates
• The gradients of the field variable are
constant in both coordinate directions. For a
planar structural element, this results in
constant strain components.
• In structural applications, the three-node
triangular element is commonly known as a
constant strain triangle (CST).
2-D: Triangular Elements
Displacement field
• Derivatives wrt Cartesian coordinates
Six Node Triangular Elements
• Complete polynomial
• Shape function
must have zero values at 2, 3, 4, 5 and 6
nodes.
1 1 1 1
N1 c1L1 L1 1 c1 11 c1 2 N 4 c4 L1L2 1 c4 c4 4
2 2 2 2
N 4 4 L1L2
1
N1 2 L1 L1 N1 L1 2 L1 1
2
• Integration in area coordinates
L1=0 L2=0 L3=1
10-noded Triangular Element
L1=1/3 L2=1/3
L2=2/3
1 2 1 2 9 L1=2/3 L3=1/3
N1 c1L1 L1 L1 1 c1 11 1 c1 L1=1 L2=1
3 3 3 3 2
9 1 2
N1 L1 L1 L1 L3=0
2 3 3
Six Node Triangular Elements
• Integration
Rectangular Elements
• Polynomial for 4-node element as
incomplete, but symmetric to ensure
geometric isotropy
x, y a0 a1 x a2 y a3 xy
Rectangular Elements
• The interpolation functions in terms of the nodal η η
coordinates is algebraically complex. 2b
ξ ξ
• For the rectangular element, natural coordinates
2a
(normalized coordinates or serendipity
coordinates) in ξ and η will simplify the derivation
of shape functions. 1
xx yy x1 x2 y1 y2 N1 , 1 1
; x y 4
a b 2 2
1
1 N 2 , 1 1
N1 , c1 1 1 1 c1 1 11 1 c1 4
4
1
x, y , N1 , 1 N 2 , 2 N 3 , 3 N 4 , 4 N 3 , 1 1
4
1
N 4 , 1 1
4
Higher Order Rectangular Elements
η
• For eight node element, a complete polynomial (-1,0)
cannot be constructed, but two type of ξ
incomplete, symmetric cubic polynomials can be (0,-1)
constructed:
N 5 , c5 1 1 1
1
1 c5 1 0 1 0 1 1 c5
N1 , c1 1 1 1 2
1
1 N 5 , 1 1 1
1 c1 1 11 1 1 1 1 c1 2
4
N1 ,
1
1 1 1 N 5 ,
1
2
1 2 1
4
1
N 2 , 1 1 1 N 6 ,
1
2
1 1
2
4
1
N 3 , 1 1 1
4
N 7 ,
1
2
1 2 1
1
N 4 ,
4
1 1 1 N8 ,
1
2
1 1
2
Three Dimensional Elements
• Four-node Tetrahedral Element
Volume Coordinates:
V1 V V V
L1 ; L2 2 ; L3 3 ; L4 4
V V V V
• Volume coordinates are not independent, since
• V1 + V2 + V3 + V4 = V
• If point P corresponds to node 1, V1 = V, V2 = V3 = V4 = 0
• L1 = 1, L2 = L3 = L4 = 0 at node 1.
• P moves away from node 1, V1 decreases linearly, since the volume of
a tetrahedron is directly proportional to its height (the perpendicular
distance from P to the plane defined by nodes 2, 3, and 4) and the area
of its base (the triangle formed by nodes 2, 3, and 4). On any plane
parallel to the base triangle of nodes 2, 3, 4, the value of L1 is
constant.
• If P lies in the plane of nodes 2, 3, 4, the value of L1 is zero. Identical
observations apply to volume coordinates L2, L3, and L4. So the
volume coordinates satisfy all required nodal conditions for
interpolation functions.
Three Dimensional Elements
Three Dimensional Elements
• Eight-node brick elements
N1 c 1 1 1 1
1
1 c1 1 11 11 1 c1
8
1
N1 1 1 1
8
Lagrange and Serendipity Elements
• Lagrange interpolation polynomials can be used to derive shape functions in a very simple way. This
method is suitable to derive shape function for elements having higher order of nodes.
• The Lagrange interpolation function at node i is defined by
f
n
j ... ...
1 2 i 1 i 1 n
i
... ...
j 1
j i
i j i 1 i 2 i i 1 i i 1 i n
• The function fi(ξ) gives the Lagrange interpolation function for ith node, and ξj denotes ξ coordinate of
jth node in the element. Substituting ξ = ξj, and j ≠ i, the value of the function fi(ξ) will be equal to zero.
• Substituting ξ = ξi, the numerator will be equal to denominator and hence fi(ξ) produces a value of
unity.
• Since, Lagrange interpolation function for ith node includes product of all terms except jth term; for an
element with n nodes, fi(ξ) will have n-1 degrees of freedom.
• For one-dimensional elements with n-nodes, shape function can be defined as . Ni(ξ)=fi(ξ).
Shape function for two node bar element
• Consider the natural coordinate of the center of 0 P x x
the element as 0, and the natural coordinate of xi xj
x
the nodes 1 and 2 are -1 and +1, respectively.
The relation between natural and Cartesian
coordinates can be expressed as: 0 P
2 x x1 1
x 1
1
1 1
• Using Lagrange Polynomial, shape function for
2-node bar element can be written as:
N1 f1
2 1 1
1
1 2 1 1 2
N 2 f 2
1
1 1
1
2 1 1 (1) 2
Shape function for three node bar element
• Quadratic shape functions
N1 f1
2 3
1 1
1
1 2 1 3 1 1 1 2
N 2 f 2
1 3 1 1
1 2
2 1 2 3 1 1
N 3 f 3
1 2 1 1
1
3 1 3 2 2
2 1
Shape functions for 2-D elements using Lagrange Interpolation Function
The Lagrange interpolation function for a rectangular element can be obtained from
the product of appropriate interpolation functions in the ξ direction fi(ξ) and η
direction fi(η).
Thus
Generation of N1
Generation of N2
Generation of N3
Generation of N4
Serendipity Elements
Serendip, name for the island of Sri Lanka (Ceylon). It is best known to speakers of
English through the word “serendipity,” which was invented in the 18th century by
Horace Walpole. Walpole was inspired by a Persian fairy tale, “The Three Princes of
Serendip,” whose heroes often made discoveries by chance.
Corner nodes
At node 3, (,) = (1, 1) and N3 = 1, while at all other
nodes: N3 =0.
N1 = C L1 (L1-1/2)
N1 = 2 L1 (L1-1/2) = L1 (2L1-1)
In general Ni = Li (2 Li - 1)
Trial Function for N5 (Mid Node)
N5 = C L1L2
N5 =4 L1L2
u = a0 + a1 + a2 + a3+ a4 + a5 + a6 + a7
, , varies from -1 to +1
The above expression for shape function satisfies Kroneckar delta property
and continuity exists due to linear variation of the shape function.
Substituting
• Here, L1, L2, L3, L4 are the set of natural coordinates inside
the tetrahedron and are defined as follows
• Same shape functions are used for both the field variable and description of
element geometry, the method is known as isoparametric mapping.
• Elements defined by such a method is known as an isoparametric element.
• This method can be used to transform the natural coordinates of a point to the
Cartesian coordinate system and vice versa.
The main objective is to define suitable
elements, called parent or master elements,
and use the nodal coordinates of the actual
element as data for interpolation over the
master element.
The master line is two units long and is lying along the coordinate.
The x, y coordinates of the given straight line can be considered as two sets of data
points for the master line and following linear interpolation can be established.
Hence x() and y() represent the mapping of the straight line to
the master line.
The coefficients used to map the lines are nothing but the shape
functions of linear bar element used to interpolate displacement.
Case 1: Example 1
The mapping functions are obtained as
Case 2: Example 2
The mapping functions are obtained as
General requirement for location of the middle point for a
quadratic curve to get good mapping
Case 1: Example 1
The data points on a quadratic curve are (1, 1), (2,3.5), (4, 5)
In this case the master area is 2x2 square in (,) coordinate system.
Quadrilaterals with Straight Sides
Elements of Jacobian
Restrictions on mapping of areas
The derivative of the mapping function should be positive over the range of the master line.
Likewise, a similar criterion can be established for quadrilateral areas.
Since, the mapping function consists of two variables we use the chain rule for partial
differentiation as
In matrix form:
[J] s called the Jacobian matrix which establishes the relation between
(x,y) and (,)
Likewise, expressions can be developed for other terms in [J]
and can be written as:
The master element side that corresponds to a curve will have as many
equally spaced nodes as those needed to define the curve on the actual area.
For example, for a side represented by a quadratic curve, there will be three
nodes on the master element placed at - 1, 0, and 1.
Thus, if all sides of an element are quadratic curves, then there will be a
total of eight nodes.
All four sides are quadratic curves
The master area is an eight noded square.
Hence, the two-point formula will give exact integrals for polynomials
up to the third order, beyond which the results will be approximate.
Three point formula
Example 1: Evaluate the integral using one, two and three point formula
and compare with exact solution.
Exact:
Note: Two point formula itself gives exact values since the order of polynomial
2x2-1=3
Example 2: Evaluate the integral using one and two point formula and
compare with exact solution.
Example 4: Evaluate the integral using one, two point formula and
compare with exact solution
Exact:
Area or two-dimensional Integrals
The one-dimensional Gauss quadrature formule extend easily to two-
dimensional integrals, if the integration region is a 2 x 2 square with the
origin at the center.
Exact
Example 6: Evaluate the integral using one and two
point formula and compare with exact solution.
Similarly
One point rule: