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.

geomplot<br />

2D Example<br />

Start by creating a simple geometry.<br />

clear fem<br />

c1 = circ2;<br />

l1 = curve2([-1,-1,1,1],[-1,1,-1,1]);<br />

p1 = point2(0,0.5);<br />

fem.draw.s.objs = {c1};<br />

fem.draw.c.objs = {l1};<br />

fem.draw.p.objs = {p1};<br />

fem.geom = geomcsg(fem);<br />

Plot the standard geometry plot with subdomains indicated as patches, and edge<br />

segments and vertices indicated by lines and markers, respectively.<br />

geomplot(fem), axis equal<br />

Remove patch plot of subdomains, add parameter direction for curves, subdomain<br />

numbers, and control polygons.<br />

geomplot(fem,'submode','off','edgearrow','on','pointmode',...<br />

'isolated','sublabels','on','ctrlmode','on')<br />

1D Example<br />

Start by creating a simple geometry.<br />

clear fem<br />

s1 = solid1([0 0.1 1]);<br />

p1 = point1(2);<br />

fem.draw.s.objs = {s1};<br />

fem.draw.p.objs = {p1};<br />

fem.geom = geomcsg(fem);<br />

The standard geometry plot with subdomains indicated as lines, and vertices<br />

indicated by markers.<br />

geomplot(fem), axis equal<br />

Change the color of the vertices to red, add vertex labeling, and change the vertex<br />

markers to diamonds.<br />

geomplot(fem,'pointcolor','r','pointlabels','on',...<br />

'pointmarker','diamond')<br />

axis equal<br />

Compatibility The properties pt, ct, ft, and st have been removed in FEMLAB 3.1.<br />

Cautionary<br />

The value numeric of the sublabels, edgelabels, and pointlabels properties<br />

was replaced by on in FEMLAB 1.1. The value numeric is still supported however,<br />

and is equivalent to on.<br />

235

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

Saved successfully!

Ooh no, something went wrong!