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.

meshmap<br />

HAUTO SCALE<br />

FACTOR<br />

3 0.55<br />

4 0.8<br />

5 1<br />

6 1.5<br />

7 1.9<br />

8 3<br />

9 5<br />

Use the property subdomain in 2D and face in 3D to specify the subdomains/faces<br />

to be meshed. If you use this property together with the meshstart property, the<br />

value auto means that all subdomains/faces that are not meshed in the starting<br />

mesh are meshed, none means that no further subdomains/faces are meshed, and<br />

all means that all subdomains/faces are meshed (or remeshed). It is also possible<br />

to specify the subdomains/faces to be meshed (or remeshed) using a vector of<br />

subdomain/face indices.<br />

The meshstart property is used when meshing a geometry interactively. The value<br />

of this property is the starting mesh of the meshing operation.<br />

Note that for the mapping technique to work, opposite edges require the same<br />

number of edge elements. If this requirement is not met by the specified values in<br />

edgelem, an error is generated.<br />

Examples<br />

Create a mapped quad mesh on a geometry where all subdomains are topologically<br />

equivalent with a rectangle.<br />

clear fem<br />

fem.geom = rect2(2,0.98)+rect2(2,0.04,'pos',[0 0.98])+...<br />

rect2(2,0.98,'pos',[0 1.02]);<br />

fem.mesh = meshmap(fem,'edgelem',{[2 7] 12 [1 8] ...<br />

[0 0.2:0.2:0.8 ...<br />

0.86:0.04:0.98]});<br />

figure, meshplot(fem);<br />

Create a mapped quad mesh on a geometry with two subdomains.<br />

fem.geom = ...<br />

rect2+rect2(1,1,'pos',[1 0])-circ2(0.4,'pos',[1.1 -0.1]);<br />

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

fem.mesh = meshmap(fem,'edgegroups',{{1 3 2 [4 8]},...<br />

{4 5 7 [9 10 6]}});<br />

figure, meshplot(fem);<br />

279

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

Saved successfully!

Ooh no, something went wrong!