Using Operations on an Imported Mesh
The following example shows how you can use the mesh import operations to control the partitioning of an imported mesh.
imported mesh
The following overview is based on using an imported mesh from the feeder_clamp model, found in the COMSOL Multiphysics Applications Libraries and shown in Figure 8-7.
Deformation of a Feeder Clamp: Application Library path COMSOL_Multiphysics/Structural_Mechanics/feeder_clamp
Figure 8-7: The Deformation of a Feeder clamp model showing an imported mesh, which is divided into 5 domains, 69 faces, 174 edges, and 114 points.
join entities
To form a single domain, use a Join Entities () node, which operates on the domain level (that is, add All domains to the selection). As a result, you can obtain a mesh for the model with a single domain.
delete entities
To remove all edges, use a Delete Entities () node, which operates on the edge level (that is, add All edges to the selection). As a result, you can obtain a mesh for the model with no edges or points.
Partition with Cylinder
To define a boundary that defines the contact between the feeder and the clamp, use a Partition with Cylinder () node that operates on the boundary level (that is, add All boundaries to the selection, and use 10.001 as a cylinder radius, 0 and -20 for top and bottom, (15, 0, 35) as position, and y-axis as the axis type).
Figure 8-8: Using a Partition with Cylinder node to define the contact between the feeder and the clamp.
Partition by Expressions
To define two boundaries that define screw channels, use a Partition by Expression () node, which operates on the boundary level (that is, add All boundaries to the selection and use (y+10)^2+(z-55)^2<=4 as the logical expression).
Figure 8-9: Using a Partition by Expression to create boundaries on the two screw channels of the feeder clamp.
Partition with Ball
To create a boundary defining one of the washers used for the boundary loads of the model, use a Partition with Ball () node, which operates on the boundary level (use (5,-10, 55) as a ball center and 3.5 as a ball radius). The input boundary selection must be limited; otherwise, the ball operation also splits one of the cylinder boundaries, which was created by the Partition by Expression node.
Figure 8-10: Using a Partition with Ball node to define one of the washers of the feeder clamp.
By creating a duplicate of the Partition with Ball node and modifying the ball center (set x to 5) you can create a boundary for the second washer.
Figure 8-11: Using a Partition with Ball node to define a second washer.
Partition with Box
To create the boundaries for the mounting holes, use a Partition with Box () node, which operates on the boundary level (use (0 - 30, -30 - 10, 0.1 - 4.9) as box limits and use the Some vertex condition).
Figure 8-12: Using a Parrition with Box node to define the mounting holes on the feeder clamp.
create vertices
Using the Create Vertices () node, it is possible to add mesh vertices to a component with an empty geometry or create points in mesh vertices by clicking on them in the Graphics window.
create Edges
Using the Create Edges () node, it is possible to add mesh edges to a component with an empty geometry or partition faces by clicking on the mesh edges in the Graphics window.
Create Faces
Using the Create Faces () node, it is possible to add faces on the surface of an imported 3D mesh.
Create Domains
Using the Create Domains () node, it is possible to add domains in an imported 3D mesh.
Fill Holes
Using the Fill Holes () node, you can repair holes in an imported 3D surface mesh.
Intersect with Plane
Using the Intersect with Plane () node, it is possible to intersect an imported 3D surface mesh with one or several parallel planes.
Intersect with Line
Using the Intersect with Line () node, it is possible to intersect an imported 2D mesh with a straight line.