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.

geom0, geom1, geom2, geom3<br />

Purpose<br />

geom0, geom1, geom2, geom3<br />

Low-level constructor functions for geometry objects.<br />

Syntax<br />

Description<br />

g = geom3(vertex,pvertex,edge,pedge,face,mfd,pcurve,...)<br />

[g,...] = geom3(g3,...)<br />

g = geom2(vertex,edge,curve)<br />

[g,...] = geom2(g2,...)<br />

g = geom1(p,ud)<br />

[g,...] = geom1(g1,...)<br />

g = geom0(p)<br />

g3 = geom3(vertex,pvertex,edge,pedge,face,mfd,pcurve,...) creates a<br />

geom3 object.<br />

[g,...] = geom3(g3,...) coerces any 3D geometry object g3 to a geom3 object.<br />

c = geom2(vertex,edge,curve,...) creates a geom2 object.<br />

[g,...] = geom2(g2,...) coerces any 2D geometry object to a geom2 object.<br />

c = geom1(vtx) creates a 1D geometry object from the property vtx.<br />

[g,...] = geom1(g1,...) coerces any 1D geometry object to a geom1 object.<br />

g = geom0(p) creates a 0D geometry object, where p is a matrix of size 0-by-1.<br />

g = geom0(g1,...) coerces any 0D geometry object to a geom0 object.<br />

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

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

Out stx | ftx |<br />

ctx | ptx<br />

{} Cell array of output names.<br />

3D Geometry Object Properties<br />

vertex is a 5-by-nv matrix representing the vertices of the 3D geometry. Rows 1,<br />

2, and 3 provide the 3D coordinates of the vertices. Row 4 provides the subdomain<br />

number. Row 5 contains a relative local tolerance for the entity. For non-tolerant<br />

entities the tolerance is NaN.<br />

pvertex is a 6-by-npv matrix containing embeddings of vertices in faces. Row 1<br />

contains the vertex index (i.e. column in VERTEX), rows 2 and 3 contain (s,t)<br />

coordinates of the vertex on the face, row 4 contains a face index, and row 5<br />

contains the manifold index into mfd. Row 6 contains a relative local tolerance for<br />

the entity.<br />

196 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!