Description
Sum nonnegative partHeights and spacerHeights for stackHeight.
A signed fit margin compares available space with an object and explicit allowances. Volume sufficiency, radial gaps, and diametral clearance are different conditions.
Sum nonnegative partHeights and spacerHeights for stackHeight.
When to use this tool
Use Part Stack Height Residual when you need one transparent product fit or travel-margin term.
How to use the tool and how it works
- Enter partHeights, spacerHeights, availableHeight. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read stackHeight, residual. Use the output convention below.
Sum nonnegative partHeights and spacerHeights for stackHeight. Subtract from availableHeight for residual.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| partHeights | Part Heights | Required. Array of finite number; maximum items 256. |
| spacerHeights | Spacer Heights | Required. Array of finite number; maximum items 256. |
| availableHeight | Available Height | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| stackHeight | Stack Height | Required. Finite number. |
| residual | Signed residual using the convention in the calculation paragraph. | Required. Finite number. |
{
"input": {
"partHeights": [
2,
3,
4
],
"spacerHeights": [
0.5,
0.5
],
"availableHeight": 12
},
"output": {
"stackHeight": 10,
"residual": 2
}
} Limitations and assumptions
- Negative residual indicates geometric overrun; compression, tolerance stacking, loads, and assembly feasibility are not modeled.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Check complete three-dimensional geometry, tolerances, materials, and operating conditions before judging actual fit or safety.
References
Similar or alternative tools
- Product Stackup One Tolerance Contribution
Multiply nonnegative halfTolerance by abs(sensitivity) for worstCaseContribution and square sensitivity × halfTolerance for squaredRssContribution.
- Component Envelope Pack Share
Sum nonnegative componentVolumes, divide by positive envelopeVolume for occupiedShare, and subtract the sum from envelopeVolume × suppliedPackingFraction for budgetGap.