21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

evolve<br />

Purpose<br />

revolve<br />

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

Syntax<br />

Description<br />

g3 = revolve(g2,..)<br />

g3 = revolve(g2,...) revolves the 2D geometry object g2 into a 3D geometry<br />

object g3 according to given parameters.<br />

The function revolve accepts the following property/values:<br />

TABLE 1-37: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY VALUES DEFAULT DESCRIPTION<br />

angles 1-by-2 vector [0 2*pi] Revolution angle<br />

polres scalar 50 Polygon resolution<br />

revaxis 2-by-2 matrix [0 0;<br />

0 1]<br />

wrkpln 3-by-3 matrix [0 1 0;<br />

0 0 1;<br />

0 0 0]<br />

Revolution axis<br />

Work plane for 2D geometry<br />

cross-section<br />

The 3D object g3 is a revolved object, where the 2D geometry object g2 lying in<br />

the plane defined by the property wrkpln is revolved about the revolution axis<br />

between the angles defined by the property angles. angles can also be given as a<br />

scalar, in which case the first angle is assumed to be 0.<br />

The property revaxis is a 2-by-2 matrix where the first column specifies a point on<br />

the axis and the second column specifies the direction of the revolution axis.<br />

polres defines the number of parameter value pairs in the polygon representations<br />

of the edges.<br />

Examples<br />

Create torus about the y-axis:<br />

re = revolve(circ2(1,'pos',[2 0]));<br />

Create revolved object from zx-plane:<br />

p_wrkpln = geomgetwrkpln('quick',{'zx',10});<br />

ax = [0 1;0.5 2]';<br />

g3 = revolve(circ1(0.4,'pos',[1 0]),'angles',[-pi/3 pi/3],...<br />

'revaxis',ax,'wrkpln',p_wrkpln);<br />

geomplot(g3);<br />

See Also<br />

extrude, geom0, geom1, geom2, geom3, geomcsg, geomgetwrkpln<br />

377

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

Saved successfully!

Ooh no, something went wrong!