Meshing > Meshing Techniques > Mesh Element Quality and Size

Mesh Element Quality and Size
The mesh resolution and mesh element quality are important aspects to consider when validating a model. Low mesh resolution — in relation to the variations in the solution and the geometry — can lead to inaccurate results. A low mesh element quality — which measures the regularity of the mesh elements’ shapes — can lead to inverted mesh elements (see Avoiding Inverted Mesh Elements) and to high condition numbers for the Jacobians, which in turn can cause convergence issues.
COMSOL Multiphysics includes built-in variables for these mesh quantities:
h, the local mesh size
qual, the mesh element quality, which is a dimensionless quantity between 0 and 1, where 1 represents a perfectly regular element and 0 represents a degenerated element.
Displaying Mesh Element Quality and the Mesh Element Size
You can display the mesh element quality and the mesh element size using, for example, a surface plot in 2D or a volume plot in 3D. You can always use a Mesh data set to display these quantities as soon as you have created a mesh. If you have a solution, you can also use a Solution data set. For a Component with a mesh, the following steps display the mesh element quality or mesh element size:
1
Right-click the Mesh node and select Plot (). This creates a plot group with a Mesh plot node ().
2
By default, this plot shows the mesh element quality. In the Settings window for Mesh, select Size instead of Quality from the Element color list to plot the mesh element size instead.
Alternatively, you can access the built-in variables for mesh element quality (qual) and mesh element size (h) in a surface plot, for example:
1
Under Results (), right-click Data Sets () and select Mesh ().
2
Add a 2D or 3D Plot Group using the Mesh data set as the group’s data set, and then add a Surface or Volume plot. For example, in a 2D Plot Group>Surface node (), select Element size (h) or Element quality (qual) from the predefined quantities (under Mesh). Then click the Plot button ().