| 1 |
.PS |
| 2 |
# WindingsDPV.m4 |
| 3 |
cct_init(svg_font(sans-serif,10bp__)) |
| 4 |
textoffset = 3bp__ |
| 5 |
|
| 6 |
Toprow:[ |
| 7 |
W1: [ W: winding ] |
| 8 |
`"winding"' at last [].s below |
| 9 |
|
| 10 |
W2: [ winding(R) ] with .n at last "".s+(0,-0.1) |
| 11 |
`"winding(R)"' wid 1 at last [].s below |
| 12 |
|
| 13 |
W3: [ sk = 0.75 |
| 14 |
d = 1.5*sk |
| 15 |
p = 0.4*sk |
| 16 |
w = 1*sk |
| 17 |
|
| 18 |
define vlight {rgbstring(0.9,0.9,0.9)} |
| 19 |
W: winding(L,d,p,4,w,vlight) |
| 20 |
|
| 21 |
thinlines_ |
| 22 |
dimension_(from W.nw+(p/4,0) right p,0.1,"pitch" above,0.3) |
| 23 |
dimension_(from W.sw to W.nw,0.2,diam,0.3) |
| 24 |
dimension_(from W.e+(-p/2,-w/2) up w,-0.3,,0.2) |
| 25 |
"core wid" wid 0.75 at W.e ljust |
| 26 |
arrow <- up d-w+0.1 left d/10 from W.ne+(-p/2,-(d-w)) |
| 27 |
"core color" at Here+(-0.2,0) ljust above |
| 28 |
thicklines_ |
| 29 |
] with .sw at last [].se+(0.25,0) |
| 30 |
"T1" at last [].W.T1 below |
| 31 |
"T2" at last [].W.T2 below |
| 32 |
|
| 33 |
W4: [ |
| 34 |
boxwid = 0.3 |
| 35 |
boxht = 0.4 |
| 36 |
down_ |
| 37 |
B1: box |
| 38 |
winding(,boxwid*1.3,boxht/5,3,boxwid) at B1 |
| 39 |
"Left pins" "cw" at B1.s+(0,-0.15) |
| 40 |
for_(1,2,1,`"svg_small(T`'m4x)" at last [].T`'m4x rjust') |
| 41 |
B2: box at B1.e + (0.5,0) |
| 42 |
winding(R,boxwid*1.3,boxht/5,3,boxwid) at B2 |
| 43 |
"Left pins" "ccw" at B2.s+(0,-0.15) |
| 44 |
for_(1,2,1,`"svg_small(T`'m4x)" at last [].T`'m4x rjust') |
| 45 |
up_ |
| 46 |
B3: box at B1.s + (0,-0.55) |
| 47 |
winding(,boxwid*1.3,boxht/5,3,boxwid) at B3 |
| 48 |
"Right pins" "cw" at B3.s+(0,-0.15) |
| 49 |
for_(1,2,1,`"svg_small(T`'m4x)" at last [].T`'m4x ljust') |
| 50 |
B4: box at (B2,B3) |
| 51 |
winding(R,boxwid*1.3,boxht/5,3,boxwid) at B4 |
| 52 |
"Right pins" "ccw" at B4.s+(0.07,-0.15) |
| 53 |
for_(1,2,1,`"svg_small(T`'m4x)" at last [].T`'m4x ljust') |
| 54 |
] with .sw at last [].se+(0,-0.15) |
| 55 |
|
| 56 |
W5: [ |
| 57 |
W: arcwinding(,60,120) |
| 58 |
{`"arcwinding("' at W.s+(0,-12bp__) `",60,120)"' } |
| 59 |
W: arcwinding(,120,60) with .sw at W.se+(0.4,0) |
| 60 |
{`"...(,120,60)"' at last [].s below} |
| 61 |
W: arcwinding(,60,120,,-dimen_) with .nw at 2nd last [].sw+(0,-0.4) |
| 62 |
{`"...(,60,120,,"' at W.s+(0,-12bp__) `"-dimen_)"' } |
| 63 |
W: arcwinding(,120,60,,-dimen_) with .sw at W.se+(0.4,0) |
| 64 |
{`"...(,120,60,,"' at W.s+(0,-12bp__) `"-dimen_)"' } |
| 65 |
] with .nw at last [].ne+(0.3,0) |
| 66 |
|
| 67 |
] # end Toprow |
| 68 |
|
| 69 |
Trans:[ |
| 70 |
Q: box invis ht 1 wid 5/4 |
| 71 |
g = Q.wid/12 |
| 72 |
ironwid = Q.wid/4.5 |
| 73 |
|
| 74 |
line thick ironwid/(1bp__)+linethick from Q.n+(g/2-linethick/2 bp__,0) \ |
| 75 |
to Q.ne then to Q.se then to Q.sw then to Q.nw \ |
| 76 |
then to Q.n+(-g/2+linethick/2 bp__,0) |
| 77 |
line thick ironwid/(1bp__)-linethick outlined "lightgray" \ |
| 78 |
from Q.n+(g/2+linethick/2 bp__,0) \ |
| 79 |
to Q.ne then to Q.se then to Q.sw then to Q.nw \ |
| 80 |
then to Q.n+(-g/2-linethick/2 bp__,0) |
| 81 |
|
| 82 |
thinlines_ |
| 83 |
dimension_(from Q.n+(-g/2,-ironwid/2) right g,-ironwid/4, |
| 84 |
"svg_it(g)" below,1,2pt__) |
| 85 |
thicklines_ |
| 86 |
|
| 87 |
down_ |
| 88 |
P: winding(R,ironwid*5/4,ironwid/2,4,ironwid,"lightgray") at Q.w |
| 89 |
line left ironwid*2/3 from P.T1 |
| 90 |
arrow right to P.T1 "svg_it(i`'svg_sub(1))" above |
| 91 |
line left ironwid*2/3 from P.T2 |
| 92 |
gap(up_ to 2nd last line.end) |
| 93 |
llabel(-,svg_it(v`'svg_sub(1)),+) |
| 94 |
"svg_it(N`'svg_sub(1))" at P.e ljust |
| 95 |
|
| 96 |
up_ |
| 97 |
S: winding(L,ironwid*5/4,ironwid/2,4,ironwid,"lightgray") at Q.e |
| 98 |
line right ironwid*2/3 from S.T2 |
| 99 |
arrow left to S.T2 "svg_it(i`'svg_sub(2))" above |
| 100 |
line right ironwid*2/3 from S.T1 |
| 101 |
gap(up_ to 2nd last line.end) |
| 102 |
rlabel(-,"svg_it(v`'svg_sub(2))" wid 0.2,+) |
| 103 |
"svg_it(N`'svg_sub(2))" at S.w rjust |
| 104 |
|
| 105 |
box dashed rad ironwid/4 wid Q.wid ht Q.ht at Q |
| 106 |
arrow right arrowht from 0.5 between Q.n and Q.ne |
| 107 |
|
| 108 |
# move up ironwid/2 from Q.n |
| 109 |
move left 30bp__ from P.T1 |
| 110 |
move down ironwid/2 from Q.s |
| 111 |
] with .nw at Toprow.sw+(0,-0.2) # end Trans |
| 112 |
|
| 113 |
[ |
| 114 |
#Torus: circle rad 0.6; circle rad 0.4 at Torus |
| 115 |
r_ctr = 0.5 |
| 116 |
t_th = 0.2 |
| 117 |
w_th = 0.3 |
| 118 |
Torus: circle rad r_ctr thick t_th/(1bp__) |
| 119 |
{circle rad r_ctr thick Torus.thick-2*linethick outlined "lightgray" at Torus} |
| 120 |
|
| 121 |
TN: arcwinding(w_th,110,70,5, r_ctr,t_th,"lightgray") with .C at Torus |
| 122 |
"svg_it(T1)" at TN.T1 below; "svg_it(T2)" at TN.T2 below |
| 123 |
TW: arcwinding(w_th,160,200,4,-r_ctr,t_th,"lightgray") with .C at Torus |
| 124 |
"svg_it(T1)" at TW.T1 above; "svg_it(T2)" at TW.T2 below |
| 125 |
TE: arcwinding(w_th,20,-20,7,-r_ctr,t_th,"lightgray") with .C at Torus |
| 126 |
"svg_it(T1)" at TE.T1 above; "svg_it(T2)" at TE.T2 below |
| 127 |
] with .Torus at last []+(2,0) |
| 128 |
|
| 129 |
command "</g>" # end font |
| 130 |
.PE |