科研 Skill

一维公差链分析

tolerance-stackup

Runs 1D tolerance stack-ups (worst-case, RSS, Monte Carlo) on a dimension chain, ranks contributors, and estimates reject rate against a gap spec. Use for clearance or tolerance-allocation analysis.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Tolerance Stack-up

Workflow

  1. Define the gap. Name the gap being studied and its spec (LSL / USL). Draw the loop in text: Housing face → bore bottom (+) → bearing (−) → spacer (−) → gear hub (−) → gap.
  2. Build the chain CSV (scripts/example_chain.csv shows the format). Rules:
    • Go around the loop in one direction; dimensions pointing the "positive" way are +1, the rest -1.
    • Enter unequal tolerances as plus/minus (both positive numbers). The script handles mean shift.
    • dist: normal for controlled processes (set cpk), uniform for unknown processes or purchased parts with no data.
    • Convert GD&T to ± equivalents first: position Ø0.2 → ±0.1 radial; flatness/parallelism add as their own rows.
  3. Run:
    python scripts/stackup.py chain.csv --lsl 0.10 --usl 0.60 --out stack
    
  4. Interpret
    • Worst-case OK → done; tolerances can be loosened.
    • Worst-case fails but RSS / MC passes → acceptable for high volume if the processes really are in control; state the predicted ppm.
    • MC reject > 2700 ppm (beyond ±3σ) → redesign: tighten the top 1–2 contributors only, or add an adjustment (shim, slotted hole).
  5. Recommend tolerance reallocation: tighten the contributors with the largest pct_rss first; loosen the ones under 5%.

Output format

  • Loop diagram (text) and the chain table
  • Results table: Nominal | Worst-case min/max | RSS min/max | MC ±3σ | Reject ppm
  • Contributor chart (stack_contrib.png) and histogram (stack_hist.png)
  • 2–3 concrete recommendations

Limits

1-D linear stacks only. For 2-D/3-D stacks (angular errors, chains with rotation), linearize with sensitivity coefficients: enter direction as the partial derivative ∂gap/∂xᵢ instead of ±1, and say so in the report.

示例提示词

帮我对这条尺寸链做蒙特卡洛公差分析并估算装配不合格率。

所属插件

机械设计与先进制造面向机械设计与制造研究:文本/草图生成 CAD、FreeCAD/SolidWorks 参数化建模、机构综合与零件选型、公差与 GD&T、DFM 与设计评审、快速有限元与应力代理模型、增材制造工艺与缺陷预测、疲劳断裂寿命。

安装该插件会一并获得同领域的 35 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

一维公差链分析能做什么?

Runs 1D tolerance stack-ups (worst-case, RSS, Monte Carlo) on a dimension chain, ranks contributors, and estimates reject rate against a gap spec. Use for clearance or tolerance-allocation analysis。

如何安装一维公差链分析?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「一维公差链分析」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

一维公差链分析需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

一维公差链分析经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。