Free Triangular
The operation creates an unstructured triangular mesh on boundaries in 3D and domains in 2D, as shown in Figure 8-50. The Free Triangular operation can also be used to remesh faces of imported surface meshes in 3D.
Figure 8-50: Use Free Triangular to create unstructured triangle meshes on faces in 3D (left) and on domains in 2D (right).
You can control the number, size, distribution, and refinement of elements by using Size, Size Expression, Distribution, and Corner Refinement subnodes (only Size and Distribution subnodes are available for Finalizing the Mesh).
For a mesh that defines its own geometric model, use Free Triangular to remesh one or several faces. The operation separates the selected boundaries from the mesh, creates a geometry from the separated mesh, meshes the geometry, and then copies the new generated mesh onto the original imported mesh. This operation has the following practical implications:
Only surface meshes with first-order elements can be remeshed. Clear the Import domain elements check box in the mesh Import node to import only boundary elements. Select check box Import as linear elements to ignore second-order mesh data. See Importing Meshes for more information.
See The Mesh Node to learn more about meshes that define their own geometric model.
To create an unstructured triangular mesh, select one or several boundaries (3D) or domains (2D) in the Graphics, then:
In the Mesh toolbar, choose Free Triangular from the Boundary menu () (3D components and parts) or click the Free Triangular () button (2D).
Right-click a Mesh node and choose Free Triangular (). For 3D components and parts, this is selected from the Boundary Generators menu.
Then enter the properties for the triangular meshing operation using the following sections:
Entity Selection
Define the boundaries (3D) or domains (2D) where you want to create an unstructured triangular mesh. Choose the level of the geometry from the Geometric entity level list:
Choose Remaining to specify unstructured triangular mesh for remaining, unmeshed domains.
Choose Entire geometry to create an unstructured triangular mesh in the entire geometry.
Choose Boundary (3D) or Domain (2D) to specify the geometric entities for which you want to create an unstructured triangular mesh. Choose Manual in 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 entities.
For imported meshes in 3D, the available options in the Geometry entity level list are Manual and All boundaries.
Scale Geometry
To scale the geometry during the meshing operation, change the x-scale, y-scale, and z-scale in 3D to positive real numbers, as shown in Figure 8-51. If any of the scale factors are not equal to one (1), the software scales the geometry in those directions before meshing. After meshing, it restores the geometry and mesh to fit the original size.
The scale factors make it possible to generate meshes that are anisotropic, and is one alternative to use if the mesh generator creates many elements due to a thin geometry or large aspect ratios in the geometry (compare the first and last mesh in Figure 8-51). Compare this to changing the Resolution of narrow region parameter in a mesh Size attribute to only affect the mesh size in narrow regions. In 3D, consider using the Collapse Face Regions or Remove Details to remove narrow regions, if these are not important to the simulation at hand.
Figure 8-51: Three hourglass shaped geometries meshed with triangular meshes where the mesh in the narrow region can be more or less resolved by scaling the geometry in the background. The first geometry (left) is not scaled. The geometry in the middle is scaled with a factor 2 in the x direction. The last geometry (right) is scaled with a factor 0.5 in the x direction before meshing it and restoring it to its original size. Note that the scaling influences the whole domain, not only the narrow region in the middle.
Control Entities
Select the Smooth across removed control entities check box to smooth the transition in element size across removed Controlling the Mesh Size Using Mesh Control Entities. 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 points to be smoothed.
Figure 8-52: Comparing meshes where Smooth across removed control entities has been used vs. not used. With Smooth across removed control entities check box selected, the mesher adjusts the sizes of the triangles to get a smoother transition from large to small elements.
Tessellation
Here you can specify the triangulation method used when creating the triangular mesh. Select Automatic (default) to let the software use the method that is best suited for the geometry. Select Delaunay to use a method based on a Delaunay algorithm. This results in a mesh with more irregular structure. Select Advancing front to use a method based on an advancing front algorithm. This results in a mesh with more regular structure.
Figure 8-53: A cone meshed with a triangular mesh using different triangulation methods. The image to the left shows a mesh generated using the Delaunay method. The image to the right shows a mesh generated with the Advancing front.
Mesh Preprocessing
You can optionally simplify the mesh when remeshing faces in an imported mesh. The simplification can remove small defects typically present in mesh data from measurements, such as tomography, and it can speed up the process by removing unnecessary elements. The Simplify mesh check box is selected by default to enable simplification.
The Relative simplification tolerance (default value: 0.01) is relative to the dimensions of the entire geometry and specifies a global limit for how much the mesh can be modified. The Defect removal factor (default value: 1) is relative to the local feature size, as estimated by the algorithm, and is combined with the global limit to produce a limit for how much the mesh can be modified at a certain location. If the mesh contains many defects that you want to remove, you could try to increase the value of the Defect removal factor. If the mesh describes the desired geometry with high accuracy, you may want to decrease this factor instead.
For a tutorial about adjusting the mesh size, see
Adjusting the Element Size for the Unstructured Mesh Generator:
Application Library path COMSOL_Multiphysics/Meshing_Tutorials/piston_mesh.
For a tutorial showing a swept triangular mesh, see
Steam Reformer: Application Library path Chemical_Reaction_Engineering_Module/Reactors_with_Porous_Catalysts/steam_reformer.
For a tutorial showing the operation used in 3D, see
Forced Convection Cooling of an Enclosure with Fan and Grille: Application Library path Heat_Transfer_Module/Power_Electronics_and_Electronic_Cooling/electronic_enclosure_cooling.
For a tutorial showing the operation used in 2D, see Stresses in a Pulley:
Application Library path COMSOL_Multiphysics/Structural_Mechanics/stresses_in_pulley.
For a tutorial about using the operation for an imported surface mesh, see
STL Import 2 — Remeshing an Imported Mesh:
Application Library path COMSOL_Multiphysics/Meshing_Tutorials/stl_vertebra_mesh_import.