사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/baratilab/mechanical-engineering-skills --skill tolerance-stackup시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Tolerance Stack-up
Workflow
- 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.
- Build the chain CSV (
scripts/example_chain.csvshows 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:normalfor controlled processes (setcpk),uniformfor 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.
- Run:
python scripts/stackup.py chain.csv --lsl 0.10 --usl 0.60 --out stack- 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).
- Recommend tolerance reallocation: tighten the contributors with the largest
pct_rssfirst; 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.