Compression Springs (compression-springs)
Purpose
Design helical compression springs per EN 13906-1 and Shigley methods:
Physics & theory
A helical compression spring wound from wire diameter on mean coil diameter with active coils behaves as a linear spring with rate , where is shear modulus. Wahl factor with spring index corrects for curvature and direct shear in maximum wire shear stress .
EN 13906-1 allowable shear for cold-coiled springs is , where follows size-effect fit for standard wire grades. Buckling when free length exceeds with end condition coefficient .
Optional fatigue screening uses characteristic shear fatigue strength with life-class reduction and Goodman mean-stress correction when minimum deflection is specified (life classes VL/LH/MH/HH).
Governing equations
Numerical method
Closed-form EN 13906-1 / Shigley equations. Wire ultimate from Shigley Table 10-4 fits or springWireCatalog.ts (EN 10270 / ASTM stock). Active coil mass computed for surge frequency. Fatigue via en13906Fatigue.ts when enabled.
Inputs
| Parameter | Description |
|---|---|
wireDiameter, meanDiameter | , |
activeCoils | Active turn count |
modulus | Shear modulus |
deflection, freeLength | Operating deflection and |
wireType | ASTM wire grade or custom |
| Wire stock picker | Optional catalog designation → auto-fill , , |
endCondition | Buckling end condition (ν coefficient) |
operatingFrequencyHz | Forcing frequency for surge margin (target 10×) |
| Fatigue panel | Life class, wire quality 1–3, minimum deflection |
Outputs
- Spring rate, solid height, loaded length, solid height clearance, max load, shear stress, static SF
- Surge frequency and margin, buckling limit, spring index, Wahl factor
- Optional fatigue SF and utilization; governing failure mode
- Load–deflection and stress plots; spring outline preview
Design codes & checks
- Indicative: Shear stress utilization, solid height, surge margin, fatigue life (when enabled)
- EU: EN 13906-1 cold-coiled helical compression springs
- US: SAE AMS spring wire specifications (reference)
Design workflow
- Validate: Forward check on entered geometry.
- Auto-design: Sweeps
springWireCatalogwire diameters and active coils within max OD for target rate and stress. - Compare: Ranked wire/coil alternatives with Apply.
Assumptions & limitations
- Circular wire, closed and ground ends (solid height includes 2d end allowance).
- Fatigue uses simplified τk0 + Goodman screening — verify critical designs against EN 13906 nomographs.
- Surge margin requires operating frequency input; default 10× margin target.
- Not for extension or torsion springs (see dedicated modules).
Verification
- CI:
compression-springs-indicative-01.json,compression-springs-indicative-fatigue-01.json - Vitest:
src/lib/springs/compression-springs/engine.test.ts,en13906Fatigue.test.ts - Engineer sign-off: spring-modules-user-tasks.md, validation-master-checklist.md
References
- EN 13906-1:2013. Cylindrical helical springs — Part 1: Compression springs.
- Shigley, J. E., & Budynas, R. G. Mechanical Engineering Design, 11th ed., Ch. 10.
- Wahl, A. M. Mechanical Springs, 2nd ed. McGraw-Hill.
- ASTM A228/A227/A229. Steel Wire for Mechanical Springs.