Mech Spring Compression
mech_spring_compressionCalculate round-wire helical compression spring rate, Wahl-corrected stress, deflection or load, solid height, and stroke. Check buckling and allowable-shear utilization for static designs.
Instructions
Round-wire helical compression spring: spring rate k = Gd^4/(8D^3*Na), spring index, Wahl factor, solid height and total coils from the end type. With a 'load' or a 'deflection' it also returns the other, the Wahl-corrected shear stress and (with 'allowable_shear') the utilization; with 'free_length' it returns the stroke to solid and warns about buckling. Static loading only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wire_diameter": "<wire_diameter>",
"mean_diameter": "<mean_diameter>",
"active_coils": "<active_coils>"
},
"name": "mech_spring_compression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| load | No | Optional axial load F, e.g. '100 N'. Gives deflection and stress. Give this OR deflection. | |
| end_type | No | 'squared_ground' (default), 'squared', 'plain_ground' or 'plain' ends; sets total coils and solid height | squared_ground |
| deflection | No | Optional compression y, e.g. '10 mm'. Gives load and stress. Give this OR load. | |
| free_length | No | Optional free length L0, e.g. '50 mm'. Gives the stroke to solid, the solid load and the buckling check. | |
| unit_system | No | Unit system of the results: 'metric' (kN, N*m, mm, MPa) or 'imperial' (lbf, lbf*ft, inch, ksi) | metric |
| active_coils | Yes | Number of active coils Na (may be fractional), e.g. 8 | |
| mean_diameter | Yes | Mean coil diameter D (outer minus wire) with unit, e.g. '16 mm' | |
| shear_modulus | No | Shear modulus G of the wire, e.g. '79.3 GPa' (typical carbon / music-wire steel) | 79.3 GPa |
| wire_diameter | Yes | Wire diameter d with unit, e.g. '2 mm' | |
| allowable_shear | No | Optional allowable shear stress, e.g. '800 MPa' (from the wire material data). Gives the utilization. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |