| 1 |
% galvanometro-inducao.mp |
| 2 |
% Pedro Sebastiao |
| 3 |
% 2008 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
% bash: export TEX=latex |
| 8 |
% tcsh: setenv TEX latex |
| 9 |
|
| 10 |
verbatimtex |
| 11 |
\documentclass{article} |
| 12 |
\usepackage{beton,concmath,ccfonts} |
| 13 |
\begin{document} |
| 14 |
etex |
| 15 |
|
| 16 |
beginfig(1); |
| 17 |
color orig, axxc, ayyc, azzc,hum,hdois,pnove,pdez; |
| 18 |
color field, nalfa, ngamma, alfacnt, gammacnt, nazy, nax,pum,pdois,ptres,pquatro,pcinco,pseis,psete,poito,zpos,zppos,gammacnt; |
| 19 |
path alfa, gamma, circ; |
| 20 |
numeric nalfad, theta, radius, gammang, xxsize, yysize, zzsize, phi,teta; |
| 21 |
numeric xxpos, yypos, zzpos, fieldpos, deltarad, deltapos,inc,resize,sum,sdois; |
| 22 |
numeric thetarad, thetapos, nalfapos, ngammapos,aux,alpha,ia,iz; |
| 23 |
numeric etalpharad, etalphapos, alphapos, gammapos; |
| 24 |
picture xxlabel, yylabel, zzlabel, fieldlabel, alphalabel; |
| 25 |
picture rlabel, ngammalabel, etalphalabel, philabel; |
| 26 |
picture gammalabel, thetalabel; |
| 27 |
|
| 28 |
f := (2,2.5,2.0); |
| 29 |
% f := (2,2,20.0); |
| 30 |
Spread := 100; |
| 31 |
xxsize = 1.1; |
| 32 |
xxpos = 6; |
| 33 |
yysize = 1.1; |
| 34 |
yypos = 6; |
| 35 |
zzsize = 1; |
| 36 |
zzpos = 4; |
| 37 |
field = (0.7,0,0.3); |
| 38 |
fieldpos = 2; |
| 39 |
deltarad = 0.45; |
| 40 |
deltapos = 3; |
| 41 |
nalfad = 1.0; |
| 42 |
theta = 25; |
| 43 |
thetarad = 0.3; |
| 44 |
thetapos = 2; |
| 45 |
nalfapos = 7; |
| 46 |
gammang = 65; |
| 47 |
ngammapos = 7; |
| 48 |
etalpharad = 0.4; |
| 49 |
etalphapos = 2; |
| 50 |
alphapos = 6; |
| 51 |
gammapos = 0; |
| 52 |
radius =0.5; |
| 53 |
alpha := 60; |
| 54 |
|
| 55 |
xxlabel = btex $x$ etex; |
| 56 |
yylabel = btex $y$ etex; |
| 57 |
zzlabel = btex $z$ etex; |
| 58 |
alphalabel = btex $2\alpha$ etex; |
| 59 |
fieldlabel = btex $\mathbf{B}$ etex; |
| 60 |
thetalabel = btex $\theta$ etex; |
| 61 |
rlabel = btex $r$ etex; |
| 62 |
ngammalabel = btex $\vec{n}_\gamma$ etex; |
| 63 |
etalphalabel= btex $\eta_\alpha$ etex; |
| 64 |
philabel = btex $\phi$ etex; |
| 65 |
gammalabel = btex $\gamma$ etex; |
| 66 |
orig = (0,0,0); |
| 67 |
axxc = (xxsize,0,0); |
| 68 |
ayyc = (0,yysize,0); |
| 69 |
azzc = (0,0,zzsize); |
| 70 |
hum = 0.9*azzc; |
| 71 |
hdois = -0.9*azzc; |
| 72 |
resize:=0.85; |
| 73 |
|
| 74 |
|
| 75 |
pum := (resize*cosd(alpha),resize*sind(alpha),0.9); |
| 76 |
pdois := (-resize*cosd(alpha),resize*sind(alpha),0.9); |
| 77 |
ptres :=(resize*cosd(alpha),resize*sind(alpha),-0.9); |
| 78 |
pquatro :=(-resize*cosd(alpha),resize*sind(alpha),-0.9); |
| 79 |
draw rp(pum)..rp(ptres); |
| 80 |
draw rp(pdois)..rp(pquatro); |
| 81 |
pcinco := (resize*cosd(alpha),resize*sind(-alpha),0.9); |
| 82 |
pseis := (-resize*cosd(alpha),resize*sind(-alpha),0.9); |
| 83 |
psete :=(resize*cosd(alpha),resize*sind(-alpha),-0.9); |
| 84 |
poito :=(-resize*cosd(alpha),resize*sind(-alpha),-0.9); |
| 85 |
draw rp(pcinco)..rp(psete); |
| 86 |
draw rp(pseis)..rp(poito); |
| 87 |
|
| 88 |
anglinen( pum, pdois, hum, resize, alphalabel, 4 ); |
| 89 |
anglinen( ptres, pquatro, -hum, resize, "", deltapos ); |
| 90 |
anglinen( pcinco, pseis, hum, resize, "", deltapos ); |
| 91 |
anglinen( psete, poito, -hum, resize, "", deltapos ); |
| 92 |
|
| 93 |
draw rp(hum)..rp(pdois) dashed evenly; |
| 94 |
draw rp(hum)..rp(pcinco) dashed evenly; |
| 95 |
|
| 96 |
alpha:=60; |
| 97 |
resize:=0.80; |
| 98 |
|
| 99 |
pickup pencircle scaled 3; |
| 100 |
|
| 101 |
pum := (resize*cosd(alpha),resize*sind(alpha),0.9); |
| 102 |
pdois := (-resize*cosd(alpha),-resize*sind(alpha),0.9); |
| 103 |
ptres :=(resize*cosd(alpha+180),-resize*sind(alpha),-0.9); |
| 104 |
pquatro :=(resize*cosd(alpha),resize*sind(alpha),-0.9); |
| 105 |
draw rp(pum)..rp(pdois); |
| 106 |
draw rp(pdois)..rp(ptres); |
| 107 |
draw rp(ptres)..rp(pquatro); |
| 108 |
draw rp(pquatro)..rp(pum); |
| 109 |
|
| 110 |
pickup pencircle scaled 1.5; |
| 111 |
resize:=0.85; |
| 112 |
|
| 113 |
for ia=60 step 10 until (120): |
| 114 |
for iz=-0.0 step 1.4 until (0.71): |
| 115 |
pum := (resize*cosd(ia),resize*sind(ia),iz); |
| 116 |
pdois := (cosd(ia),sind(ia), iz); |
| 117 |
ptres := (resize*cosd(ia+180),resize*sind(ia+180),iz); |
| 118 |
pquatro := (cosd(ia+180),sind(ia+180), iz); |
| 119 |
drawarrow rp(pum)..rp(pdois) withcolor red; |
| 120 |
draw rp(pdois)..rp(pdois+(0,yysize,0)) withcolor red; |
| 121 |
drawarrow rp(pquatro)..rp(ptres) withcolor red; |
| 122 |
draw rp(pquatro-(0,yysize,0))..rp(pquatro) withcolor red; |
| 123 |
hdois:=pum; |
| 124 |
pcinco := (0.5*resize*cosd(ia),0.5*resize*sind(ia),iz); |
| 125 |
pseis := (0.5*resize*cosd(360-ia),0.5*resize*sind(360-ia),iz); |
| 126 |
pdez := (resize*cosd(360-ia),resize*sind(360-ia),iz); |
| 127 |
for i=0 step 0.01 until 1: |
| 128 |
poito := ((1-i)**3)*pum+3*i*((1-i)**2)*pcinco+3*(i**2)*(1-i)*pseis+(i**3)*pdez; |
| 129 |
draw rp(hdois)..rp(poito) withcolor red; |
| 130 |
hdois:=poito; |
| 131 |
endfor |
| 132 |
endfor |
| 133 |
endfor |
| 134 |
|
| 135 |
for ia=40 step 10 until (50): |
| 136 |
for iz=-0.0 step 1.4 until (0.71): |
| 137 |
pum := (resize*cosd(ia),resize*sind(ia),iz); |
| 138 |
pdois := (cosd(ia),sind(ia), iz); |
| 139 |
ptres := (resize*cosd(ia+180),resize*sind(ia+180),iz); |
| 140 |
pquatro := (cosd(ia+180),sind(ia+180), iz); |
| 141 |
drawarrow rp(pum)..rp(pdois) withcolor black; |
| 142 |
draw rp(pdois)..rp(pdois+(0,yysize,0)) withcolor black; |
| 143 |
drawarrow rp(pquatro)..rp(ptres) withcolor black; |
| 144 |
draw rp(pquatro-(0,yysize,0))..rp(pquatro) withcolor black; |
| 145 |
hdois:=pum; |
| 146 |
pcinco := (0.5*resize*cosd(ia),0.5*resize*sind(ia),iz); |
| 147 |
pseis := (0.5*resize*cosd(360-ia),0.5*resize*sind(360-ia),iz); |
| 148 |
pdez := (resize*cosd(360-ia),resize*sind(360-ia),iz); |
| 149 |
for i=0 step 0.01 until 1: |
| 150 |
poito := ((1-i)**3)*pum+3*i*((1-i)**2)*pcinco+3*(i**2)*(1-i)*pseis+(i**3)*pdez; |
| 151 |
draw rp(hdois)..rp(poito) withcolor black; |
| 152 |
hdois:=poito; |
| 153 |
endfor |
| 154 |
endfor |
| 155 |
endfor |
| 156 |
for ia=130 step 10 until (140): |
| 157 |
for iz=-0.0 step 1.4 until (0.71): |
| 158 |
pum := (resize*cosd(ia),resize*sind(ia),iz); |
| 159 |
pdois := (cosd(ia),sind(ia), iz); |
| 160 |
ptres := (resize*cosd(ia+180),resize*sind(ia+180),iz); |
| 161 |
pquatro := (cosd(ia+180),sind(ia+180), iz); |
| 162 |
drawarrow rp(pum)..rp(pdois) withcolor black; |
| 163 |
draw rp(pdois)..rp(pdois+(0,yysize,0)) withcolor black; |
| 164 |
drawarrow rp(pquatro)..rp(ptres) withcolor black; |
| 165 |
draw rp(pquatro-(0,yysize,0))..rp(pquatro) withcolor black; |
| 166 |
hdois:=pum; |
| 167 |
pcinco := (0.5*resize*cosd(ia),0.5*resize*sind(ia),iz); |
| 168 |
pseis := (0.5*resize*cosd(360-ia),0.5*resize*sind(360-ia),iz); |
| 169 |
pdez := (resize*cosd(360-ia),resize*sind(360-ia),iz); |
| 170 |
for i=0 step 0.01 until 1: |
| 171 |
poito := ((1-i)**3)*pum+3*i*((1-i)**2)*pcinco+3*(i**2)*(1-i)*pseis+(i**3)*pdez; |
| 172 |
draw rp(hdois)..rp(poito) withcolor black; |
| 173 |
hdois:=poito; |
| 174 |
endfor |
| 175 |
endfor |
| 176 |
endfor |
| 177 |
|
| 178 |
|
| 179 |
ia=60; |
| 180 |
iz = 0.7; |
| 181 |
pnove := (resize*cosd(ia),resize*sind(ia),iz); |
| 182 |
pdez := (resize*cosd(360-ia),resize*sind(360-ia),iz); |
| 183 |
pcinco := (0.5*resize*cosd(ia),0.5*resize*sind(ia),iz); |
| 184 |
pseis := (0.5*resize*cosd(360-ia),0.5*resize*sind(360-ia),iz); |
| 185 |
pickup pencircle scaled 5.5; |
| 186 |
% draw rp(pdois); |
| 187 |
% draw rp(pquatro); |
| 188 |
% draw rp(pnove); |
| 189 |
% draw rp(pdez); |
| 190 |
|
| 191 |
pickup pencircle scaled 0.5; |
| 192 |
|
| 193 |
draw rigorouscircle( (0,0,0), (0,0,1), 1) dashed evenly; |
| 194 |
resize:=1; |
| 195 |
alpha := 60; |
| 196 |
|
| 197 |
iz:=0.0; |
| 198 |
pum := (resize*cosd(alpha),resize*sind(alpha),iz); |
| 199 |
pdois := (-resize*cosd(alpha),resize*sind(alpha),iz); |
| 200 |
ptres :=(resize*cosd(alpha),resize*sind(alpha),-iz); |
| 201 |
pquatro :=(-resize*cosd(alpha),resize*sind(alpha),-iz); |
| 202 |
pcinco := (resize*cosd(alpha),resize*sind(-alpha),iz); |
| 203 |
pseis := (-resize*cosd(alpha),resize*sind(-alpha),iz); |
| 204 |
psete :=(resize*cosd(alpha),resize*sind(-alpha),-iz); |
| 205 |
poito :=(-resize*cosd(alpha),resize*sind(-alpha),-iz); |
| 206 |
|
| 207 |
anglinen( pum, pdois, hum-(0.9-iz)*azzc, resize, "", deltapos ); |
| 208 |
anglinen( ptres, pquatro, -hum+(0.9-iz)*azzc, resize, "", deltapos ); |
| 209 |
anglinen( pcinco, pseis, hum-(0.9-iz)*azzc, resize, "", deltapos ); |
| 210 |
anglinen( psete, poito, -hum+(0.9-iz)*azzc, resize, "", deltapos ); |
| 211 |
|
| 212 |
resize:=0.85; |
| 213 |
alpha := 60; |
| 214 |
pickup pencircle scaled 0.5; |
| 215 |
iz:=0.0; |
| 216 |
pum := (resize*cosd(alpha),resize*sind(alpha),iz); |
| 217 |
pdois := (-resize*cosd(alpha),resize*sind(alpha),iz); |
| 218 |
ptres :=(resize*cosd(alpha),resize*sind(alpha),-iz); |
| 219 |
pquatro :=(-resize*cosd(alpha),resize*sind(alpha),-iz); |
| 220 |
pcinco := (resize*cosd(alpha),resize*sind(-alpha),iz); |
| 221 |
pseis := (-resize*cosd(alpha),resize*sind(-alpha),iz); |
| 222 |
psete :=(resize*cosd(alpha),resize*sind(-alpha),-iz); |
| 223 |
poito :=(-resize*cosd(alpha),resize*sind(-alpha),-iz); |
| 224 |
|
| 225 |
anglinen( pum, pdois, hum-(0.9-iz)*azzc, resize, "", deltapos ); |
| 226 |
anglinen( ptres, pquatro, -hum+(0.9-iz)*azzc, resize, "", deltapos ); |
| 227 |
anglinen( pcinco, pseis, hum-(0.9-iz)*azzc, resize, "", deltapos ); |
| 228 |
anglinen( psete, poito, -hum+(0.9-iz)*azzc, resize, "", deltapos ); |
| 229 |
|
| 230 |
|
| 231 |
pickup pencircle scaled 1; |
| 232 |
drawarrow rp(-azzc)..rp(1.3*azzc); |
| 233 |
% drawarrow rp(-axxc)..rp(axxc); |
| 234 |
% drawarrow rp(-ayyc)..rp(ayyc); |
| 235 |
pickup pencircle scaled 1.5; |
| 236 |
% draw rp(alfacnt); |
| 237 |
% draw rp(gammacnt); |
| 238 |
% produce_auto_scale; |
| 239 |
endfig; |
| 240 |
|
| 241 |
verbatimtex |
| 242 |
\end{document} |
| 243 |
etex |
| 244 |
|
| 245 |
end; |