Tolerance Stackup (tolerance)
Purpose
Analyze dimensional variation accumulation in assemblies using worst-case and statistical (RSS) methods, with optional Monte Carlo simulation. Supports GD&T stack analysis for manufacturing tolerance planning.
Physics & theory
Each dimension in a chain contributes uncertainty . Worst-case stack assumes all tolerances at extreme simultaneous values: . Root-sum-square (RSS) assumes independent normal distributions: , typically yielding tighter assembly tolerance than worst-case for the same part tolerances.
Monte Carlo draws random deviations per dimension and sums to build distribution of assembly dimension — mean and standard deviation quantify expected variation. ASME Y14.5 GD&T defines tolerance zones; this module operates on numeric tolerance values extracted from drawings.
Manufacturing modules support design-for-manufacture decisions early in product development. Tolerance analysis should identify critical dimensions in the stack — tightening non-critical tolerances increases cost without improving function.
Fit selection balances assembly ease, alignment precision, and load transmission. Interference fits provide torque capacity without keys but require controlled press force and material compatibility.
Governing equations
Numerical method
Closed-form WC and RSS (engine in manufacturing module). Optional Monte Carlo with uniform or normal sampling over monteCarloSamples iterations. Separate X/Y stacks when 2D variation provided.
Inputs
| Parameter | Description |
|---|---|
tolerances | Array of ± tolerances per dimension |
tolerancesY (optional) | Secondary stack direction |
monteCarloSamples | Simulation count (0 = skip) |
| Nominal stack direction | Additive chain definition |
Outputs
- Worst-case total
- RSS total
- Monte Carlo mean and standard deviation (if run), per-direction stacks.
Design codes & checks
- Indicative: Worst-case and RSS stack
- US: ASME Y14.5 dimensioning and tolerancing
- ISO: ISO 286 tolerance principles (related)
Assumptions & limitations
- Linear stack chains; no geometric tolerance zone conversion from GD&T without manual equivalent.
- RSS assumes normal, independent variations — not valid for skewed processes.
- Monte Carlo quality depends on sample count and input distribution assumptions.
- No assembly shift or thermal expansion unless added as dimensions.
References
- ASME Y14.5-2018. Dimensioning and Tolerancing.
- Wick, C. H., et al. Tolerance Stack Up Analysis, 2nd ed. ASME Press.
- ISO 286-1:2010. Limits and fits.
- Srinivasan, V. Statistical Tolerance Analysis. ASME Handbook.
- PhyCalcPro verification benchmarks in
src/data/verification/where available for this module. - Beer, F. P., et al. Mechanics of Materials, 8th ed. McGraw-Hill — foundational stress and deformation theory.