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.

ect1, rect2<br />

Purpose<br />

rect1, rect2<br />

Create rectangle geometry object.<br />

Syntax<br />

Description<br />

obj = rect2<br />

obj = rect1<br />

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

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

obj = rect2 creates a solid rectangle geometry object with all side lengths equal<br />

to 1, and the lower left corner at the origin. rect2 is a subclass of solid2<br />

obj = rect2(lx,ly,...) creates a solid rectangle object with side lengths equal<br />

to lx and ly, respectively, and the lower left corner at the origin. lx and ly are<br />

positive real scalars, or strings that evaluate to positive real scalars, given the<br />

evaluation context provided by the property Const.<br />

The function rect1 similarly creates curve rectangle objects.<br />

The functions rect2/rect1 accept the following property/values:<br />

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

base corner |<br />

center<br />

corner Positions the object either centered<br />

about pos or with the lower left<br />

corner at pos<br />

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

strings<br />

pos<br />

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

reals or cell<br />

array of<br />

strings<br />

rot Real or string 0 Rotational angle about pos (radians)<br />

obj = rect1(...) creates a curve circle geometry object with properties as given<br />

for the rect2 function. rect1 is a subclass of curve2.<br />

Rectangle objects have the following properties:<br />

TABLE 1-36: RECTANGLE OBJECT PROPERTIES<br />

PROPERTY<br />

lx, ly<br />

DESCRIPTION<br />

Side lengths.<br />

base<br />

Base point.<br />

x, y Position of the object.<br />

rot<br />

Rotational angle.<br />

375

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

Saved successfully!

Ooh no, something went wrong!