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.

face3<br />

Examples<br />

Create an untrimmed triangular patch in the plane, y=1.<br />

f1 = face3([0 1 0]',[1 1 1]',[0 0 1]');<br />

Create a circular face as a trimmed patch in the plane, z=0.<br />

f2 = face3(circ2(0,20,10));<br />

A patch that can constitute the wall of a cylinder, is created by setting the control<br />

weights explicitly, as in the command below.<br />

f3 = face3([-1 -1;-1 -1;0 0],[0 0;-1 -1;-1 -1],...<br />

[0 1; 0 1; 0 1],[1 1;1/sqrt(2) 1/sqrt(2);1 1]);<br />

To generate a third degree rectangular patch, the following commands can be given.<br />

[x,y] = meshgrid(-3:3:6,0:2:6);<br />

z = rand(size(x));<br />

f4 = face3(x,y,z);<br />

Compatibility<br />

See Also<br />

The FEMLAB 2.3 syntax is obsolete but still supported.<br />

curve2, curve3, geom0, geom1, geom2, geom3, geomcsg, point1, point2,<br />

point3<br />

118 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!