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.

geominfo<br />

TABLE 1-67: LOW-LEVEL GEOMETRY FUNCTIONS<br />

FUNCTION<br />

flgeomff1<br />

flgeomff2<br />

flgeomfn<br />

flgeomfs<br />

flgeomnbs<br />

flgeomnes<br />

flgeomnmr<br />

flgeomnv<br />

flgeomsdim<br />

flgeomse<br />

flgeomud<br />

flgeomvtx<br />

DESCRIPTION<br />

Get first fundamental form from derivatives<br />

Get second fundamental form from derivatives<br />

Get normals from face derivatives<br />

Get parameter space size of geometry face<br />

Get number of geometry boundary segments<br />

Get number of geometry edge segments<br />

Get number of subdomains<br />

Get number of vertices<br />

Get space-dimension of geometry object<br />

Get end-point indices of geometry edges<br />

Get up-down subdomain numbering of geometry faces<br />

Get coordinates for geometry vertices<br />

For details on the syntaxes for calling these functions, write help followed by the<br />

function name on the command line.<br />

Examples<br />

3D Geometries<br />

To demonstrate the geominfo command, create a solid block object with a circular<br />

curve object on top, using the following commands.<br />

g3 = geomcsg({block3},{},...<br />

{move(embed(circ1(0.3,'pos',[0.5 0.5])),[0 0 1])})<br />

geomplot(g3,'facelabels','on')<br />

The generated object g3 is a solid 3D object consisting of 1 subdomain, 7 faces, 16<br />

edges and 12 vertices. These can be obtained using geominfo with the arguments<br />

given below.<br />

[gd,no,rng,ud,nbs] = geominfo(g3,...<br />

'out',{'gd' 'no' 'rng' 'ud' 'nbs'},'od',0:3);<br />

From the arguments gd and no, it is clear that g3 is a 3D object with the number of<br />

entities as above. The number of faces is also given in nbs, that is, the number of<br />

boundary segments. The parameter range of both faces and edges are given in rng,<br />

but the range for faces is always [0,1]×[0,1] for geometry objects, and is therefore<br />

seldom of interest. The parameter range of the curves, however, are of importance<br />

when setting up parameter arrays for edge information evaluation below.<br />

228 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!