Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

26. Mechanical engineering: tolerance stack-up and inspection

School of Engineering, Nazarbayev University

Track: core example  ·  Uses: Chapters 3, 10, 12 and 18

Reading: Taylor, ch. 3.3–3.6 · Creveling, Tolerance Design · Bryan (1979) · ISO 14253-1

A product is assembled from parts that are never exactly their nominal size. The designer must decide how much each dimension may vary, its tolerance, so that the assembly still works. This is error propagation run in reverse: instead of asking how uncertain a result is, one asks how variable the inputs may be. The three standard methods of tolerance analysis correspond exactly to three ideas of this book:

  • worst case: add the tolerances, the “upper bound” of Taylor, ch. 3.3;

  • root sum of squares (RSS): add in quadrature, as for independent random errors (Section 3.2);

  • Monte Carlo: simulate the manufacturing process (Chapter 10).

The example compares them on a shaft assembly, and then turns to the other side of the problem: the measurement that decides whether an assembly passes inspection has its own uncertainty, including a geometric error that a careless set-up can make dominant.

The assembly

A housing of internal length LHL_H holds a stack of five parts on a shaft: a bearing, a spacer, a gear, a second bearing and a circlip. The axial gap that remains,

g=LH−(L1+L2+L3+L4+L5),g = L_H - (L_1 + L_2 + L_3 + L_4 + L_5) ,

must lie between 0.10 and 0.50 mm: a smaller gap risks binding when the parts expand, a larger one lets the gear move. All sensitivity coefficients are ±1\pm1.

nominal gap 0.30 mm, specification 0.10 to 0.50 mm
worst case: 0.30 ± 0.31 mm  ->  -0.01 to 0.61 mm
RSS:        0.30 ± 0.138 mm  ->  0.162 to 0.438 mm

By the worst-case method the design fails: if every part were at the unfavourable end of its tolerance, the gap could close completely or reach 0.61 mm. By RSS it passes with room to spare. The two answers differ by a factor of two in the predicted spread, and the choice between them is a question about the parts, not about arithmetic.

The worst case can occur, but it requires every part to be at an extreme at the same time. RSS assumes the deviations are independent and random, and in its usual form that each tolerance equals three standard deviations of a normal, centred process (a process capability Cp=1C_p = 1). Whether that describes the factory is the real question. Monte Carlo simulation answers it for any assumed process:

  1. RSS assumptions: each dimension normal, centred, σ=t/3\sigma = t/3;

  2. uniform: each dimension anywhere within its tolerance with equal probability, σ=t/3\sigma = t/\sqrt3, as when parts are sorted by a go/no-go gauge from a wider process;

  3. shifted: normal with σ=t/3\sigma = t/3, but with each process mean shifted by 1.5σ1.5\sigma in the direction that reduces the gap (the “1.5-sigma shift” conventionally allowed for slow process drift).

scenario           mean gap   sd      yield     Cpk     out of spec (ppm)
RSS assumptions     0.300   0.0461    1.0000    1.45         20
uniform             0.300   0.0798    0.9937    0.83       6337
shifted             0.145   0.0461    0.8355    0.33     164540

Under the RSS assumptions the yield is essentially 100 %: the RSS prediction is right, given its assumptions. If the parts are uniformly distributed within their tolerances, the spread is 3\sqrt3 times larger and about six assemblies in a thousand fail; the central limit theorem (Section 5.4) makes the gap nearly normal anyway, so the shape of the individual distributions hardly matters, only their standard deviations. With mean shifts, the yield falls further, because shifts of all parts in the same direction add linearly, like the worst case, not in quadrature. The process capability index Cpk=min⁡(USL−μ,μ−LSL)/3σC_{pk} = \min(\mathrm{USL} - \mu, \mu - \mathrm{LSL})/3\sigma summarises each case; industry commonly requires Cpk≥1.33C_{pk} \ge 1.33.

The lesson matches the one about systematic errors in measurement: random, independent variations add in quadrature, common biases add linearly (Section 16.1). RSS is justified for independent, centred processes; worst case is the right tool for small production runs, for safety-critical fits, and whenever the parts may share a bias.

Where to spend money: the variance budget

Which tolerance should be tightened? Since all sensitivities are ±1\pm1, each part’s share of the variance of the gap is its share of ∑σi2\sum\sigma_i^2 (Section 18.1).

  housing     ± 0.10 mm   variance share 52.4%
  bearing 1   ± 0.04 mm   variance share  8.4%
  spacer      ± 0.05 mm   variance share 13.1%
  gear        ± 0.05 mm   variance share 13.1%
  bearing 2   ± 0.04 mm   variance share  8.4%
  circlip     ± 0.03 mm   variance share  4.7%
housing tolerance halved: RSS spread ± 0.108 mm (was ± 0.138)

The housing alone contributes more than half of the variance. Halving its tolerance reduces the spread of the gap by about a fifth; halving any other tolerance would achieve far less.

Inspecting the gap: the Abbe error

Assemblies are checked by measuring the gap, and that measurement has its own uncertainty. One geometric error deserves special attention because it is easy to create and invisible in repeated readings. In a caliper, the scale lies along the beam, while the jaws touch the part a distance hh away, the Abbe offset. If the moving jaw tilts by a small angle θ\theta (play in its guide), the point of contact moves by hsin⁡θh\sin\theta relative to the scale reading (Bryan 1979). Abbe’s principle states that the scale should lie on the line of measurement, h=0h = 0.

A clean way to find such errors is to follow the kinematic chain from the scale to the point of contact with homogeneous transformation matrices, as is done for measuring machines (Zhang et al. 2019 analyse a rotor assembly machine this way). In two dimensions, the contact point is the scale position xx, followed by a rotation by θ\theta of the jaw, followed by the offset hh along the jaw:

(xcyc1)=(10x010001)(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)(0h1),xc=x−hsin⁡θ.\begin{pmatrix} x_c \\ y_c \\ 1\end{pmatrix} = \begin{pmatrix} 1 & 0 & x \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix} \begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1\end{pmatrix} \begin{pmatrix} 0 \\ h \\ 1\end{pmatrix} , \qquad x_c = x - h\sin\theta .

The error of the measured length is −hsin⁡θ-h\sin\theta. The cell propagates an angular play θ\theta, uniform within ±0.5 mrad, linearly and by Monte Carlo for several offsets hh, and also evaluates the error that remains when the measurement axis is not parallel to the gap by an angle φ\varphi, the second-order cosine error g(1/cos⁡φ−1)g(1/\cos\varphi - 1).

Abbe offset h =    0 mm: standard uncertainty from the jaw play  linear  0.00 µm,  Monte Carlo  0.00 µm
Abbe offset h =    2 mm: standard uncertainty from the jaw play  linear  0.58 µm,  Monte Carlo  0.58 µm
Abbe offset h =    5 mm: standard uncertainty from the jaw play  linear  1.44 µm,  Monte Carlo  1.44 µm
Abbe offset h =   10 mm: standard uncertainty from the jaw play  linear  2.89 µm,  Monte Carlo  2.88 µm
Abbe offset h =   20 mm: standard uncertainty from the jaw play  linear  5.77 µm,  Monte Carlo  5.76 µm
Abbe offset h =   30 mm: standard uncertainty from the jaw play  linear  8.66 µm,  Monte Carlo  8.65 µm
Abbe offset h =   40 mm: standard uncertainty from the jaw play  linear 11.55 µm,  Monte Carlo 11.53 µm
cosine error for misalignment within ±10 mrad: mean 4.996 nm, max 15.000 nm

The Abbe error grows in proportion to the offset; with the 30 mm offset of an ordinary caliper and a jaw play of ±0.5 mrad, it contributes a standard uncertainty near 9 µm, more than the resolution of the instrument. Linear propagation is exact here because the error is linear in θ\theta to first order. The cosine error, by contrast, has zero first-order sensitivity at φ=0\varphi = 0, so linear propagation would report no uncertainty at all (Section 12.3); Monte Carlo shows a small positive bias, but for a short gap it amounts to a few nanometres, about a thousand times less than the Abbe term. The practical rule follows Abbe: put the scale in line with the measurement, or keep the offset small, as in a micrometer or a depth gauge.

Accept or reject? Decisions with measurement uncertainty

The inspection budget combines the resolution of a digital caliper (0.01 mm, rectangular), the repeatability of placing it (4 µm), and the Abbe term for h=30h = 30 mm.

inspection uncertainty: resolution 2.9 µm, repeatability 4.0 µm, Abbe 8.7 µm  ->  u = 10.0 µm, U (k=2) = 20 µm

When a measured gap falls just inside a limit, the true gap may lie just outside it. Two errors are possible: a false accept (a bad assembly passes) and a false reject (a good one fails). ISO 14253-1 protects the customer by default: conformity is proved only if the measured value lies inside the specification by at least the expanded uncertainty UU, a guard band. The cell simulates inspection of the “uniform” production with acceptance limits moved inwards by a guard band of 0 to 2U2U.

actually out of specification: 0.63%
guard band   0.0 µm: false accepts   1065 ppm, false rejects  0.19%
guard band   5.0 µm: false accepts    568 ppm, false rejects  0.34%
guard band  10.0 µm: false accepts    208 ppm, false rejects  0.56%
guard band  14.9 µm: false accepts     62 ppm, false rejects  0.85%
guard band  19.9 µm: false accepts     22 ppm, false rejects  1.18%
guard band  24.9 µm: false accepts      5 ppm, false rejects  1.61%
guard band  29.9 µm: false accepts      0 ppm, false rejects  2.11%
guard band  34.9 µm: false accepts      0 ppm, false rejects  2.69%
guard band  39.9 µm: false accepts      0 ppm, false rejects  3.36%

Without a guard band, about a thousand assemblies per million that are out of specification are accepted. A guard band of UU cuts the false accepts about fifty-fold, at the cost of rejecting about 1 % of good assemblies instead of 0.2 %. The trade-off is economic: the cost of a defect delivered against the cost of scrapping a good part. It also shows the value of a better measurement: reducing the Abbe offset to 5 mm would reduce UU, and with it both kinds of error.

<Figure size 1012x814 with 4 Axes>

(a) Simulated distributions of the gap for three assumptions about manufacturing; shaded: the specification; bars at the top: worst-case and RSS ranges. (b) Share of each part in the variance of the gap. (c) Uncertainty of a caliper reading caused by jaw play, against the Abbe offset; dashed: the contribution of the resolution. (d) False-accept and false-reject rates at inspection against the guard band; vertical line: the expanded uncertainty UU.

What this example teaches

  • Worst-case and RSS tolerancing are the two extreme rules for combining errors, linear and quadrature, and the choice between them is a judgement about independence and centring of the processes.

  • Monte Carlo replaces that judgement by an explicit model of the manufacturing process, including non-normal distributions and mean shifts.

  • A variance budget tells where tightening a tolerance pays.

  • The inspection measurement belongs in the analysis. Geometric errors such as the Abbe error are found by following the kinematic chain, and decisions near a limit need a guard band of the expanded uncertainty.

References

  • J. B. Bryan, “The Abbé principle revisited: an updated interpretation”, Precis. Eng. 1, 129 (1979).

  • C. M. Creveling, Tolerance Design: A Handbook for Developing Optimal Specifications (Addison-Wesley, 1997).

  • ISO 14253-1:2017, Geometrical product specifications (GPS) — Inspection by measurement of workpieces and measuring equipment — Part 1: Decision rules for verifying conformity or nonconformity with specifications (International Organization for Standardization, Geneva).

  • D. C. Montgomery, Introduction to Statistical Quality Control, 7th ed. (Wiley, 2012).

  • M. Zhang, Y. Liu, C. Sun, X. Wang and J. Tan, “Measurements error propagation and its sensitivity analysis in the aero-engine multistage rotor assembling process”, Rev. Sci. Instrum. 90, 115003 (2019).

Exercises

  1. Find, by Monte Carlo, the largest common tolerance multiplier for which the “shifted” process still has Cpk≥1.33C_{pk} \ge 1.33.

  2. Replace the uniform distribution of the housing by a triangular one. How much does the yield change, and why so little?

  3. Extend the kinematic chain with a second rotation, a tilt of the part itself by ψ\psi. Which combination of θ\theta, ψ\psi and hh gives the leading error?

  4. Repeat the guard-band study with an Abbe offset of 5 mm. By how much do the false rejects at a guard band of UU fall?