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.

meshplot<br />

The bound property group controls the display of the boundary elements. In 1D it<br />

displays marker symbols, in 2D it displays the boundary elements as a wireframe, and<br />

in 3D it displays the boundary elements as a patch plot. In 3D, the property dbound<br />

makes it possible to get wireframe plots of the boundary elements.<br />

In 3D, the curve property group controls the display of mesh elements on<br />

geometry edges.<br />

The point property group displays the mesh vertex elements as marker symbols in<br />

all space dimensions.<br />

The node property group displays the mesh vertices (node points) as marker<br />

symbols in all space dimensions.<br />

The properties that control marker type or coloring can handle any standard<br />

scripting marker or color type (see the plot command). In 3D, the patch coloring<br />

can be made according to the element quality, by specifying the color as 'qual'.<br />

meshplot can display meshes where there are no elements on a certain element<br />

dimension. In these cases, the default values for curvemode and nodemode change<br />

to make the best possible mesh visualization.<br />

Examples<br />

3D Example<br />

Start by creating a 3D geometry and a mesh.<br />

c1 = cylinder3(0.2,1,[0.5,0.5,0]);<br />

b1 = block3;<br />

geom = b1-c1;<br />

mesh = meshinit(geom);<br />

Plot the mesh as a quality patch plot with parts of the elements excluded by a logical<br />

expression. These types of options make it easy to study the mesh inside the<br />

geometry.<br />

meshplot(mesh,'ellogic','x+y>0.8',...<br />

'edgecolor','qual','boundcolor',[0.7 0.7 0.7],...<br />

'qualbar','on')<br />

You can get a wireframe plot of the same mesh with only a fraction of the<br />

tetrahedrons visible, by the command<br />

meshplot(mesh,'ellogic','x+y>0.8','elkeep',1/100,...<br />

'edgemode','off','boundmode','off',...<br />

'dedgemode','on','dboundmode','on','curvemode','on')<br />

The plot shows only a small fraction of the elements. It is not possible to get a mesh<br />

quality plot by using only wireframes.<br />

285

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

Saved successfully!

Ooh no, something went wrong!