The Selection Node
Use a Selection node to define a collection of geometry entities in a central location in the model. The selection can easily be accessed in physics or mesh features or during results analysis. For example, you can refer collectively to a set of boundaries that have the same boundary conditions, which also have the same mesh size settings.
A selection feature can be one of these types:
Selection can also be combined by Boolean operations, such as Union, Intersection, and Difference.
Setting an Explicit Selection
Create an explicit selection with the command:
model.component(<ctag>).selection.create(<seltag>, 'Explicit')
To specify the domain entity dimension to use in the selection node, enter:
sel.geom(sdim)
where sel is a link to an Explicit Selection node and sdim is the space dimension that represents the different geometric entities:
3 for domains,
2 for boundaries/domains,
1 for edges/boundaries, and
0 for points.
Set the domain entity indices in the selection node with the command:
sel.set(<idx>)
where <idx> is an array of integers that list the geometric entity indices to add in the selection.