铜箔载流与温升计算
IPC-2221 线宽载流、温升反算、电阻/压降/功耗与开窗加锡等效换算;选中走线逐条判定余量,离线报告直给结论。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
Size a 3 A continuous trace on external 1 oz copper for 10 °C rise, check an existing 40 mil trace for margin, and give a solder-window equivalence plan.
Content matches the files inside the package; extracted by the publish pipeline.
LCEDA copper / thermal / ampacity bundle
Offline re-implementation of the pure-computation cores of the LCEDA extension-plaza copper & thermal group (see references/PROVENANCE.md). Editor-bound members (balance copper, thieving copper, heater/coil/FPC generators) are documented as procedures in references/procedures.md; they need the LCEDA editor and are never simulated here.
What the script computes
scripts/demo.mjs (Node >= 20, no dependencies):
- IPC-2221 width solve:
A = (I / (k * dT^0.44))^(1/0.725), k = 0.048 external / 0.024 internal; width = A / (oz * 1.378 mil). - Inverse temperature rise at an existing width.
- DC resistance
rho*L/(w*t), voltage drop, I^2R loss (rho copper 1.724e-8 ohmm at 20 C, t = oz * 35 um). - Solder-window equivalence (external layers): added solder area scaled by rho_cu/rho_sac305 (1.724e-8 / 13.2e-8) into equivalent copper area, then before/after temperature rise.
- Fabrication floor 0.15 mm and margin factor (default 1.25).
- Verdict per trace: width/recommended >= 1 pass, >= 0.8 warning, below 0.8 error.
Run
node scripts/demo.mjs --out-dir <dir> [--input <traces.json>]
Default input: scripts/fixtures/input.json. stdout is an
edaskills.report.v1 report; <dir> receives ampacity.csv.
Input shape: { "traces": [{ "name", "currentA", "tempRiseC", "copperOz", "layer": "external"|"internal", "lengthMm", "widthMil", "margin"?, "solderMm"?, "coveragePct"? }] }.
When to use
- Sanity-check power trace widths before layout review in any EDA tool.
- Estimate heating / drop of an existing LCEDA copper route (export the line primitives via the editor API, map to the input shape).
- Judge whether a solder window rescues an undersized external trace.
Not for: final sign-off (IPC-2221 is conservative vs IPC-2152; verify with measurement or field solver), AC/skin-effect, or thermal simulation of planes and vias.
Dependencies
Demo run
node v24.19.0 · 2026/11/19
- [info] AMPACITY_OK (VIN_2A): 40 mil carries 2 A at 6.5 C rise (IPC-2221 external)
- [warning] MARGIN_LOW (CORE_1A2): width 42 mil below recommended 49.5 mil (ratio 0.85)
- [warning] MARGIN_LOW (LED_3A_WINDOW): width 40 mil below recommended 44.2 mil (ratio 0.91)
- [info] SOLDER_WINDOW_HELPS (LED_3A_WINDOW): solder window cuts rise 16.3 C -> 2.9 C (equiv width 114.6 mil)
FAQ
Ratings & reviews
Not rated0 ratings
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest24.3 KB
首发种子版本。