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.

sphere3, sphere2<br />

Purpose<br />

sphere3, sphere2<br />

Construction function for spherical geometry objects.<br />

Syntax<br />

Description<br />

obj = sphere3<br />

obj = sphere2<br />

obj = sphere3(r)<br />

obj = sphere2(r)<br />

obj = sphere3(r,...)<br />

obj = sphere2(r,...)<br />

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

semi-axes equal to 1. sphere3 is a subclass of ellipsoid3.<br />

obj = sphere3(r,...) creates a solid sphere object with radius r. r is a positive<br />

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

context provided by the property const.<br />

The functions sphere3/sphere2 accept the following property/values:<br />

TABLE 1-41: 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 object<br />

reals or cell<br />

array of<br />

strings<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 center of the object. pos is a vector of real scalars, or a<br />

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

provided by the property const.<br />

rot is an intrinsic rotational angle for the object, about its local z-axis provided by<br />

the property axis. pos is a real scalar, or a string that evaluate to a real scalar, given<br />

392 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!