Skip to main content
PCBThermalFreeNewv1.0.0

铜箔载流与温升计算

IPC-2221 线宽载流、温升反算、电阻/压降/功耗与开窗加锡等效换算;选中走线逐条判定余量,离线报告直给结论。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+2

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
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.

What you get

  • Recommended trace width (internal/external, 1/2 oz) and temperature-rise back-calculation
  • Resistance, voltage drop, power and solder-window equivalence width
  • Per-trace margin verdicts (UNDERSIZED / MARGIN_LOW / OK)

Good fit for

  • Width selection for power paths, motor drives and LED high-current traces
  • Checking whether existing copper carries the target current

Not for

  • Transient pulse or thermal simulation (steady-state IPC-2221 empirics)
  • Replacing fab process-capability checks
Before you start

You provide

  • Current (A), allowed rise (°C), copper weight (oz), layer position
  • Existing width and length (mil) for margin checks

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Passed with warnings0 errors · 2 warnings

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

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest24.3 KB

    首发种子版本。

    License: MITSourceSHA-256: f70f712da90db49e…

Related skills