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 />

The curvature of one of the edges are obtained via<br />

figure,plot(0:0.1:1,c(:,1))<br />

The command below retrieves the number of primitive objects (vertices, edges and<br />

subdomains) from geometry file (geomfile) cardg:<br />

no = geominfo('cardg','out',{'no'},'od',[0 1 2])<br />

1D Geometries<br />

A 1D geometry consisting of two subdomains, is created by the following<br />

command.<br />

g1 = solid1([-1 0.2 1])<br />

Since no parameter domain exist only coordinates of vertices can be retrieved. The<br />

up and down subdomain of every vertex is given in ud, and the vertex-subdomain<br />

adjacency information is given in adj.<br />

[xx,ud,adj] = geominfo(g1,'out',{'xx' 'ud' 'adj'},...<br />

'par',{2},'odp',[0;1])<br />

Note that the same information is given in ud and adj. The matrix adj is directly<br />

obtained from ud via the command:<br />

adj = sparse(repmat(1:3,2,1),ud+1,[ones(1,3);-1*ones(1,3)])<br />

Compatibility<br />

See Also<br />

The FEMLAB 2.3 function flgeomepol is obsolete.<br />

geomcsg, geomedit, meshinit<br />

230 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!