21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

meshdel<br />

Purpose<br />

meshdel<br />

Delete elements in mesh.<br />

Syntax<br />

Description<br />

fem.mesh = meshdel(fem,...)<br />

fem = meshdel(fem,’Out’,{’fem’},...)<br />

fem.mesh = meshdel(fem,...) deletes elements from the mesh object fem.mesh<br />

belonging to domains according to the specified properties.<br />

fem = meshdel(fem,'out',{'fem'},...) modifies the fem structure to include<br />

the new mesh object in fem.mesh.<br />

The function meshdel accepts the following property/values:<br />

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

Deladj on | off on Specifies if elements<br />

belonging to adjacent<br />

domains of lower<br />

dimensions are deleted as<br />

well<br />

Edge integer vector |<br />

all | none<br />

Face integer vector |<br />

all | none<br />

none<br />

none<br />

Specifies the edge domains<br />

for which the elements are<br />

deleted<br />

Specifies the face domains<br />

for which the elements are<br />

deleted<br />

Out fem | mesh mesh Output variables<br />

Point integer vector |<br />

all | none<br />

Subdomain integer vector |<br />

all | none<br />

none<br />

none<br />

Specifies the vertex<br />

domains for which the<br />

elements are deleted<br />

Specifies the subdomains<br />

for which the elements are<br />

deleted<br />

Deleting elements corresponding to a specific domain, all elements on adjacent<br />

domains of higher dimension are deleted as well.<br />

Examples<br />

Create a mesh of a 2D geometry with 3 subdomains.<br />

fem.geom = rect2+circ2;<br />

geomplot(fem,'sublabels','on','edgelabels','on')<br />

fem.mesh = meshinit(fem);<br />

Delete the elements belonging to subdomain 3 only.<br />

253

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

Saved successfully!

Ooh no, something went wrong!