Root/modules/inductor-2p.fpd

Source at commit c9e1946fca487e8cc799ea50b2fec5ae4912f988 created 3 years 7 months ago.
By Werner Almesberger, modules/inductor-2p.fpd (INDUCTOR-2P-6mmx6mm): add 6 x 6 mm inductor
1/* MACHINE-GENERATED ! */
2
3frame pads {
4    set y = (2*i-1)*(py+gap)/2
5
6    set name = i+1
7
8    loop i = 0, 1
9
10    __0: vec @(0mm, y)
11    __1: vec .(px/2, py/2)
12    __2: vec __0(-px/2, -py/2)
13    pad "$name" . __1
14}
15
16frame outline {
17    __0: vec @(sizex/2, sizey/2)
18    __1: vec .(clear, clear)
19    __2: vec @(sizex/2, -sizey/2)
20    __3: vec .(clear, -clear)
21    line . __1 w
22    __4: vec @(-sizex/2, sizey/2)
23    __5: vec .(-clear, clear)
24    __6: vec @(-sizex/2, -sizey/2)
25    __7: vec .(-clear, -clear)
26    line . __5 w
27}
28
29package "INDUCTOR-2P-${sizex}x${sizey}"
30unit mm
31
32table
33    { sizex, sizey, px, py, gap }
34    { 3mm, 3mm, 2.7mm, 1mm, 1.2mm }
35    { 6mm, 6mm, 5.7mm, 1.6mm, 3.1mm }
36
37set clear = 0.1mm+w/2
38
39set w = 5mil
40
41frame pads @
42frame outline @
43measy pads.__2 >> pads.__1 1.5mm
44measx pads.__2 -> pads.__1 -1mm
45measy pads.__2 -> pads.__1 1mm
46measy pads.__1 >> pads.__2 px+1mm
47measx outline.__6 >> outline.__2 -1.5mm
48measy outline.__2 >> outline.__0 -2mm
49measy pads.__0 >> pads.__0 -sizex/2-1mm
50

Archive Download this file

Branches:
master



interactive