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.

elevate<br />

Purpose<br />

elevate<br />

Elevate degrees of 2D geometry object Bézier curves.<br />

Syntax<br />

Description<br />

ge = elevate(g,en,d)<br />

[ge,tl] = elevate(g,en,d)<br />

ge = elevate(g,dl)<br />

[ge,tl] = elevate(g,dl)<br />

ge = elevate(g,en,d) elevates the degrees of edges en in the 2D geometry<br />

object g, using the degree steps d. en is a vector that specifies the edge numbers of<br />

the curves to be degree elevated, and d is the corresponding vector that specifies the<br />

degrees of elevation, so that curve number en(i) is elevated by d(i) degrees.<br />

ge = elevate(g,dl) degree elevates the Bézier curve defined by g.rb{i}(:,k)<br />

and g.wt{i}(:,k), by the number of degrees specified in dl{i}(:,k). dl is a cell<br />

array of the same size as rb and wt. See geom2 for details on these properties. The<br />

first and last entries in dl must be empty, since there are no curves of degree 0, and<br />

curves of maximum degree cannot be degree elevated.<br />

[ge,tl] = elevate(g,...) additionally returns the cell array tl, of length 3,<br />

containing permutation vectors for vertices, edges and subdomains, respectively.<br />

Entry i of such a vector contains the entity number j of the geometry object g from<br />

which the entity i in ge originates.<br />

Examples<br />

Elevate the degree of edge 1 and 3 in a circle, by one degree.<br />

c1 = circ2;<br />

figure, geomplot(c1,'edgelabels','on','ctrlmode','on');<br />

axis equal<br />

[c2,tl] = elevate(c1,[1 3],[1 1]);<br />

figure, geomplot(c2,'edgelabels','on','ctrlmode','on');<br />

axis equal<br />

An alternative way of obtaining the same degree elevated circle, is to use the input<br />

argument dl, as is done below.<br />

c3 = elevate(c1,{[] [] [1 0 1 0] []});<br />

figure, geomplot(c3,'edgelabels','on','ctrlmode','on');<br />

axis equal<br />

See Also<br />

geom0, geom1, geom2, geom3<br />

78 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!