30.01.2013 Views

RF MODULE

RF MODULE

RF MODULE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating the Geometry in MATLAB<br />

To create the geometry, start COMSOL Multiphysics with MATLAB or initiate a<br />

MATLAB connection from the File menu. Open a new 3D model by selecting 3D from<br />

the Space dimension list in the Model Navigator and clicking OK. After running the<br />

script below from the command line, choose File>Import>Geometry Objects. In the<br />

dialog box that appears, enter the geometry object g7.<br />

lx = 1.827/2; ly = 3.015/2; e1 = ellip2(lx,ly);<br />

y0 = 1.142999999817202; x0 = sqrt((1-y0^2/ly^2)*lx^2);<br />

p1 = point2(x0, y0); p2 = scale(p1,1,-1);<br />

p3 = rotate(p1,pi); p4 = scale(p3,1,-1);<br />

g1 = solid2(geomcsg({e1},{},{p1},{p2},{p3},{p4}));<br />

lx2 = 1.016; ly2 = 2.286;<br />

r1 = solid2(geomcsg({rect2(lx2,ly2,'Base','center')},...<br />

{point2(0,-2.286/2)},{point2(1.016/2,0)},...<br />

{point2(0,2.286/2)},{point2(-1.016/2,0)}));<br />

z0 = 3.0; z1 = 11.0;<br />

wrk0 = geomgetwrkpln('quick',{'xy',z0});<br />

wrk1 = geomgetwrkpln('quick',{'xy',z1});<br />

t = cell(1,8);<br />

t{1} = 3; t{2} = 2; t{3} = 4; t{4} = 5;<br />

t{5} = 6; t{6} = 7; t{7} = 8; t{8} = 1;<br />

g2 = loft({r1 g1},'LoftEdge',t,...<br />

'wrkpln',{wrk0 wrk1},'loftmethod','linear');<br />

g3 = extrude(r1,'distance',3);<br />

g4 = extrude (g1,'distance',3,'wrkpln',wrk1);<br />

g5 = geomcomp({g2,g3,g4});<br />

g6 = geomdel(g5);<br />

g7 = scale(g5,0.01,0.01,0.01);<br />

geomplot(g7);<br />

128 | CHAPTER 3: <strong>RF</strong> AND MICROWAVE MODELS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!