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.

cylinder2, cylinder3<br />

Purpose<br />

cylinder2, cylinder3<br />

Construction function for cylinder geometry object.<br />

Syntax<br />

Description<br />

c3 = cylinder3<br />

c2 = cylinder2<br />

c3 = cylinder3(r,h)<br />

c2 = cylinder2(r,h)<br />

c3 = cylinder3(r,h,...)<br />

c2 = cylinder2(r,h,...)<br />

c3 = cylinder3 generates a solid cylinder object, with radius and height equal to<br />

1, axis along the z-axis and bottom surface centered at the origin. cylinder3 is a<br />

subclass of cone3.<br />

c3 = cylinder3(r,h) generates a solid cylinder object with radius r and height h.<br />

The functions cylinder3/cylinder2 accept the following property/values:<br />

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

axis<br />

Vector of<br />

reals or cell<br />

array of<br />

strings<br />

[0 0] Local z-axis of the object<br />

const Cell array of {} Evaluation context for string inputs.<br />

strings<br />

pos<br />

Vector of [0 0] Position of the bottom surface<br />

reals or cell<br />

array of<br />

strings<br />

rot real or string 0 Rotational angle about axis (radians)<br />

For more information on input arguments and properties, see gencyl3.<br />

c2 = cylinder2(...) creates a surface cylinder object, from arguments as<br />

described for cylinder3. cylinder2 is a subclass of cone2.<br />

Cylinder objects have the following properties:<br />

TABLE 1-13: CYLINDER OBJECT PROPERTIES<br />

PROPERTY<br />

r<br />

DESCRIPTION<br />

Radius<br />

h<br />

Height<br />

x, y, z, xyz Position of the object. Components and vector forms<br />

ax2<br />

Rotational angle of symmetry axis<br />

48 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!