Mesh Updates

COMSOL Multiphysics® version 6.1 provides significant meshing improvements that make it easier and more efficient to clean up and repair meshes, generate better-quality boundary layer meshes, and combine geometry models with imported meshes. Browse all of the mesh updates below.

New Operations for Cleanup and Repair

In this version, you can now use a Merge Entities operation to merge nearby vertices, edges, and surfaces within a specified tolerance in a mesh. It is now possible to merge boundaries of misaligned parts in a CAD assembly to eliminate gaps, for example. This provides an alternative to traditional CAD defeaturing and repair.

Merging the intersecting boundaries in this mesh repairs the misalignment and connects the two parts of the CAD assembly.

Similarly, you can use the Collapse Entities operation to clean up a mesh by collapsing narrow and small faces and short edges. The operation finds and collapses entities smaller than the automatically determined entity size. If you do not want to use the default size, you can instead manually specify a size. With this option, the entities will still be automatically collapsed if they do not meet the size requirements.

Collapsing a sliver boundary (left) into an edge (right).

Boundary Layer Meshing Improvements

There is a new Maximum angle for trimming setting for boundary layer mesh generation that controls whether to trim the boundary layer mesh in narrow corners. This setting is now available for all options for handling sharp edges. You can see this improvement in the existing Nonisothermal PEM Fuel Cell model.

A results plot with blue and some orange mesh elements, with a Rainbow color scale at the bottom and a smaller image in the lower-right corner showing orange boundary elements connecting at a corner.
A results plot from a multiphysics simulation of a polymer membrane (PEM) fuel cell showing a streamline plot of the total flux O2 and a surface plot of the mole fraction O2 combined with the mesh elements (blue and orange) in flow regions. Trimming is applied when generating the boundary layer elements in the narrow corners (orange). The image in the lower-right corner shows in more detail how the boundary layer elements connect in a narrow corner.

In the settings for the Boundary Layer Properties node, a new Adjust directions for each layer check box is available that enables smoothing of the directions in boundary layer elements and makes it possible to generate boundary layer meshes of higher quality. The direction of the first layer is perpendicular to the surface (left image below), which is often desired when solving fluid flow problems. After the first layer, the directions of the next layers are able to change to concave- and convex-shaped boundaries. The previous default option of generating layers with constant directions (right image below) is also available.

Boundary layers with adjusted layer directions (left) and with constant layer directions (right). The light green colors represent high element quality.

Combining Geometry and Mesh

The Import operation now makes it easier to combine a geometry model with an imported mesh. This works by importing the finalized geometry of the geometry sequence directly into a meshing sequence. The import generates an unstructured triangular mesh or a visualization mesh for the geometry. The named selections are automatically transferred and can be used in the meshing sequence and for defining the physics. You can see this new improvement in the existing STL Import Tutorial Series model.

The COMSOL Multiphysics UI showing the Model Builder with the Import 2 operation selected, the corresponding Settings window, and the Graphics window with a mesh of a human head.
Importing the geometry of an ellipsoid directly into the meshing sequence, where it can be combined with an imported mesh of a human head.

Improvements for Named Selections in Meshes

The mesh operations now support named selections as input, even when working with imported meshes. The named selections can either be imported from a mesh file or with the geometry from a geometry sequence. You can use the named selections when, for example, remeshing boundaries after combining geometry with an imported mesh. View this update in the STL Import Tutorial Series model.

The COMSOL Multiphysics UI showing the Model Builder with the Size node selected, the corresponding Settings window, the Graphics window with an ear geometry, and the Selection List window.
The named selection used in the Size node is generated by the Import 1 node.

Mapped and Swept Meshing for Imported Meshes

In version 6.1, generating meshes with the Mapped and Swept operations is now straightforward for all meshes, including imported meshes. The Swept operation has support for remeshing the source faces using a quadrilateral or triangular mesh. In previous versions, you had to create a geometry from the imported mesh to be able to generate a mapped or swept mesh. The new workflow is significantly more robust and efficient.

The COMSOL Multiphysics UI showing the Model Builder with the Swept 1 operation selected, the corresponding settings, the Graphics window with a swept mesh of an ear model, and the Selection List window.
Generating a swept mesh in the Perfectly Matched Layer domains of an imported mesh.

Improved Workflow for Imported Surface Meshes

When importing meshes from the STL, PLY, and 3MF formats, domains are now automatically created in watertight regions using the new Create domains check box. If there are holes in the mesh, boundaries and edges are reported in Information nodes, which can be used as input for the Fill Holes and Create Faces repair operations. The domains will be created when the holes have been repaired and the surface mesh has formed the watertight regions. In previous versions, creating domains required an additional operation. The STL Import Tutorial Series model showcases this new addition.

The imported STL mesh of a vertebra with two small holes is repaired using the Fill Holes repair operation that automatically creates a computational domain.

Updated Tutorial Model

COMSOL Multiphysics® version 6.1 includes an updated meshing tutorial model.