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.

meshrevolve<br />

Purpose<br />

meshrevolve<br />

Revolve a 2D mesh object into a 3D mesh object.<br />

Syntax<br />

Description<br />

fem1 = meshrevolve(fem0,...)<br />

[mesh,geom]= meshrevolve(fem,’Out’,{’mesh’,’geom’},...)<br />

fem1 = meshrevolve(fem0,...) revolves the 2D geometry object in fem0.geom<br />

and the 2D mesh object in fem0.mesh, into a 3D geometry object and a 3D mesh<br />

object stored in fem1.geom and fem1.mesh, respectively, according to the given<br />

parameters.<br />

[geom,mesh]= meshrevolve(fem,’Out’,{’geom’,’mesh’},...) returns the<br />

3D geometry object in geom and the 3D mesh object in mesh.<br />

Valid property/value pairs for the meshrevolve function are given in the following<br />

table. In addition, all revolve parameters are supported and are passed to revolve<br />

for creating the revolved 3D geometry object.<br />

PROPERTY VALUES DEFAULT DESCRIPTION<br />

elrevlayers scalar | vector Distribution of mesh element<br />

layers in revolved mesh<br />

mcase integer 0 Mesh case number<br />

out fem | mesh | geom fem Output variables<br />

The property elrevlayers defines the distribution of the mesh element layers in<br />

the revolved mesh. If the value of elrevlayers is a scalar, it defines the number of<br />

equally distributed mesh element layers in the revolved mesh. Alternatively, if<br />

elrevlayers is a vector, it defines the distribution of the mesh element layers in the<br />

revolved mesh. The values in the vector, that are sorted and starts with 0, specifies<br />

the placements, in relative arc length, of the mesh element layers. By default, the<br />

number of element layers is determined such that the distance of each layer is equal<br />

to the mean size of the elements in the original 2D mesh.<br />

Revolving a 2D mesh object into a 3D mesh object, the 2D vertex elements, the 2D<br />

boundary elements, the 2D triangular elements, and the 2D quadrilateral elements,<br />

are revolved into 3D edge elements, 3D quadrilateral boundary elements, 3D prism<br />

elements, and 3D hexahedral elements, respectively.<br />

Examples<br />

Create a revolved prism mesh on a torus:<br />

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

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

fem1 = meshrevolve(fem);<br />

293

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

Saved successfully!

Ooh no, something went wrong!