Compose
To create a composite geometry object from other geometry objects using Boolean operations given in a set formula, use a Compose () node. Enter the properties of the compose operation as a set formula using the following sections:
Compose
Select the geometry objects that you want to compose in the Graphics window. The objects appear in the Input objects list. If the geometry sequence includes user-defined selections above the Compose node, choose Manual to select objects, or choose one of the selection nodes from the list next to Input objects.
Click the Active button to toggle between turning ON and OFF the Input objects selections.
Select the Keep input objects check box to use the selected solid geometry objects for further geometry operations.
In the Set formula field, enter a set formula involving the names of the selected geometry objects — for example, r1+c1*(c2-r2) — to take the union of r1 and the object that is the result of the intersection between c1 and the set difference where r2 is subtracted from c2. Use the binary operations +, *, and - for set union, set intersection, and set difference, respectively. The precedence of the operators + and - are the same. The operator * has higher precedence. You can override the precedence rules using parentheses. When you change the set formula, the Input objects selection is automatically updated.
To create a geometry object without interior boundaries, clear the Keep interior boundaries check box. This can be useful to simplify a geometry where the interior boundaries do not separate domains with different physics nodes or materials, for example.
You can change the settings for the Repair tolerance list if you experience problems with the compose operation. Geometric entities that have a distance less than the repair tolerance are merged.
The default value in the Repair tolerance list is Automatic, which for 3D objects represented using the CAD kernel determines the repair tolerance internally. For 3D objects represented using the COMSOL kernel, and for 2D and 1D objects, Automatic means a relative repair tolerance of 106.
Choose Relative to enter a value for the Relative repair tolerance field (the default is determined by the main Geometry node’s setting). This value is relative to the largest absolute value of the coordinates of all input objects.
Choose Absolute to enter a value for the Absolute repair tolerance field (the default is determined by the main Geometry node’s setting; SI unit: m). This value uses the same unit as the geometry sequence’s length unit.
When you build this feature, the relative and absolute repair tolerances are set to the values that are used (with a precision of two digits), which can be useful when you have set Repair tolerance to Automatic.
Selections of Resulting Entities
Select the Resulting objects selection check box to create predefined selections (for all levels — objects, domains, boundaries, edges, and points — that are applicable) in subsequent nodes in the geometry sequence. To also make all or one of the types of resulting entities (domains, boundaries, edges, and points) that the resulting objects consist of available as selections in all applicable selection lists (in physics and materials settings, for example), choose an option from the Show in physics (Show in instances if in a geometry part; Show in 3D in a plane geometry under a work plane in a 3D component) list: All levels, Domain selection, Boundary selection, Edge selection, or Point selection. The default is Domain selection, which is suitable for use with materials and physics defined in domains. For use with a boundary condition, for example, choose Boundary selection. These selections do not appear as separate selection nodes in the model tree. Select Off to not make any selection available outside of the geometry sequence. From the Color list, choose a color for highlighting the resulting objects selection. See Selection Colors.
Cumulative Selection
If you want to make the resulting entities contribute to a cumulative selection, select a cumulative selection from the Contribute to list (the default, None, gives no contribution), or click the New button to create a new cumulative selection (see Cumulative Selections).
Location in User Interface
In the Geometry toolbar, from the Boolean and Partitions () menu, select Compose ().You can also right-click the Geometry node to add this node from the Boolean and Partitions submenu.