21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

geomgetwrkpln<br />

Purpose<br />

geomgetwrkpln<br />

Retrieves coordinates for a work plane.<br />

Syntax<br />

Description<br />

[p_wrkpln,localsys] = geomgetwrkpln(type,args)<br />

[p_wrkpln,localsys] = geomgetwrkpln(type,args)<br />

returns the coordinate matrix p_wrkpln, spanning a plane, and the local coordinate<br />

system localsys of that plane, according to the string type and the cell array args.<br />

The columns of the 3-by-3 coordinate matrix p_wrkpln contain point coordinates<br />

for 3 non co-linear points spanning a work plane with a local z-direction defined by<br />

lz = cross(p(:,2)-p(:,1),(p(:,3)-p(:,1)). The vector lx =<br />

p(:,2)-p(:,1) is defined to be the local x-axis, and the local y-axis is defined as ly<br />

= cross(lz,p(:,2)-p(:,1)). The corresponding normalized unit vectors are<br />

nlx, nly, and nlz, respectively.<br />

The local coordinate system localsys is formed as localsys =<br />

[p(:,1),nlx,nly,nlz], where p(:,1) is the position of the local origin and nlx,<br />

nly, and nlz specifies unit vectors in the direction of the positive local coordinate<br />

axes.<br />

Work Plane of Type Explicit<br />

[p_wrkpln,localsys] = geomgetwrkpln('explicit',{p_wrkpln1})<br />

copies the coordinates p_wrkpln1 and forms the corresponding local coordinate<br />

system.<br />

Work Plane of Type Quick<br />

[p_wrkpln,localsys] = geomgetwrkpln('quick',{coordplane,offset})<br />

forms a work plane parallel to the coordinate plane defined by coordplane, which<br />

can have any of the values xy, yz, or zx. The real scalar offset specifies the signed<br />

offset from the coordinate plane.<br />

Work Plane of Type FaceParallel<br />

[p_wrkpln,localsys] =<br />

geomgetwrkpln('faceparallel',{g,fn,dir,offset})<br />

creates a work plane, parallel to face fn in 3D geometry object g. The direction dir<br />

takes the values +1 or -1 and specifies if the local z-axis, localsys(:,4), should be<br />

in the direction of the face’s normal, or reversed normal, respectively. The scalar<br />

offset specifies the displacement along the local z-axis for the work plane with<br />

218 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!