21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

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.

meshextrude<br />

fem.geom = circ2;<br />

fem.mesh = meshinit(fem);<br />

fem1 = meshextrude(fem,'distance',1.3);<br />

Create a hexahedral mesh by extruding a quad mesh on a rectangle.<br />

fem.geom = rect2(1,2,'pos',[0 0]);<br />

fem.mesh = meshmap(fem);<br />

fem1 = meshextrude(fem,'distance',[1.3 2],...<br />

'displ',[0.4 0;0 -0.2],...<br />

'scale',[2 1;2 1.5],...<br />

'elextlayers',{5 [0 0.2 0.8 1]});<br />

meshplot(fem1);<br />

Cautionary<br />

See also<br />

Extruding a mesh with any scale factor equal to zero is not supported.<br />

extrude, meshembed, meshrevolve, femmesh<br />

262 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!