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.

meshsweep<br />

opposite face pairs exist for the subdomain, an error is thrown and the user is<br />

asked to specify the source face.<br />

2 If there is at least one meshed face about the subdomain, the source face is<br />

determined according to the following.<br />

a The face with lowest geometric degree and face index of the meshed faces<br />

about the subdomain that is not a boundary face of another subdomain.<br />

b The face with lowest geometric degree and face index of the unmeshed faces.<br />

c The face with lowest geometric degree and lowest face index of all faces about<br />

the subdomain.<br />

Examples<br />

Create a swept mesh on a cylinder geometry specifying the element layer<br />

distribution in the sweep direction.<br />

fem.geom = cylinder3;<br />

fem.mesh = meshsweep(fem,'sourceface',{1 3},...<br />

'elsweeplayers',{1 logspace(0,1,11)-1});<br />

meshplot(fem);<br />

Create a swept mesh on a helix shaped geometry.<br />

fem.geom = helix3;<br />

fem.mesh = meshsweep(fem,'sourceface',{1 1});<br />

meshplot(fem);<br />

Create a mesh with both tetrahedrons and prisms using meshinit and meshsweep,<br />

respectively.<br />

fem.geom = block3 + cone3(0.3,1,pi/20,'pos',[1 0.5 0.5],...<br />

'axis',[1 0 0]) + cone3(0.3,1,pi/20,...<br />

'pos',[3 0.5 0.5],'axis',[-1 0 0]) + ...<br />

block3(1,1,1,'pos',[3 0 0]);<br />

fem.mesh = meshsweep(fem,'subdomain',[2 3],'sourceface',{2 7});<br />

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

meshplot(fem);<br />

Create a swept mesh with hexahedrons on a block geometry by meshing a source<br />

face prior to the meshsweep operation using the mapped quad mesher.<br />

fem.geom = block3;<br />

fem.mesh = meshmap(fem,'face',1);<br />

fem.mesh = meshsweep(fem,'meshstart',fem.mesh);<br />

meshplot(fem);<br />

See Also<br />

meshdel, meshinit, meshmap<br />

300 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!