spring_check
Calculate helical compression spring rate, corrected shear stress, safety factor, and buckling risk from geometry, material, and force or deflection to check pass/fail.
Instructions
Rate a helical compression spring (Wahl). rate k=G d^4/(8 D^3 Na); corrected shear tau=Kw 8FD/(pi d^3). Pass force_n OR deflection_mm. Returns {spring_index, wahl_factor, rate_n_mm, force_n, deflection_mm, shear_stress_mpa, slenderness, buckling_flag, allowable_shear_mpa, shear_sf, pass}.
G and the allowable come from material unless overridden. shear_modulus_mpa
sets G directly; allowable_shear_mpa replaces the 0.45·UTS estimate, which
falls back to 700 MPa (spring steel) for a material carrying no UTS — pass it
explicitly for anything else, since shear_sf and pass scale with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force_n | No | ||
| material | No | Steel-1045 | |
| wire_dia_mm | Yes | ||
| active_coils | Yes | ||
| deflection_mm | No | ||
| free_length_mm | No | ||
| coil_mean_dia_mm | Yes | ||
| shear_modulus_mpa | No | ||
| allowable_shear_mpa | No |