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.

lock2, block3<br />

Purpose<br />

block2, block3<br />

Construction function for right-angled block geometry object.<br />

Syntax<br />

Description<br />

obj = block3<br />

obj = block2<br />

obj = block3(lx,ly,lz,...)<br />

obj = block2(lx,ly,lz,...)<br />

obj = block3 creates a right-angled solid block object with all side lengths equal<br />

to 1, one corner at the origin, and the local z-axis equal to the global z-axis. block3<br />

is a subclass of solid3.<br />

obj = block3(lx,ly,lz,...) creates a right-angled solid block geometry object<br />

with positive side lengths lx, ly, and lz. lx, ly, and lz are positive real scalars, or<br />

strings that evaluate to positive real scalars, given the evaluation context provided by<br />

the property const.<br />

The functions block3/block2 accept the following property/values:<br />

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

axis<br />

Vector of<br />

reals or cell<br />

array of<br />

strings<br />

base corner |<br />

center<br />

const Cell array of<br />

strings<br />

pos<br />

Vector of<br />

reals or cell<br />

array of<br />

strings<br />

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

corner Positions the object either centered<br />

about pos or with one corner in pos<br />

{} Evaluation context for string inputs<br />

[0 0] Position of the object<br />

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

axis sets the local z-axis, stated either as a directional vector of length 3, or as a<br />

1-by-2 vector of spherical coordinates. axis is a vector of real scalars, or a cell array<br />

of strings that evaluate to real scalars, given the evaluation context provided by the<br />

property const. See gencyl3 for more information on axis.<br />

pos sets the position of the object, either centered about the position or with one<br />

corner in the position. The corresponding values of base are center and corner.<br />

pos is a vector of real scalars, or a cell array of strings that evaluate to real scalars,<br />

given the evaluation context provided by the property const.<br />

37

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

Saved successfully!

Ooh no, something went wrong!