Skip to main content

Chapter 4 · 8 hours

Continuum Problems

Practice questions

Practice questions and answers

6 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

Write short notes on the Rayleigh-Ritz method. Explain its steps and state its limitations.

Answer

The Rayleigh-Ritz method is a variational method. Instead of solving the differential equation, it finds an approximate solution that makes a functional (the total potential energy Π\Pi) stationary. For a stable elastic system, the stationary point is a minimum.

Steps

  1. Write the functional. For elastic bodies, Π=U−W\Pi = U - W (strain energy minus work of external loads). For a bar, Π=12∫0LAE(dudx)2dx−∫0Lfu dx−Pu(L)\Pi = \dfrac{1}{2}\displaystyle\int_0^L AE\left(\dfrac{du}{dx}\right)^2dx - \int_0^L f u\,dx - Pu(L).
  2. Choose a trial function with unknown coefficients:
u(x)≈∑i=1nai ϕi(x)u(x) \approx \sum_{i=1}^{n} a_i\,\phi_i(x)

The functions ϕi\phi_i must be continuous, independent and must satisfy the essential (geometric) boundary conditions. 3. Substitute into Π\Pi so that it becomes a function of a1,a2,…,ana_1, a_2, \dots, a_n. 4. Make Π\Pi stationary: ∂Π∂ai=0\dfrac{\partial \Pi}{\partial a_i} = 0 for i=1,…,ni = 1, \dots, n. This gives nn algebraic equations [K]{a}={F}[K]\{a\} = \{F\}. 5. Solve for aia_i and compute displacement, strain and stress.

Remarks

  • Natural boundary conditions need not be satisfied by the trial function; they come out of the minimisation.
  • More terms give a better answer. The computed stiffness is never less than the true stiffness (the displacement is underestimated), so the method gives a bound.
  • If the trial function includes the exact solution, the result is exact.

Limitations

  • Choosing one trial function for the whole domain is hard for complex shapes.
  • It needs a functional, which exists only for self-adjoint problems.
  • FEM removes this difficulty by applying the Ritz idea element by element with simple local trial functions.
  • Practice · 8 marks

A simply supported beam of span L=4L = 4 m and flexural rigidity EI=1.6×106 N m2EI = 1.6\times10^6\ \text{N m}^2 carries a uniformly distributed load q=10q = 10 kN/m. Using the Rayleigh-Ritz method with the trial function w(x)=asin⁡πxLw(x) = a\sin\dfrac{\pi x}{L}, find the coefficient aa, the mid-span deflection and the mid-span bending moment. Compare with the exact values.

Answer

Choice of trial function

w=asin⁡(πx/L)w = a\sin(\pi x/L) gives w(0)=w(L)=0w(0) = w(L) = 0, which satisfies the essential boundary conditions of a simply supported beam.

Potential energy

Π=EI2∫0L(d2wdx2)2dx−q∫0Lw dx\Pi = \frac{EI}{2}\int_0^L \left(\frac{d^2w}{dx^2}\right)^2dx - q\int_0^L w\,dx

With w′′=−a(πL)2sin⁡πxLw'' = -a\left(\dfrac{\pi}{L}\right)^2\sin\dfrac{\pi x}{L}, ∫0Lsin⁡2πxL dx=L2\displaystyle\int_0^L\sin^2\dfrac{\pi x}{L}\,dx = \dfrac{L}{2} and ∫0Lsin⁡πxL dx=2Lπ\displaystyle\int_0^L\sin\dfrac{\pi x}{L}\,dx = \dfrac{2L}{\pi}:

Π=EI2 a2(πL)4L2−qa 2Lπ\Pi = \frac{EI}{2}\,a^2\left(\frac{\pi}{L}\right)^4\frac{L}{2} - qa\,\frac{2L}{\pi}

Stationary condition

dΠda=EI a(πL)4L2−2qLπ=0⇒a=4qL4π5EI\frac{d\Pi}{da} = EI\,a\left(\frac{\pi}{L}\right)^4\frac{L}{2} - \frac{2qL}{\pi} = 0 \Rightarrow a = \frac{4qL^4}{\pi^5EI}

Substituting values:

a=4(10 000)(4)4π5(1.6×106)=1.024×107306.02×1.6×106=0.02091 ma = \frac{4(10\,000)(4)^4}{\pi^5(1.6\times10^6)} = \frac{1.024\times10^7}{306.02\times1.6\times10^6} = 0.02091\ \text{m}

Mid-span values

  • Deflection: w(L/2)=a=20.91w(L/2) = a = 20.91 mm.
  • Bending moment: M=EI w′′M = EI\,w'' in magnitude at x=L/2x = L/2: M=EI a(πL)2=1.6×106(0.02091)(0.6169)=20 641M = EI\,a\left(\dfrac{\pi}{L}\right)^2 = 1.6\times10^6(0.02091)(0.6169) = 20\,641 N m.

Comparison

QuantityRitzExactError
Mid-span deflection 5qL4384EI\dfrac{5qL^4}{384EI}20.91 mm20.83 mm0.4 %
Mid-span moment qL28\dfrac{qL^2}{8}20.64 kN m20.00 kN m3.2 %

Deflection (the primary variable) is accurate; the moment (a second derivative) is less accurate because differentiation reduces accuracy.

Answer: a=20.9a = 20.9 mm; wmax=20.9w_{max} = 20.9 mm; Mmax=20.6M_{max} = 20.6 kN m.

  • Practice · 8 marks

Solve the boundary value problem
d2udx2+u+x=0,0≤x≤1,u(0)=u(1)=0\frac{d^2u}{dx^2} + u + x = 0,\qquad 0 \le x \le 1,\quad u(0) = u(1) = 0 using the trial function u=a x(1−x)u = a\,x(1-x) by (a) the Galerkin method and (b) the point collocation method at x=0.5x = 0.5. Compare u(0.5)u(0.5) with the exact solution u=sin⁡xsin⁡1−xu = \dfrac{\sin x}{\sin 1} - x.

Answer

Residual

With u=a x(1−x)u = a\,x(1-x): u′′=−2au'' = -2a. The trial function satisfies u(0)=u(1)=0u(0) = u(1) = 0.

R(x)=u′′+u+x=−2a+a x(1−x)+xR(x) = u'' + u + x = -2a + a\,x(1-x) + x

(a) Galerkin method

The weight function equals the trial function shape, W=x(1−x)W = x(1-x), and ∫01WR dx=0\int_0^1 W R\,dx = 0.

Needed integrals: ∫01x(1−x)dx=16\int_0^1 x(1-x)dx = \dfrac{1}{6}, ∫01x2(1−x)2dx=130\int_0^1 x^2(1-x)^2dx = \dfrac{1}{30}, ∫01x2(1−x)dx=112\int_0^1 x^2(1-x)dx = \dfrac{1}{12}.

∫01x(1−x) R dx=−2a(16)+a(130)+112=−3a10+112=0\begin{aligned} \int_0^1 x(1-x)\,R\,dx &= -2a\left(\frac{1}{6}\right) + a\left(\frac{1}{30}\right) + \frac{1}{12} \\ &= -\frac{3a}{10} + \frac{1}{12} = 0 \end{aligned} a=1036=518=0.2778a = \frac{10}{36} = \frac{5}{18} = 0.2778

u(0.5)=0.2778(0.5)(0.5)=0.06944u(0.5) = 0.2778(0.5)(0.5) = 0.06944.

(b) Point collocation at x=0.5x = 0.5

R(0.5)=−2a+a(0.25)+0.5=−1.75a+0.5=0⇒a=27=0.2857R(0.5) = -2a + a(0.25) + 0.5 = -1.75a + 0.5 = 0 \Rightarrow a = \frac{2}{7} = 0.2857

u(0.5)=0.2857(0.25)=0.07143u(0.5) = 0.2857(0.25) = 0.07143.

Comparison

Exact: u(0.5)=sin⁡0.5sin⁡1−0.5=0.479430.84147−0.5=0.06975u(0.5) = \dfrac{\sin 0.5}{\sin 1} - 0.5 = \dfrac{0.47943}{0.84147} - 0.5 = 0.06975.

Methodaau(0.5)u(0.5)Error
Galerkin0.27780.06944-0.4 %
Collocation0.28570.07143+2.4 %
Exact-0.06975-

Galerkin averages the residual over the whole domain, so it is more accurate than collocation, which forces zero residual only at one point.

Answer: Galerkin u=0.2778 x(1−x)u = 0.2778\,x(1-x), u(0.5)=0.0694u(0.5) = 0.0694; collocation u=0.2857 x(1−x)u = 0.2857\,x(1-x), u(0.5)=0.0714u(0.5) = 0.0714; exact 0.06980.0698.

  • Practice · 6 marks

Explain the method of weighted residuals. Differentiate between point collocation, subdomain, least squares and Galerkin methods.

Answer

Method of weighted residuals (MWR)

For a differential equation D(u)+f=0\mathcal{D}(u) + f = 0 on a domain Ω\Omega, an approximate solution u~=∑aiϕi(x)\tilde{u} = \sum a_i\phi_i(x) does not satisfy the equation exactly, leaving a residual

R(x,ai)=D(u~)+f≠0R(x, a_i) = \mathcal{D}(\tilde{u}) + f \neq 0

The MWR makes the residual small by forcing a weighted integral to be zero:

∫ΩWi(x) R(x,ai) dΩ=0,i=1,…,n\int_\Omega W_i(x)\,R(x, a_i)\,d\Omega = 0,\qquad i = 1, \dots, n

This gives nn equations for the nn unknowns aia_i. The choice of the weight function WiW_i defines the method.

Comparison

MethodWeight function WiW_iCondition imposed
Point collocationDirac delta, δ(x−xi)\delta(x - x_i)R=0R = 0 at nn chosen points
Subdomain11 in subdomain ii, 00 elsewhere∫ΩiR dΩ=0\int_{\Omega_i} R\,d\Omega = 0 over each subregion
Least squares∂R/∂ai\partial R/\partial a_iMinimises ∫R2dΩ\int R^2d\Omega
Galerkinϕi\phi_i (same as trial function)∫ϕiR dΩ=0\int \phi_i R\,d\Omega = 0

Remarks

  • Collocation is simplest but depends on the choice of points.
  • Least squares always gives a symmetric matrix but needs higher-order derivatives, so the algebra is heavy.
  • Galerkin gives a symmetric matrix for self-adjoint problems and equals the Ritz method when a functional exists. It is the basis of most finite element formulations.
  • All the methods become exact if the residual is zero everywhere.
  • Practice · 8 marks

For an axially loaded bar of length LL with variable A(x)A(x), modulus EE and body force f(x)f(x) per unit length, fixed at x=0x = 0 and loaded by an axial force PP at x=Lx = L: (a) state the strong form, (b) derive the weak form, (c) state why the weak form is preferred in FEM.

Answer

(a) Strong form

Find u(x)u(x) such that

ddx(AEdudx)+f=0,0<x<L\frac{d}{dx}\left(AE\frac{du}{dx}\right) + f = 0,\quad 0 < x < L

with u(0)=0u(0) = 0 (essential BC) and AEdudx∣x=L=PAE\dfrac{du}{dx}\Big|_{x=L} = P (natural BC).

It needs uu to be twice differentiable, and it must hold at every point.

(b) Weak form (Galerkin)

Multiply the equation by an arbitrary weight (test) function w(x)w(x) with w(0)=0w(0) = 0, and integrate over the length:

∫0Lw[ddx(AEdudx)+f]dx=0\int_0^L w\left[\frac{d}{dx}\left(AE\frac{du}{dx}\right) + f\right]dx = 0

Integrate the first term by parts:

∫0Lw ddx(AEdudx)dx=[w AEdudx]0L−∫0LdwdxAEdudx dx\int_0^L w\,\frac{d}{dx}\left(AE\frac{du}{dx}\right)dx = \left[w\,AE\frac{du}{dx}\right]_0^L - \int_0^L \frac{dw}{dx}AE\frac{du}{dx}\,dx

At x=0x = 0, w=0w = 0. At x=Lx = L, AE u′=PAE\,u' = P. So the boundary term is w(L)Pw(L)P. The weak form is:

∫0Ldwdx AE dudx dx=∫0Lwf dx+w(L) P\int_0^L \frac{dw}{dx}\,AE\,\frac{du}{dx}\,dx = \int_0^L w f\,dx + w(L)\,P

for all admissible ww.

Note the natural BC entered through the boundary term, and the essential BC is imposed on uu and ww.

(c) Why weak form is preferred

  • Only first derivatives appear, so the trial and test functions need to be only C0C^0 continuous; simple linear shape functions can be used.
  • Natural boundary conditions are included automatically.
  • It leads to a symmetric stiffness matrix, Kij=∫AE ϕi′ϕj′ dxK_{ij} = \int AE\,\phi_i'\phi_j'\,dx.
  • It is the physical statement of the principle of virtual work, and it works when AA, EE or the load are discontinuous.
  • Practice · 6 marks

A uniform bar of length 2 m, area 300 mm2^2 and E=70E = 70 GPa is fixed at x=0x = 0. It carries a uniformly distributed axial load of 6 kN/m along its length and a point axial load of 12 kN at the free end. Using the Rayleigh-Ritz method with u=a1x+a2x2u = a_1x + a_2x^2, find the coefficients and the end displacement. Is the result exact?

Answer

Data (units: N, mm)

AE=300×70×103=2.1×107AE = 300 \times 70\times10^3 = 2.1\times10^7 N, L=2000L = 2000 mm, q=6q = 6 N/mm, P=12 000P = 12\,000 N.

The trial function satisfies u(0)=0u(0) = 0.

Potential energy

Π=AE2∫0L(dudx)2dx−q∫0Lu dx−P u(L)\Pi = \frac{AE}{2}\int_0^L\left(\frac{du}{dx}\right)^2dx - q\int_0^L u\,dx - P\,u(L)

With u′=a1+2a2xu' = a_1 + 2a_2x:

∫0Lu′2dx=a12L+2a1a2L2+43a22L3∫0Lu dx=12a1L2+13a2L3u(L)=a1L+a2L2\begin{aligned} \int_0^L u'^2dx &= a_1^2L + 2a_1a_2L^2 + \tfrac{4}{3}a_2^2L^3 \\ \int_0^L u\,dx &= \tfrac{1}{2}a_1L^2 + \tfrac{1}{3}a_2L^3 \\ u(L) &= a_1L + a_2L^2 \end{aligned}

Stationary conditions

∂Π∂a1=AE (a1L+a2L2)−12qL2−PL=0∂Π∂a2=AE (a1L2+43a2L3)−13qL3−PL2=0\begin{aligned} \frac{\partial\Pi}{\partial a_1} &= AE\,(a_1L + a_2L^2) - \tfrac{1}{2}qL^2 - PL = 0 \\ \frac{\partial\Pi}{\partial a_2} &= AE\,(a_1L^2 + \tfrac{4}{3}a_2L^3) - \tfrac{1}{3}qL^3 - PL^2 = 0 \end{aligned}

Divide the first by LL and the second by L2L^2:

AE (a1+a2L)=12qL+P=6000+12 000=18 000AE (a1+43a2L)=13qL+P=4000+12 000=16 000\begin{aligned} AE\,(a_1 + a_2L) &= \tfrac{1}{2}qL + P = 6000 + 12\,000 = 18\,000 \\ AE\,(a_1 + \tfrac{4}{3}a_2L) &= \tfrac{1}{3}qL + P = 4000 + 12\,000 = 16\,000 \end{aligned}

Subtract: AE 13a2L=−2000AE\,\tfrac{1}{3}a_2L = -2000, so a2=−6000AE L=−60004.2×1010=−1.4286×10−7 mm−1a_2 = \dfrac{-6000}{AE\,L} = \dfrac{-6000}{4.2\times10^{10}} = -1.4286\times10^{-7}\ \text{mm}^{-1}.

Then a1=18 000AE−a2L=8.5714×10−4+2.8571×10−4=1.1429×10−3a_1 = \dfrac{18\,000}{AE} - a_2L = 8.5714\times10^{-4} + 2.8571\times10^{-4} = 1.1429\times10^{-3}.

End displacement

u(L)=a1L+a2L2=2.2857−0.5714=1.714 mmu(L) = a_1L + a_2L^2 = 2.2857 - 0.5714 = 1.714\ \text{mm}

Exactness

The exact solution of AE u′′+q=0AE\,u'' + q = 0 with u(0)=0u(0) = 0 and AE u′(L)=PAE\,u'(L) = P is

u=(P+qL)AEx−q2AEx2u = \frac{(P + qL)}{AE}x - \frac{q}{2AE}x^2

which is a quadratic. Our coefficients match it (24 0002.1×107=1.1429×10−3\frac{24\,000}{2.1\times10^7} = 1.1429\times10^{-3} and 64.2×107=1.4286×10−7\frac{6}{4.2\times10^7} = 1.4286\times10^{-7}). So the result is exact because the trial function contains the exact solution.

Answer: a1=1.143×10−3a_1 = 1.143\times10^{-3}, a2=−1.429×10−7 mm−1a_2 = -1.429\times10^{-7}\ \text{mm}^{-1}; end displacement =1.714= 1.714 mm; yes, exact.

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 ↗