Mapped
Use Mapped () to generate a structured quadrilateral mesh on boundaries in 3D and domains in 2D, as shown in Figure 8-85. The operation can also be used to remesh imported meshes in 3D.
Figure 8-85: A mapped mesh in a 2D domain of a flow duct (left). The image on the right-hand side shows a mapped mesh on an L-shaped cross-section face (highlighted in blue) of a part of a shaft. The mapped mesh is swept through the 3D domain to arrive at a hexahedral volume mesh, using a Swept operation.
You can control the number, size, and distribution of elements using Size (only the Maximum element size parameter is used) and Distribution subnodes.
To create a mapped quadrilateral mesh for each domain (boundaries in 3D), the mapped mesher maps a regular grid defined on a logical unit square onto each domain. The mapping method is based on transfinite interpolation. The settings in the Size and Distribution nodes used by a Mapped node determine the density of the logical meshes. For the mapping technique to work, the opposite sides of each logical unit square must be discretized by the same number of edge elements.
By default, the relationship between the four sides of the logical unit square and the boundaries around a domain is based on a criterion related to the sharpest angle between boundaries. If you want to control this relationship, right-click the Mapped node to add an Edge Groups subnode.
2D Mapped Mesh Geometry
For the 2D mapped meshing technique to work properly, the geometry must be reasonably regular. The following conditions must be satisfied:
For a geometry that does not initially meet these criteria, it is usually possible to modify it so that a mapped mesh is generated, for example, by partitioning it into simpler domains, as shown in Figure 8-86. Consider using Mesh Control Operations to hide the added edges and points from the physics view.
Figure 8-86: Partitioning a domain into smaller rectangular domains in order to build a mapped mesh. 1.Original domain where a mapped quad mesh cannot be created. 2. Partition the domain into three rectangular domains. 3. Resulting mapped mesh in the partitioned geometry.
For imported meshes in 3D, use Mapped to remesh one or several faces. The operation separates the selected boundaries from the mesh, creates geometry from the separated mesh, meshes the geometry, and then copies the new generated mesh onto the original mesh. Edges adjacent to faces outside the selection are kept unchanged, while other edges are remeshed.
Only surface meshes with first-order elements can be remeshed. Clear the Import domain elements checkbox in the mesh Import node to import only boundary elements. Select checkbox Import as linear elements to ignore second-order mesh data. See Importing Meshes for more information.
To add a Mapped () node, select boundaries (3D) or domains (2D) in the Graphics window, then choose one of the following:
Right-click in the Graphics window and select Mapped () from The Graphics Context Menu.
From tThe Mesh Toolbar, choose Mapped from the More Generators menu () (3D components) or click the Mapped () button (2D components).
In 2D, right-click a Mesh node and choose Mapped (). For 3D models, this is selected from the More Generators menu () menu.
Then enter the properties for the mapped meshing operation using the following sections:
Entity Selection
Define the boundaries (3D) or domains (2D) where you want to create a mapped quad mesh. Choose the level of the geometry from the Geometric entity level list:
Choose Remaining to specify mapped quad mesh for remaining, unmeshed domains.
Choose Entire geometry to create a mapped quad mesh in the entire geometry.
Choose Boundary (3D) or Domain (2D) to specify the geometric entities for which you want to create a mesh. Choose Manual from the Selection list to select the boundaries or domains in the Graphics window, choose a named selection to refer to a previously defined selection, or choose All boundaries (3D) or All domains (2D) to select all boundaries or all domains.
Control Entities
Use the Smooth across removed control entities setting to smooth the transition in element size across removed control entities. Use Automatic (default) to let the algorithm decide if to apply smoothing or not. Smoothing will be applied if, for example, 2D domains adjacent to removed edges contain triangular elements only. When set to On, the mesher adjusts the sizes of the mesh elements to get a smoother transition from large to small elements by adjusting the locations of the mesh vertices on the entity that is removed. Select Off to not adjust the mesh. When set to On, you can specify the number of smoothing iterations in the Number of iterations field. In the Maximum element depth to process field you can specify the maximum element depth for the mesh vertices to be smoothed.
Figure 8-87: Comparing meshes for different Smooth across removed control entities settings. The two edges (highlighted in blue in left image) adjacent to the domain in the middle are designated as Mesh Control Edges. A finer distribution is set between the edges and when all domains are meshed, the edges are removed, leaving only one large rectangular domain. With the Smooth across removed control entities set to On, the sizes of the edge elements are adjusted (upper-right image). With the setting set to Off, the edge mesh is not adjusted (lower-right image). As the adjacent face is meshed with a quad mesh, the Automatic option gives the same result as Off.
Reduce Element Skewness
Select the Adjust edge mesh checkbox (cleared by default) to allow the mapped mesher to adjust the mesh on edges that are not already meshed and where no explicit distribution is applied in order to reduce the element skewness (see Figure 8-88 below).
Figure 8-88: Images showing the effect of the Adjust edge mesh setting. The default mapped mesh (left) has some skewed elements. Turning on the Adjust edge mesh setting results in quads with angles closer to 90 degrees (image to the right).
Advanced Settings
In this section you can choose between two different interpolation methods in the Interpolation method list. This specifies how the mapped meshing operation determines the positions of the interior mesh vertices. Select Automatic (default) to let the mapped meshing operation determine a suitable interpolation method automatically. In many cases, the interpolation methods give the same result. If you select Transfinite in 2D, the positions of the interior mesh vertices are determined by transfinite interpolation in the 2D parameter space of the corresponding surface. This method works best for faces with smooth surface parameterization. If you select Transfinite in 3D, transfinite interpolation is done in 3D to determine these positions. This method works best if the shape of the exterior edges represent the shape of the surface in a good way.
Information
For information, see Generated and Modified Elements.
For an example of a 2D mapped mesh, see Tubular Reactor with Nonisothermal Cooling Jacket: Application Library path COMSOL_Multiphysics/Chemical_Engineering/tubular_reactor.
For an example of a 2D mapped mesh, see Flow Duct,
Application Library path Acoustics_Module/Aeroacoustics_and_Noise/flow_duct.
For an example of a mapped mesh in 3D, see Submodeling Analysis of a Shaft,
Application Library path COMSOL_Multiphysics/Structural_Mechanics/shaft_submodeling.