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.

square1, square2<br />

Purpose<br />

square1, square2<br />

Create square geometry objects.<br />

Syntax<br />

Description<br />

obj = square2<br />

obj = square1<br />

obj = square2(l,...)<br />

obj = square1(l,...)<br />

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

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

solid2.<br />

obj = square2(l,...) creates a solid square object with side lengths equal to l.<br />

l is a positive real scalar, or a string that evaluates to a positive real scalar, given the<br />

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

The function square1 similarly creates curve square objects.<br />

The functions square2/square1 accept the following property/values:<br />

TABLE 1-44: 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 in 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 = square1(...) creates a curve circle geometry object with properties as<br />

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

Square objects have the following properties:<br />

TABLE 1-45: SQUARE OBJECT PROPERTIES<br />

PROPERTY<br />

l<br />

DESCRIPTION<br />

Side length<br />

base<br />

Base point<br />

x, y Position of the object<br />

rot<br />

Rotational angle<br />

395

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

Saved successfully!

Ooh no, something went wrong!