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

Purpose<br />

meshplot<br />

Plot mesh.<br />

Syntax<br />

Description<br />

meshplot(fem,...)<br />

meshplot(mesh,...)<br />

h = meshplot(...)<br />

meshplot(fem,...) plots the mesh object fem.mesh.<br />

meshplot(mesh,...) plots the mesh object mesh.<br />

h = meshplot(...) additionally returns handles to the plotted axes objects.<br />

The mesh of the PDE problem is specified by the mesh object. Details on the<br />

representation of the mesh can be found in the entry femmesh.<br />

There is a multitude of options that enables you to plot the mesh in virtually any<br />

conceivable way. For 2D and 3D meshes, there are basically two types of mesh plots;<br />

the wireframe plot and the patch plot.<br />

In 3D, the default type is a patch plot, where both the triangular faces of the<br />

elements and the boundary elements are rendered. Only the visible faces of the<br />

elements are included in the plot, and the boundary elements and other mesh faces<br />

are plotted in different colors. The characteristics of this plot type are controlled by<br />

the properties that start with edge and bound. The edge properties control the plot<br />

of the element faces, and the bound properties control the boundary element plot<br />

(the name edge has historic reasons; it was first used in 2D). The color of the edges<br />

of the element faces is determined by the property eledgecolor.<br />

The alternative type of 3D plot is a wireframe plot, consisting of the (1D) edges of<br />

the elements and the boundary elements. The properties that start with dedge and<br />

dbound control the plot characteristics of this plot type. The dedge properties<br />

control the plot of the element edges, and the dbound properties control the plot<br />

of the edges of the boundary elements. See the 3D example below for how to obtain<br />

a patch plot and a wireframe plot of a mesh. You can also plot the mesh edges that<br />

lie on geometry edges (curves) with a special color. The characteristics of this plot<br />

is controlled by the properties that begin with curve.<br />

In 2D, there are basically two types of mesh plots. The default type is a wireframe<br />

plot of the edges of the elements, where the boundary elements are plotted in a<br />

different color. The properties that start with edge and bound control the plot<br />

characteristics of this plot type. The edge properties control the plot of the element<br />

edges, and the bound properties control the boundary element plot.<br />

281

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

Saved successfully!

Ooh no, something went wrong!