Skip to main content

Chapter 5 · 10 hours

Interpolation Functions

Practice questions

Practice questions and answers

7 exam-style questions on this chapter, written for this site from the official syllabus. We haven’t found past IOE papers for this subject yet; if you have some, share them in the community.

  • Practice · 5 marks

State and explain the convergence requirements for the displacement (interpolation) function of a finite element. Explain how Pascal's triangle helps in choosing polynomial terms.

Answer

For the FE solution to converge to the exact one as the mesh is refined, the assumed displacement function must satisfy these conditions.

Requirements

  1. Completeness. The function must be able to represent rigid-body motion (constant terms) and constant strain states. For example, a bar needs u=a1+a2xu = a_1 + a_2x: a1a_1 is rigid-body translation and a2a_2 is constant strain. As elements shrink, the strain in each becomes nearly constant, so this is essential.
  2. Compatibility (conformity). Displacements must be continuous across element boundaries so that no gaps or overlaps develop. For second-order problems (bars, plane elasticity) this means C0C^0 continuity; for beams the slope must also be continuous (C1C^1).
  3. Rigid-body modes. An element should have zero strain energy under rigid-body movement.
  4. Geometric isotropy (invariance). The function should not prefer any direction, so the result should not change if the local axes are rotated. This needs complete polynomial terms of a given order.

Elements that satisfy all the conditions converge monotonically; those that satisfy only completeness may still converge (non-conforming elements pass the patch test).

Pascal's triangle

Order 0:           1
Order 1:         x   y
Order 2:       x2  xy  y2
Order 3:     x3  x2y xy2  y3
Order 4:   x4  x3y x2y2 xy3 y4
  • Terms are taken row by row so that the polynomial is complete up to a given degree and has geometric isotropy.
  • Number of terms must equal the number of nodal degrees of freedom: 3 terms (1, x, y) for the 3-node triangle; 4 terms (1, x, y, xy) for the 4-node rectangle, where xyxy is chosen symmetrically.
  • Terms must be selected symmetrically about the diagonal of the triangle to maintain isotropy.
  • Practice · 6 marks

Derive the shape functions for a two-node one-dimensional (linear) element of length LL. State their properties and use them to write the strain-displacement matrix.

Answer

Displacement function

Two nodal values u1u_1 (at x=0x = 0) and u2u_2 (at x=Lx = L) allow a linear polynomial:

u(x)=a1+a2xu(x) = a_1 + a_2x
   u1                u2
   o-----------------o
  x=0               x=L

Apply the nodal conditions:

u(0)=a1=u1,u(L)=a1+a2L=u2⇒a2=u2−u1Lu(0) = a_1 = u_1,\qquad u(L) = a_1 + a_2L = u_2 \Rightarrow a_2 = \frac{u_2 - u_1}{L}

Substitute back:

u=u1+u2−u1Lx=(1−xL)u1+xL u2u = u_1 + \frac{u_2 - u_1}{L}x = \left(1 - \frac{x}{L}\right)u_1 + \frac{x}{L}\,u_2

So u=N1u1+N2u2u = N_1u_1 + N_2u_2 with

N1=1−xL,N2=xLN_1 = 1 - \frac{x}{L},\qquad N_2 = \frac{x}{L}

Properties

  • Ni=1N_i = 1 at node ii and 00 at the other node (Kronecker delta property).
  • N1+N2=1N_1 + N_2 = 1 everywhere (partition of unity); this allows rigid-body motion.
  • Each NiN_i is linear, so the displacement is continuous between elements (C0C^0), but the strain is constant per element.
  • In natural coordinate ξ=2x/L−1\xi = 2x/L - 1: N1=1−ξ2N_1 = \dfrac{1 - \xi}{2} and N2=1+ξ2N_2 = \dfrac{1 + \xi}{2}.

Strain-displacement matrix

ε=dudx=dN1dxu1+dN2dxu2=1L[−1  1]{u1u2}\varepsilon = \frac{du}{dx} = \frac{dN_1}{dx}u_1 + \frac{dN_2}{dx}u_2 = \frac{1}{L}\left[-1\ \ 1\right]\begin{Bmatrix} u_1 \\ u_2 \end{Bmatrix} [B]=1L[−1  1][B] = \frac{1}{L}\left[-1\ \ 1\right]
  • Practice · 8 marks

A tapered steel bar of length 400 mm is fixed at its wide end, where the area is 600 mm2^2. The area decreases linearly to 200 mm2^2 at the free end. E=200E = 200 GPa. An axial load of 15 kN acts at the free end. Model the bar with two elements of equal length, each with area equal to the average of the areas at its ends. Find the nodal displacements and the stress in each element. Compare the tip displacement with the exact value.

Answer

Mesh and element areas

Area varies as A(x)=600−xA(x) = 600 - x (mm2^2, xx in mm from the fixed end).

ElementLength (mm)End areas (mm2^2)Average area (mm2^2)
1200600, 400500
2200400, 200300
 |#### 600 -> 400 -> 200
 |###################>---> 15 kN
 1        2          3

Element stiffness

k1=A1EL=500(200×103)200=5×105 N/mmk2=300(200×103)200=3×105 N/mm\begin{aligned} k_1 &= \frac{A_1E}{L} = \frac{500(200\times10^3)}{200} = 5\times10^5\ \text{N/mm} \\ k_2 &= \frac{300(200\times10^3)}{200} = 3\times10^5\ \text{N/mm} \end{aligned}

Global equations with u1=0u_1 = 0

[8×105−3×105−3×1053×105]{u2u3}={015 000}\begin{bmatrix} 8\times10^5 & -3\times10^5 \\ -3\times10^5 & 3\times10^5 \end{bmatrix}\begin{Bmatrix} u_2 \\ u_3 \end{Bmatrix} = \begin{Bmatrix} 0 \\ 15\,000 \end{Bmatrix}

Both elements carry the same force, 15 kN, so:

u2=15 0005×105=0.03 mm,u3=u2+15 0003×105=0.03+0.05=0.08 mmu_2 = \frac{15\,000}{5\times10^5} = 0.03\ \text{mm},\qquad u_3 = u_2 + \frac{15\,000}{3\times10^5} = 0.03 + 0.05 = 0.08\ \text{mm}

Stresses

σ1=15 000500=30 MPa,σ2=15 000300=50 MPa\sigma_1 = \frac{15\,000}{500} = 30\ \text{MPa},\qquad \sigma_2 = \frac{15\,000}{300} = 50\ \text{MPa}

Exact solution

utip=∫0400P dxE(600−x)=15 000200×103ln⁡600200=0.075(1.0986)=0.08240 mmu_{tip} = \int_0^{400}\frac{P\,dx}{E(600 - x)} = \frac{15\,000}{200\times10^3}\ln\frac{600}{200} = 0.075(1.0986) = 0.08240\ \text{mm}

The FE tip value is 0.0800 mm, which is 2.9 % below the exact value. The stress at the fixed end, 15 000/600=2515\,000/600 = 25 MPa, and at the tip, 7575 MPa, differ from the element values (30 and 50 MPa); the error reduces with more elements.

Answer: u2=0.030u_2 = 0.030 mm, u3=0.080u_3 = 0.080 mm; σ1=30\sigma_1 = 30 MPa, σ2=50\sigma_2 = 50 MPa; exact tip displacement 0.0824 mm.

  • Practice · 8 marks

Derive the shape functions of a three-node linear triangular (constant strain triangle) element in terms of nodal coordinates. State their properties and explain why the element is called a constant strain triangle.

Answer

Consider a triangle with nodes 1, 2, 3 at (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2), (x3,y3)(x_3, y_3) numbered anticlockwise. Each node has two displacements (ui,vi)(u_i, v_i), so the element has 6 degrees of freedom.

         3 (x3,y3)
        / \
       /   \
      /     \
     1-------2

Displacement field

Choose a complete linear polynomial (from Pascal's triangle):

u=α1+α2x+α3y,v=α4+α5x+α6yu = \alpha_1 + \alpha_2x + \alpha_3y,\qquad v = \alpha_4 + \alpha_5x + \alpha_6y

Apply the nodal conditions for uu:

{u1u2u3}=[1x1y11x2y21x3y3]{α1α2α3}\begin{Bmatrix} u_1 \\ u_2 \\ u_3 \end{Bmatrix} = \begin{bmatrix} 1 & x_1 & y_1 \\ 1 & x_2 & y_2 \\ 1 & x_3 & y_3 \end{bmatrix}\begin{Bmatrix} \alpha_1 \\ \alpha_2 \\ \alpha_3 \end{Bmatrix}

Solving by Cramer's rule, where the determinant of the matrix equals 2A2A (AA = area of triangle):

u=N1u1+N2u2+N3u3,Ni=12A(ai+bix+ciy)u = N_1u_1 + N_2u_2 + N_3u_3,\qquad N_i = \frac{1}{2A}\left(a_i + b_ix + c_iy\right)

with

a1=x2y3−x3y2,b1=y2−y3,c1=x3−x2a2=x3y1−x1y3,b2=y3−y1,c2=x1−x3a3=x1y2−x2y1,b3=y1−y2,c3=x2−x1\begin{aligned} a_1 &= x_2y_3 - x_3y_2, & b_1 &= y_2 - y_3, & c_1 &= x_3 - x_2 \\ a_2 &= x_3y_1 - x_1y_3, & b_2 &= y_3 - y_1, & c_2 &= x_1 - x_3 \\ a_3 &= x_1y_2 - x_2y_1, & b_3 &= y_1 - y_2, & c_3 &= x_2 - x_1 \end{aligned} 2A=x1(y2−y3)+x2(y3−y1)+x3(y1−y2)2A = x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)

The same NiN_i apply to vv, so

{uv}=[N10N20N300N10N20N3]{d}\begin{Bmatrix} u \\ v \end{Bmatrix} = \begin{bmatrix} N_1 & 0 & N_2 & 0 & N_3 & 0 \\ 0 & N_1 & 0 & N_2 & 0 & N_3 \end{bmatrix}\{d\}

Properties

  • Ni=1N_i = 1 at node ii and 00 at the other two nodes.
  • N1+N2+N3=1N_1 + N_2 + N_3 = 1 at every point (and ∑Nixi=x\sum N_ix_i = x, ∑Niyi=y\sum N_iy_i = y).
  • NiN_i varies linearly along each edge and depends only on the two nodes of that edge, so displacements are continuous between adjacent elements.
  • NiN_i equal the area coordinates Li=Ai/AL_i = A_i/A.

Why constant strain

The strains are

εx=∂u∂x=12A∑biui,εy=12A∑civi,γxy=12A∑(ciui+bivi)\varepsilon_x = \frac{\partial u}{\partial x} = \frac{1}{2A}\sum b_iu_i,\quad \varepsilon_y = \frac{1}{2A}\sum c_iv_i,\quad \gamma_{xy} = \frac{1}{2A}\sum (c_iu_i + b_iv_i)

bib_i and cic_i depend only on the nodal coordinates, not on xx or yy. So the strains (and stresses) are the same everywhere inside the element.

  • Practice · 6 marks

A three-node triangular element has nodes 1 (10, 10), 2 (60, 20) and 3 (30, 50), coordinates in mm. (a) Find its area. (b) Find the shape functions at the point P (30, 25) and check that they sum to 1. (c) If the nodal temperatures are 100 °C, 60 °C and 80 °C, find the temperature at P.

Answer

(a) Area

2A=x1(y2−y3)+x2(y3−y1)+x3(y1−y2)=10(20−50)+60(50−10)+30(10−20)2A = x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) = 10(20 - 50) + 60(50 - 10) + 30(10 - 20) 2A=−300+2400−300=1800⇒A=900 mm22A = -300 + 2400 - 300 = 1800 \Rightarrow A = 900\ \text{mm}^2

The positive value shows the nodes are numbered anticlockwise.

(b) Shape functions

Constants:

iiaia_ibib_icic_i
1x2y3−x3y2=3000−600=2400x_2y_3 - x_3y_2 = 3000 - 600 = 2400y2−y3=−30y_2 - y_3 = -30x3−x2=−30x_3 - x_2 = -30
2x3y1−x1y3=300−500=−200x_3y_1 - x_1y_3 = 300 - 500 = -200y3−y1=40y_3 - y_1 = 40x1−x3=−20x_1 - x_3 = -20
3x1y2−x2y1=200−600=−400x_1y_2 - x_2y_1 = 200 - 600 = -400y1−y2=−10y_1 - y_2 = -10x2−x1=50x_2 - x_1 = 50

At P (30, 25), Ni=ai+bi(30)+ci(25)1800N_i = \dfrac{a_i + b_i(30) + c_i(25)}{1800}:

N1=2400−900−7501800=7501800=0.4167N2=−200+1200−5001800=5001800=0.2778N3=−400−300+12501800=5501800=0.3056\begin{aligned} N_1 &= \frac{2400 - 900 - 750}{1800} = \frac{750}{1800} = 0.4167 \\ N_2 &= \frac{-200 + 1200 - 500}{1800} = \frac{500}{1800} = 0.2778 \\ N_3 &= \frac{-400 - 300 + 1250}{1800} = \frac{550}{1800} = 0.3056 \end{aligned}

Sum =0.4167+0.2778+0.3056=1.0000= 0.4167 + 0.2778 + 0.3056 = 1.0000, as required.

Check on location: x=∑Nixi=0.4167(10)+0.2778(60)+0.3056(30)=30.0x = \sum N_ix_i = 0.4167(10) + 0.2778(60) + 0.3056(30) = 30.0 and y=0.4167(10)+0.2778(20)+0.3056(50)=25.0y = 0.4167(10) + 0.2778(20) + 0.3056(50) = 25.0.

(c) Temperature at P

TP=0.4167(100)+0.2778(60)+0.3056(80)=41.67+16.67+24.44=82.78 ∘CT_P = 0.4167(100) + 0.2778(60) + 0.3056(80) = 41.67 + 16.67 + 24.44 = 82.78\ ^\circ\text{C}

Answer: A=900 mm2A = 900\ \text{mm}^2; N=(0.417, 0.278, 0.306)N = (0.417,\ 0.278,\ 0.306); TP=82.8 ∘T_P = 82.8\ ^\circC.

  • Practice · 6 marks

Derive the shape functions of a four-node rectangular element of sides aa (along x) and bb (along y) with nodes 1 (0, 0), 2 (aa, 0), 3 (aa, bb) and 4 (0, bb). Verify two properties and comment on the strain variation.

Answer

   4 (0,b)  o-----------o  3 (a,b)
            |           |
            |           |  b
            |           |
   1 (0,0)  o-----------o  2 (a,0)
                  a

Displacement function

Four nodes per scalar field need four terms. Taking terms symmetrically from Pascal's triangle gives the bilinear polynomial

u(x,y)=α1+α2x+α3y+α4xyu(x, y) = \alpha_1 + \alpha_2x + \alpha_3y + \alpha_4xy

(The xyxy term is chosen; x2x^2 or y2y^2 would make the function unsymmetrical.)

Apply the four nodal conditions u(0,0)=u1u(0,0) = u_1, u(a,0)=u2u(a,0) = u_2, u(a,b)=u3u(a,b) = u_3, u(0,b)=u4u(0,b) = u_4:

α1=u1α2=u2−u1aα3=u4−u1bα4=u1−u2+u3−u4ab\begin{aligned} \alpha_1 &= u_1 \\ \alpha_2 &= \frac{u_2 - u_1}{a} \\ \alpha_3 &= \frac{u_4 - u_1}{b} \\ \alpha_4 &= \frac{u_1 - u_2 + u_3 - u_4}{ab} \end{aligned}

Substituting and collecting the coefficients of uiu_i gives u=∑Niuiu = \sum N_iu_i with

N1=(1−xa)(1−yb),N2=xa(1−yb)N3=xyab,N4=(1−xa)yb\begin{aligned} N_1 &= \left(1 - \frac{x}{a}\right)\left(1 - \frac{y}{b}\right), & N_2 &= \frac{x}{a}\left(1 - \frac{y}{b}\right) \\ N_3 &= \frac{xy}{ab}, & N_4 &= \left(1 - \frac{x}{a}\right)\frac{y}{b} \end{aligned}

The same functions interpolate vv.

Properties verified

  • At node 3 (x=ax = a, y=by = b): N3=1N_3 = 1, N1=N2=N4=0N_1 = N_2 = N_4 = 0. Similarly for other nodes.
  • Sum: N1+N2+N3+N4=(1−xa)(1−yb)+xa(1−yb)+xyab+(1−xa)yb=1N_1 + N_2 + N_3 + N_4 = \left(1 - \frac{x}{a}\right)\left(1 - \frac{y}{b}\right) + \frac{x}{a}\left(1 - \frac{y}{b}\right) + \frac{xy}{ab} + \left(1 - \frac{x}{a}\right)\frac{y}{b} = 1.
  • Along an edge, e.g. y=0y = 0, only N1N_1 and N2N_2 are non-zero and linear in xx, so the displacement is continuous between neighbouring elements.

Strain variation

εx=∂u∂x=α2+α4y,εy=∂v∂y=β3+β4x\varepsilon_x = \frac{\partial u}{\partial x} = \alpha_2 + \alpha_4y,\qquad \varepsilon_y = \frac{\partial v}{\partial y} = \beta_3 + \beta_4x

εx\varepsilon_x varies linearly with yy and εy\varepsilon_y varies linearly with xx, so the element is better than CST at representing bending. A drawback is that it can only be used for rectangles with sides parallel to the axes; the quadrilateral element (isoparametric) removes this limit.

  • Practice · 8 marks

Using the variational approach, derive the element equations for steady one-dimensional heat conduction in a rod of length LL, cross-section AA, conductivity kk, with internal heat generation QQ per unit volume. Use a linear two-node element.

Answer

Governing equation and functional

Steady 1D conduction with heat generation:

kAd2Tdx2+QA=0kA\frac{d^2T}{dx^2} + QA = 0

The equivalent functional (analogous to the total potential energy) is

Π=∫0L[kA2(dTdx)2−QA T]dx\Pi = \int_0^L \left[\frac{kA}{2}\left(\frac{dT}{dx}\right)^2 - QA\,T\right]dx

The solution of the differential equation makes Π\Pi stationary (this can be shown by taking δΠ=0\delta\Pi = 0 and integrating by parts, which gives back the governing equation).

Element approximation

For a linear element with nodal temperatures T1T_1, T2T_2:

T=N1T1+N2T2,N1=1−xL,N2=xLT = N_1T_1 + N_2T_2,\quad N_1 = 1 - \frac{x}{L},\quad N_2 = \frac{x}{L} dTdx=1L[−1  1]{T1T2}=[B]{T}\frac{dT}{dx} = \frac{1}{L}[-1\ \ 1]\begin{Bmatrix} T_1 \\ T_2 \end{Bmatrix} = [B]\{T\}

Minimising the functional

Substitute into Π\Pi:

Π=12{T}T[∫0LkA [B]T[B] dx]{T}−{T}T∫0LQA [N]Tdx\Pi = \frac{1}{2}\{T\}^T\left[\int_0^L kA\,[B]^T[B]\,dx\right]\{T\} - \{T\}^T\int_0^L QA\,[N]^T dx

Setting ∂Π∂Ti=0\dfrac{\partial\Pi}{\partial T_i} = 0 gives [k]{T}={f}[k]\{T\} = \{f\}, where

[k]=∫0LkA [B]T[B] dx=kAL[1−1−11][k] = \int_0^L kA\,[B]^T[B]\,dx = \frac{kA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} {f}=∫0LQA{N1N2}dx=QAL2{11}\{f\} = \int_0^L QA\begin{Bmatrix} N_1 \\ N_2 \end{Bmatrix}dx = \frac{QAL}{2}\begin{Bmatrix} 1 \\ 1 \end{Bmatrix}

Element equation

kAL[1−1−11]{T1T2}=QAL2{11}+{q1q2}\frac{kA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix}\begin{Bmatrix} T_1 \\ T_2 \end{Bmatrix} = \frac{QAL}{2}\begin{Bmatrix} 1 \\ 1 \end{Bmatrix} + \begin{Bmatrix} q_1 \\ q_2 \end{Bmatrix}

where q1q_1, q2q_2 are nodal heat flows at the ends (natural boundary conditions). The generated heat is shared equally between the two nodes. Convection at an end with coefficient hh and ambient temperature T∞T_\infty adds hAhA to the stiffness term at that node and hAT∞hAT_\infty to the load.

The assembly, boundary conditions (TT specified at a node) and solution follow the same steps as for the bar problem.

Written from the official syllabus. Questions and answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗