✦ VidyaVerseOpen interactive version

← Programming Concepts in Mechanical Engineering (25ME34I)

Finite Element Method: Bar Element and Stress Distribution

Programming Concepts in Mechanical Engineering (25ME34I) · C-25 Diploma Mechanical, Semester III

Read with diagrams, search and self-test

LEARNING OBJECTIVES

After studying this chapter you will be able to:

• Explain the concept of the Finite Element Method (FEM) and its general steps.

• List engineering applications and advantages of FEM.

• Derive the stiffness matrix of a bar element and assemble the global stiffness matrix.

• State the properties of the stiffness matrix.

• Solve bar problems in Python with NumPy and plot the stress distribution in a plate with and without a hole.

13.1 Introduction to the Finite Element Method

Many engineering components – brackets, connecting rods, crankshafts, pressure vessels, turbine blades – have complex shapes and loads for which exact formulas (like σ = P/A) do not exist. The Finite Element Method (FEM) is a numerical technique that gives approximate but very accurate solutions to such problems.

Basic idea: a complex body (continuum) with infinitely many points is divided into a finite number of small, simple pieces called elements, connected at points called nodes. The behaviour of each element is described by simple equations; these are assembled into a system of algebraic equations for the whole body and solved by computer for the unknown nodal values (displacements, temperatures). Stresses and strains are then calculated from the displacements.

The process of dividing the body is called discretisation and the collection of elements is the mesh. A finer mesh (more, smaller elements) gives more accurate results but needs more computation.

Types of elements

Dimens ionElementsExamples
1-DBar (truss/spring), beamBars, trusses, shafts, frames
2-DTriangle (CST), quadrilateralPlates, sheets, plane stress problems
3-DTetrahedron, hexahedron (brick)Solid castings, engine blocks

Commercial FEM software: ANSYS, Abaqus, NASTRAN, COMSOL, Altair HyperWorks, SolidWorks Simulation, Fusion 360 Simulation; open source: FreeCAD FEM, CalculiX, Code_Aster. Many of them use Python for scripting.

13.2 General Steps of the Finite Element Method

Fig. 13.1 General steps of FEM

1. Discretisation: divide the body into elements; number the nodes and elements; choose element type.

2. Select the displacement (interpolation) function: assume how displacement varies within an element, e.g. linear u(x) = a₁ + a₂x for a bar, written in terms of nodal displacements through shape functions N₁ = 1 − x/L and N₂ = x/L.

3. Define strain–displacement and stress–strain relations: ε = du/dx, σ = Eε (Hooke's law).

4. Derive the element stiffness matrix [k] and element equations {f} = [k] {u} (by direct method, potential energy or Galerkin method).

5. Assemble element equations into the global stiffness matrix [K] and global force vector {F}: {F} = [K]{U}.

6. Apply boundary conditions (fixed supports, known displacements) and loads.

7. Solve the system of equations for the unknown nodal displacements {U}.

8. Post-processing: compute element strains, stresses and support reactions; plot results (contours, graphs).

Steps 1–6 are pre-processing, step 7 is the solution and step 8 is post-processing.

13.3 Engineering Applications of FEM

FieldApplications
Structural / machine designStress and deflection of brackets, frames, gears, shafts, crankshafts, chassis
AutomobileCrash analysis, body-in-white stiffness, engine block, suspension parts
AerospaceWing and fuselage stress, turbine blades, vibration (modal) analysis
ThermalHeat conduction in fins, engine cylinders, heat exchangers, welding
Fluid flowFlow through pipes, around bodies (CFD with finite volume/element)
ManufacturingMetal forming, casting solidification, machining, welding residual stress
CivilBuildings, bridges, dams, soil mechanics
BiomedicalBone implants, artificial joints, stents
ElectricalElectromagnetic fields in motors and transformers

13.4 Advantages and Limitations of FEM

Advantages

• Handles complex geometry, loads, boundary conditions and material properties.

• Can model different materials in one body (composites, bi-metals).

• Reduces the number of physical prototypes and tests; shortens design time and cost.

• Shows stress concentration, deflection and temperature everywhere in the part through contour plots.

• Handles static, dynamic (vibration), thermal, non-linear and coupled problems.

• Design changes are easy – modify the model and re-run.

• Accuracy can be improved by refining the mesh.

Limitations

• Gives approximate results; accuracy depends on mesh, element type and modelling skill.

• Needs a computer, software and trained users; large models need high computing power.

• Wrong input (material, boundary conditions) gives wrong but convincing-looking results ("garbage in, garbage out") – results must be verified by hand calculations or tests.

13.5 Stiffness Matrix of a Bar Element

A bar (truss/spring) element is a straight member that carries only axial load (tension or compression). It has two nodes, each with one degree of freedom (axial displacement u).

Fig. 13.2 Two-noded bar element

Derivation (direct method). A bar of area A, length L and Young's modulus E behaves like a spring of stiffness k = AE/L, since from Hooke's law δ = PL/(AE).

Let nodal displacements be u₁, u₂ and nodal forces f₁, f₂. The extension is (u₂ − u₁), so the internal force is k(u₂ − u₁). Equilibrium of each node gives:

• f₁=k(u₁−u₂)=ku₁−ku₂

• f₂=k(u₂−u₁)=−ku₁+ku₂

In matrix form:

{ f1 }    AE  [  1   -1 ] { u1 }
{    } =  --  [         ] {    }        {f} = [k] {u}
{ f2 }    L   [ -1    1 ] { u2 }

[k] = (AE/L) [[1, −1], [−1, 1]] is the element stiffness matrix.

Element strain and stress: ε = (u₂ − u₁)/L, σ = Eε = E(u₂ − u₁)/L.

Global stiffness matrix (assembly)

For a structure with several elements, each element matrix is placed into the global stiffness matrix [K] at the rows and columns of its node numbers; overlapping terms are added. For a structure with N nodes (1 d.o.f. each), [K] is N × N.

For two elements in series (nodes 1–2–3) with stiffnesses k₁ and k₂:

        [  k1     -k1      0  ]
[K]  =  [ -k1   k1+k2    -k2  ]
        [   0    -k2      k2  ]

Properties of the stiffness matrix

1. It is square, of size equal to the number of degrees of freedom.

2. It is symmetric (Kᵢⱼ = Kⱼᵢ) – Maxwell's reciprocal theorem.

3. Before applying boundary conditions it is singular (determinant = 0), because the structure can move as a rigid body; boundary conditions remove this.

4. Diagonal elements are always positive.

5. The sum of each row (and column) is zero for an unconstrained element/structure.

6. It is banded (non-zero terms lie near the diagonal) when nodes are numbered sensibly – this saves computer memory.

7. It is positive definite after the boundary conditions are applied.

Applying boundary conditions (elimination method)

If node 1 is fixed (u₁ = 0), the first row and column of [K] are deleted; the remaining (reduced) equations are solved for the unknown displacements. The reaction at the support is then found from the deleted row: R₁ = K₁₁u₁ + K₁₂u₂ + ... − F₁.

Worked Example 13.1 – stepped bar

Fig. 13.3 Stepped bar with two elements

A steel stepped bar (E = 200 GPa = 2 × 10⁵ N/mm²) is fixed at the left end. Element 1: A₁ = 600 mm², L₁ = 300 mm; element 2: A₂ = 300 mm², L₂ = 200 mm. An axial load P = 30 kN acts at the free end (node 3). Find nodal displacements, element stresses and the support reaction.

Element stiffnesses:

• k₁ = A₁E/L₁ = 600 × 2 × 10⁵ / 300 = 4 × 10⁵ N/mm

• k₂ = A₂E/L₂ = 300 × 2 × 10⁵ / 200 = 3 × 10⁵ N/mm

Global equations (×10⁵):

[  4   -4    0 ] { u1 }   { R1    }
[ -4    7   -3 ] { u2 } = { 0     }
[  0   -3    3 ] { u3 }   { 30000 }

Boundary condition u₁ = 0 → reduced equations: 7u₂ − 3u₃ = 0 and −3u₂ + 3u₃ = 0.3 (in units of 10⁵). Adding: 4u₂ = 0.3 → u₂ = 0.075 mm; u₃ = u₂ + 0.1 = 0.175 mm.

Stresses: σ₁ = E(u₂ − u₁)/L₁ = 2 × 10⁵ × 0.075/300 = 50 N/mm²; σ₂ = 2 × 10⁵ × (0.175 − 0.075)/200 = 100 N/mm². Check: P/A₁ = 30000/600 = 50 and P/A₂ = 100 ✓.

Reaction: R₁ = 4 × 10⁵(0) − 4 × 10⁵(0.075) = −30,000 N (equal and opposite to P).

13.6 Stress Concentration

When the cross-section changes suddenly – at holes, notches, keyways, fillets and threads – the stress near the discontinuity rises far above the average value. This local rise is stress concentration, measured by the theoretical stress concentration factor:

Kt = σ_max / σ_nominal

Fig. 13.4 Plate with a central hole under tension

For an infinite plate with a small circular hole, the elasticity solution of G. Kirsch (1898) gives σ_max = 3σ at the edge of the hole (Kt = 3). Along the transverse section through the hole centre the stress decays rapidly with distance y from the centre (a = hole radius):

σ(y) = σ [1 + ½(a/y)² + (3/2)(a/y)⁴] for y ≥ a For a finite-width plate of width W with a central hole of diameter d, based on the net-section stress σ_net = P/((W − d)t), a widely used curve fit (Peterson/Roark) is:

Kt = 3.00 − 3.13(d/W) + 3.66(d/W)² − 1.53(d/W)³

Stress concentration is the most common origin of fatigue cracks, so designers add fillets, avoid sharp corners and drill relief holes.

13.7 Practice Programs (Week 13)

Program 13.1 – Stepped bar by FEM using NumPy

# Program 13.1: FEM solution of a stepped bar (2 elements)
import numpy as np
E = 2e5                                   # N/mm^2
A = [600, 300]                            # mm^2
L = [300, 200]                            # mm
P = 30000                                 # N at node 3
nn, ne = 3, 2
K = np.zeros((nn, nn))
for e in range(ne):
    k = A[e] * E / L[e]
    ke = k * np.array([[1, -1], [-1, 1]])
    idx = [e, e + 1]                      # global node numbers
    K[np.ix_(idx, idx)] += ke             # assembly
print("Global stiffness matrix [K] (N/mm):\n", K)
print("Symmetric:", np.allclose(K, K.T),
      "| det(K) =", round(np.linalg.det(K), 6), "(singular)")
F = np.array([0.0, 0.0, P])
free = [1, 2]                             # node 1 fixed
U = np.zeros(nn)
U[free] = np.linalg.solve(K[np.ix_(free, free)], F[free])
print("Nodal displacements (mm):", np.round(U, 4))
for e in range(ne):
    s = E * (U[e + 1] - U[e]) / L[e]
    print(f"Element {e+1}: stress = {s:.1f} N/mm^2")
R = K @ U - F
print("Reaction at node 1 =", round(R[0], 1), "N")
OUTPUT
Global stiffness matrix [K] (N/mm):
 [[ 400000. -400000.       0.]
 [-400000.  700000. -300000.]
 [      0. -300000.  300000.]]
Symmetric: True | det(K) = 0.0 (singular)
Nodal displacements (mm): [0.    0.075 0.175]
Element 1: stress = 50.0 N/mm^2
Element 2: stress = 100.0 N/mm^2
Reaction at node 1 = -30000.0 N

The program follows the FEM steps exactly: element matrices, assembly with np.ix_, boundary condition by selecting free degrees of freedom, solution with np.linalg.solve, and post-processing of stresses and reaction. The results agree with Worked Example 13.1.

Program 13.2 – Stress distribution in a plate at various lengths along the bar

A steel plate 200 mm long, 50 mm wide and 10 mm thick carries an axial load of 50 kN. The plate is modelled as a series of 40 bar elements along its length; each element's area is (width × thickness). The FEM gives the displacement at every node and the stress in every element, which is then plotted against position. A tapered version (width reducing from 50 mm to 30 mm) is also analysed to show how the stress changes along the length.

# Program 13.2: Stress distribution along a plate (1-D FEM)
import numpy as np
import matplotlib.pyplot as plt
def fem_bar(areas, Le, E, P):
    ne = len(areas); nn = ne + 1
    K = np.zeros((nn, nn))
    for e, A in enumerate(areas):
        K[e:e+2, e:e+2] += A * E / Le * np.array([[1, -1], [-1, 1]])
    F = np.zeros(nn); F[-1] = P
    U = np.zeros(nn)
    U[1:] = np.linalg.solve(K[1:, 1:], F[1:])     # node 0 fixed
    stress = E * np.diff(U) / Le
    return U, stress
L, t, E, P, ne = 200.0, 10.0, 2e5, 50e3, 40
Le = L / ne
xm = (np.arange(ne) + 0.5) * Le                  # element mid-points
W_uni = np.full(ne, 50.0)
W_tap = 50 - 20 * xm / L                         # 50 -> 30 mm
U1, s1 = fem_bar(W_uni * t, Le, E, P)
U2, s2 = fem_bar(W_tap * t, Le, E, P)
for x in (2.5, 50, 100, 150, 197.5):
    i = int(x // Le)
    print(f"x = {x:6.1f} mm : uniform {s1[i]:6.1f} MPa,"
          f" tapered {s2[i]:6.1f} MPa")
print(f"Total elongation: uniform {U1[-1]:.4f} mm, "
      f"tapered {U2[-1]:.4f} mm")
plt.figure(figsize=(6.5, 3.2))
plt.step(xm, s1, where="mid", label="Uniform plate (50 mm wide)")
plt.step(xm, s2, where="mid", label="Tapered plate (50 to 30 mm)")
plt.xlabel("Distance along plate x (mm)")
plt.ylabel("Axial stress (N/mm²)")
plt.title("FEM stress distribution along the length")
plt.legend(fontsize=8); plt.grid(alpha=.3)
plt.tight_layout(); plt.show()
OUTPUT
x =    2.5 mm : uniform  100.0 MPa, tapered  100.5 MPa
x =   50.0 mm : uniform  100.0 MPa, tapered  111.7 MPa
x =  100.0 mm : uniform  100.0 MPa, tapered  125.8 MPa
x =  150.0 mm : uniform  100.0 MPa, tapered  143.9 MPa
x =  197.5 mm : uniform  100.0 MPa, tapered  165.3 MPa
Total elongation: uniform 0.1000 mm, tapered 0.1277 mm

For the uniform plate the stress is constant (P/A = 50000/500 = 100 N/mm²) at every length, as expected. In the tapered plate the stress increases as the area decreases, reaching 50000/(30.25 × 10) ≈ 165 N/mm² near the narrow end.

Program 13.3 – Compare stress distribution in a plate with and without a hole

The same 200 × 50 × 10 mm plate now has a central hole of 20 mm diameter at x = 100 mm. In the 1-D FEM model each element's area is reduced by the chord of the hole that it cuts, which gives the net-section (average) stress along the length. The peak local stress at the hole edge is then obtained using Kt, and the transverse distribution is shown with Kirsch's equation.

# Program 13.3: Plate with and without a central hole
import numpy as np
import matplotlib.pyplot as plt
L, W, t, d, E, P, ne = 200.0, 50.0, 10.0, 20.0, 2e5, 50e3, 200
xc, r = L / 2, d / 2
Le = L / ne
xm = (np.arange(ne) + 0.5) * Le
def solve(areas):
    nn = ne + 1; K = np.zeros((nn, nn))
    for e, A in enumerate(areas):
        K[e:e+2, e:e+2] += A * E / Le * np.array([[1, -1], [-1, 1]])
    F = np.zeros(nn); F[-1] = P
    U = np.zeros(nn); U[1:] = np.linalg.solve(K[1:, 1:], F[1:])
    return E * np.diff(U) / Le
chord = np.where(abs(xm - xc) < r,
          2 * np.sqrt(np.clip(r**2 - (xm - xc)**2, 0, None)), 0)
s_plain = solve(np.full(ne, W * t))
s_hole = solve((W - chord) * t)
sig_nom = P / (W * t)
sig_net = P / ((W - d) * t)
q = d / W
Kt = 3.00 - 3.13 * q + 3.66 * q**2 - 1.53 * q**3
print(f"Nominal stress (no hole)      = {sig_nom:.1f} N/mm^2")
print(f"Max FEM net stress (with hole)= {s_hole.max():.1f} N/mm^2")
print(f"Net-section stress P/((W-d)t) = {sig_net:.1f} N/mm^2")
print(f"d/W = {q:.2f}, Kt = {Kt:.3f}")
print(f"Peak stress at hole edge      = {Kt*sig_net:.1f} N/mm^2")
ratio = Kt * sig_net / sig_nom
print(f"Increase over plain plate     = {ratio:.2f} times")
y = np.linspace(r, W / 2, 100)                   # transverse section
kirsch = sig_nom * (1 + 0.5 * (r / y)**2 + 1.5 * (r / y)**4)
fig, ax = plt.subplots(1, 2, figsize=(7.8, 3.2))
ax[0].plot(xm, s_plain, label="Without hole")
ax[0].plot(xm, s_hole, label="With hole (net section)")
ax[0].plot(xc, Kt * sig_net, "r*", ms=12, label="Peak (Kt x net)")
ax[0].set_xlabel("x along length (mm)")
ax[0].set_ylabel("Stress (N/mm²)")
ax[0].set_title("Along the length", fontsize=9)
ax[0].legend(fontsize=7)
ax[1].plot(y, kirsch, "m-", label="With hole (Kirsch)")
ax[1].axhline(sig_nom, color="C0", ls="--", label="Without hole")
ax[1].set_xlabel("Distance y from hole centre (mm)")
ax[1].set_title("Across the hole section", fontsize=9)
ax[1].legend(fontsize=7)
for a in ax: a.grid(alpha=.3)
plt.tight_layout(); plt.show()
OUTPUT
Nominal stress (no hole)      = 100.0 N/mm^2
Max FEM net stress (with hole)= 166.5 N/mm^2
Net-section stress P/((W-d)t) = 166.7 N/mm^2
d/W = 0.40, Kt = 2.236
Peak stress at hole edge      = 372.6 N/mm^2
Increase over plain plate     = 3.73 times

Interpretation:

• Without the hole the stress is uniform at 100 N/mm² along the whole length.

• With the hole the average stress rises only in the short length where the hole removes material, reaching the net-section value of 166.7 N/mm² at the centre.

• The true local peak at the edge of the hole is Kt × σ_net ≈ 2.24 × 166.7 ≈ 373 N/mm², i.e. about 3.7 times the stress in the plain plate.

• Across the hole section the stress falls rapidly from the edge (3σ for an infinite plate) towards the nominal value within about one hole diameter (Saint-Venant's principle).

• A 2-D FEM model (triangular or quadrilateral elements, as in ANSYS) would show this peak directly as a red contour at the hole edge.

Program 13.4 – General n-element bar solver (user input)

# Program 13.4: General bar FEM with user input
import numpy as np
ne = int(input("Number of elements: "))
A, L = [], []
for e in range(ne):
    A.append(float(input(f"Area of element {e+1} (mm^2): ")))
    L.append(float(input(f"Length of element {e+1} (mm): ")))
E = float(input("Young's modulus (N/mm^2): "))
P = float(input("Load at free end (N): "))
K = np.zeros((ne + 1, ne + 1))
for e in range(ne):
    K[e:e+2, e:e+2] += A[e] * E / L[e] * np.array([[1, -1], [-1, 1]])
F = np.zeros(ne + 1); F[-1] = P
U = np.zeros(ne + 1); U[1:] = np.linalg.solve(K[1:, 1:], F[1:])
print("Displacements (mm):", np.round(U, 5))
for e in range(ne):
    print(f"Element {e+1}: stress = {E*(U[e+1]-U[e])/L[e]:.2f} N/mm^2")
OUTPUT
Number of elements: 3
Area of element 1 (mm^2): 400
Length of element 1 (mm): 200
Area of element 2 (mm^2): 300
Length of element 2 (mm): 150
Area of element 3 (mm^2): 200
Length of element 3 (mm): 100
Young's modulus (N/mm^2): 200000
Load at free end (N): 10000
Displacements (mm): [0.    0.025 0.05  0.075]
Element 1: stress = 25.00 N/mm^2
Element 2: stress = 33.33 N/mm^2
Element 3: stress = 50.00 N/mm^2

13.8 Solved Exam Questions

Q1. What is the Finite Element Method? Explain its general steps. (8 marks)

Answer: FEM is a numerical method that divides a complex body into small elements connected at nodes, formulates simple equations for each element, assembles them and solves for nodal unknowns. Steps: discretisation; selection of displacement function; strain–displacement and stress–strain relations; element stiffness matrix; assembly of global matrix; application of boundary conditions and loads; solution; post-processing (Fig. 13.1).

Q2. List the engineering applications and advantages of FEM. (6 marks)

Answer: See Sections 13.3 and 13.4.

Q3. Derive the stiffness matrix of a bar element. (6 marks)

Answer: Using spring analogy k = AE/L and nodal equilibrium, f₁ = k(u₁ − u₂), f₂ = k(u₂ − u₁), giving [k] = (AE/L)[[1, −1], [−1, 1]]. See Section 13.5.

Q4. State the properties of the global stiffness matrix. (5 marks)

Answer: Square, symmetric, singular before boundary conditions, positive diagonal terms, rows sum to zero, banded and positive definite after boundary conditions.

Q5. A bar of two elements has k₁ = 4 × 10⁵ N/mm and k₂ = 3 × 10⁵ N/mm, fixed at node 1 with 30 kN at node 3. Find the displacements. (6 marks)

Answer: Worked Example 13.1: u₂ = 0.075 mm, u₃ = 0.175 mm; σ₁ = 50 MPa, σ₂ = 100 MPa; R₁ = −30 kN.

Q6. Write a Python program to compare and plot the stress distribution in a plate with and without a hole. (20 marks)

Answer: Program 13.3 with its interpretation.

13.9 Multiple Choice Questions

1. In FEM, the process of dividing a body into small elements is called a) assembly b) discretisation c) integration d) post-processing

Answer: (b) Reason: Discretisation creates the mesh of elements and nodes.

2. The stiffness of a bar element is a) AL/E b) AE/L c) EL/A d) PL/AE

Answer: (b) Reason: From δ = PL/AE, the spring constant is P/δ = AE/L.

3. A bar element has how many degrees of freedom per node? a)1 b)2 c)3 d)6

Answer: (a) Reason: Only axial displacement is considered.

4. The element stiffness matrix of a bar is of order a)1×1 b)2×2 c)3×3 d)4×4

Answer: (b) Reason: Two nodes × one d.o.f. = 2 × 2.

5. The global stiffness matrix before applying boundary conditions is a) non-singular b) singular c) diagonal d) zero

Answer: (b) Reason: Rigid-body motion makes its determinant zero.

6. Which property is TRUE for the stiffness matrix? a) unsymmetric b) symmetric c) diagonal terms negative d) always 3 × 3

Answer: (b) Reason: Kij = Kji by Maxwell's reciprocal theorem.

7. The sum of the elements in any row of an unconstrained stiffness matrix is a) one b) zero c) AE/L d) infinite

Answer: (b) Reason: A rigid-body translation produces no forces.

8. Stress in a bar element is calculated as a) E(u₂ − u₁)/L b) (u₂ − u₁)/L c) AE(u₂ + u₁) d) P × L

Answer: (a) Reason: ε = (u₂ − u₁)/L and σ = Eε.

9. The theoretical stress concentration factor for a small hole in an infinite plate under tension is a)1 b)2 c)3 d)5

Answer: (c) Reason: Kirsch's solution gives σ_max = 3σ at the hole edge.

10. Which software is a commercial FEM package? a) ANSYS b) MS Word c) Python IDLE d) Tally

Answer: (a) Reason: ANSYS, Abaqus and NASTRAN are widely used FEA tools.

11. Calculation of stresses and reactions after solving displacements is a) pre-processing b) solution c) post-processing d) meshing

Answer: (c) Reason: Post-processing derives secondary quantities and plots results.

12. Increasing the number of elements generally a) reduces accuracy b) improves accuracy but increases computation c) has no effect d) makes the matrix singular

Answer: (b) Reason: A finer mesh approximates the true field better at higher cost.

13. NumPy function used to solve [K]{U} = {F} is a) np.dot b) np.linalg.solve c) np.inv only d) np.sum

Answer: (b) Reason: It solves the linear system directly and efficiently.

14. Stress concentration occurs at a) uniform sections b) sudden changes of cross-section like holes and notches c) the centre of a uniform bar d) supports only

Answer: (b) Reason: Geometric discontinuities cause local stress rise.

15. Shape functions of a 2-node bar element are a)N₁=x/L,N₂=1−x/L b)N₁=1−x/L,N₂=x/L c)N₁=N₂=1 d)N₁=x²,N₂=x

Answer: (b) Reason: N₁ equals 1 at node 1 and 0 at node 2; N₂ is the reverse.

13.10 Exercises

1. A three-step bar (areas 900, 600, 300 mm²; lengths 200, 200, 200 mm; E = 70 GPa) carries 20 kN at the free end. Solve by hand and verify with Program 13.4.

2. Modify Program 13.3 to plot the peak stress at the hole for d/W ratios from 0.1 to 0.6.

3. Write a program to show that the global stiffness matrix of a 4-element bar is singular before and non-singular after applying the boundary condition.

4. Explain why designers provide fillets at shoulders of stepped shafts.

5. Compare analytical and FEM methods of stress analysis.

APPENDIX A