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.

ellip1, ellip2<br />

Purpose<br />

ellip1, ellip2<br />

Create ellipse geometry object.<br />

Syntax<br />

Description<br />

obj = ellip2<br />

obj = ellip1<br />

obj = ellip2(a,b,...)<br />

obj = ellip1(a,b,...)<br />

obj = ellip2 creates a solid ellipse geometry object with center at the origin and<br />

semi-axes equal to 1. ellip2 is a subclass of solid2.<br />

obj = ellip2(a,b,...) creates an ellipse object with semi-axes equal to a and b,<br />

respectively, centered at the origin. a and b are positive real scalars, or strings that<br />

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

property const.<br />

The functions ellip2/ellip1 accept the following property/values:<br />

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

base corner |<br />

center<br />

center Positions the object either centered<br />

about pos or with the lower left<br />

corner of surrounding box 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 = ellip1(...) creates a curve circle geometry object with properties as given<br />

for the ellip2 function. ellip1 is a subclass of curve2.<br />

Ellipse objects have the following properties:<br />

TABLE 1-17: ELLIPSE OBJECT PROPERTIES<br />

PROPERTY<br />

DESCRIPTION<br />

a, b Semi-axes<br />

x, y Position of the object<br />

rot<br />

Rotational angle<br />

In addition, all 2D geometry object properties are available. All properties can be<br />

accessed using the syntax get(object,property). See geom2 for details.<br />

89

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

Saved successfully!

Ooh no, something went wrong!