bodies module#

The chip parts’ bodies, from their vendors’ drawings.

Board-independent data each part family owns: the nominal body size (the run’s HFSS body models were built at it) and its tolerance, which bounds the largest body a reel can deliver. ChipBody.keepout is the region under a placed part that must hold no copper but the part’s own lands (main, body keepouts).

Frame: a part’s land-pattern frame, as jitxlib’s two-pin SMT draws it: origin at the body centre, the lands’ axis along y, width along x.

ACCU_P_LENGTH = 1.0#

Accu-P 0402 body length, mm.

ACCU_P_LENGTH_TOLERANCE = 0.1#

Accu-P 0402 body length tolerance, mm.

ACCU_P_WIDTH = 0.55#

Accu-P 0402 body width, mm.

ACCU_P_WIDTH_TOLERANCE = 0.07#

Accu-P 0402 body width tolerance, mm.

ACCU_P_HEIGHT = 0.4#

Accu-P 0402 body thickness, mm.

ACCU_P_TERMINATION = 0.2#

Accu-P 0402 termination length, mm.

LQW15A_LENGTH = 1.0#

LQW15A body length, mm.

LQW15A_LENGTH_TOLERANCE = 0.1#

LQW15A body length tolerance, mm.

LQW15A_WIDTH = 0.6#

LQW15A body width, mm.

LQW15A_WIDTH_TOLERANCE = 0.1#

LQW15A body width tolerance, mm.

LQW15A_HEIGHT = 0.5#

LQW15A body height, mm.

LQW15A_TERMINATION = 0.2#

LQW15A electrode length, mm.

class ChipBody(length, length_tolerance, width, width_tolerance)[source]#

Bases: object

A two-terminal chip body: nominal length (along its lands’ axis) and width, mm, each with its +/- tolerance.

Parameters:
length: float#
length_tolerance: float#
width: float#
width_tolerance: float#
outline()[source]#

The largest body the drawing allows, (width, length), mm.

Return type:

tuple[float, float]

keepout_reach(clearance)[source]#

How far the keepout reaches from the body centre, (across, along) the lands’ axis, mm: half the largest body plus clearance.

Return type:

tuple[float, float]

Parameters:

clearance (float)

keepout(clearance)[source]#

The largest body grown by clearance on every side, centred on the land-pattern origin, lands’ axis along y.

Return type:

Shape

Parameters:

clearance (float)

ACCU_P_BODY = ChipBody(length=1.0, length_tolerance=0.1, width=0.55, width_tolerance=0.07)#

Kyocera AVX Accu-P 0402 (every capacitor on this board).

LQW15A_BODY = ChipBody(length=1.0, length_tolerance=0.1, width=0.6, width_tolerance=0.1)#

Murata LQW15A (every inductor on this board).

chip_body(part)[source]#

The body of a chip part on this board: the capacitors are all Accu-P, the inductors all LQW15A (network queries).

Return type:

ChipBody

Parameters:

part (Capacitor | Inductor)