Safety Factor (safety-factor)
Purpose
Compute reserve factors (safety factors) for general stress states against yield and ultimate strength. Provides unified von Mises yield and ultimate safety metrics used across bolt, shaft, and joint screening workflows.
Physics & theory
Safety factor expresses margin before failure. For combined stresses, von Mises equivalent stress compares to yield for ductile design ( ) and to ultimate for fracture screening ( ).
Design practice targets depending on consequence of failure, load uncertainty, and code requirements. This module accepts direct stress components or pre-computed von Mises stress.
Connections transfer load through bearing, shear, tension, and friction paths depending on joint configuration. Preload in bolted joints reduces joint separation and can allow friction to carry shear; without adequate preload, bolts carry full shear in bearing against hole walls.
FEM-based bolt analysis resolves member and bolt stiffness for load sharing; VDI 2230 provides a systematic worksheet for high-fidelity preloaded joints including embedding loss and tightening scatter.
Governing equations
Numerical method
Closed-form von Mises from stress tensor components or scalar input. Both yield and ultimate safety factors computed when material properties provided.
Inputs
| Parameter | Description |
|---|---|
| Stress components or | Actual stress state |
yieldStrength, ultimateStrength | Material limits |
| Load type | Static or shock (informational) |
Outputs
- von Mises stress, yield safety factor, ultimate safety factor, pass/fail vs target SF.
Design codes & checks
- Indicative: Yield and ultimate von Mises safety factors
Assumptions & limitations
- Ductile von Mises criterion; brittle or anisotropic materials need different criteria.
- Static strength only; fatigue requires Fatigue module.
- Does not apply code partial factors () automatically.
References
- Shigley, J. E., & Budynas, R. G. Mechanical Engineering Design, 11th ed., Ch. 5.
- Dowling, N. E. Mechanical Behavior of Materials, 5th ed.
- ASME BPVC Section VIII, Div. 2 — design-by-analysis safety factors.
- EN 1993-1-1:2005. Partial factors and resistance models.
- 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.