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 />

Purpose<br />

meshextrude<br />

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

Syntax<br />

Description<br />

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

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

fem1 = meshextrude(fem0,...) extrudes 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]= meshextrude(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 meshextrude function are given in the following<br />

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

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

PROPERTY VALUES DEFAULT DESCRIPTION<br />

Elextlayers 1-by-nd cell array Distribution of mesh element<br />

layers in extruded mesh<br />

Mcase integer 0 Mesh case number<br />

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

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

extruded mesh. The value of Elextlayers is a cell array where each entry<br />

corresponds to a section in the extruded geometry object. If a cell entry is a scalar,<br />

it defines the number of equally distributed mesh element layers that is generated<br />

for the corresponding extruded section. Alternatively, if a cell entry is a vector, it<br />

defines the distribution of the mesh element layers for the corresponding extruded<br />

section. The values in the vector, that are sorted and starts with 0, specify the<br />

placements, in relative arc length, of the mesh element layers. Note that more<br />

element layers might be introduced due to the division of the revolved geometry<br />

into sections. By default, the number of element layers is determined such that the<br />

distance of each layer is equal to the mean element size in the original 2D mesh.<br />

Extruding 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 extruded into 3D edge elements, 3D quadrilateral boundary elements, 3D prism<br />

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

Examples Create an extruded prism mesh on a cylinder of height 1.3.<br />

261

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

Saved successfully!

Ooh no, something went wrong!