selection_create
Create a named selection on a COMSOL component to define reusable domains, boundaries, edges, or points for physics features and selection-based operations.
Instructions
Create a named selection on a component (usable by any physics feature).
Args: name: selection tag. entity_dim: 3 = domains, 2 = boundaries/faces, 1 = edges, 0 = points. geometry: geometry sequence tag to attach to. kind: Explicit | Box | Ball | Cylinder | Disk | Adjacent | Union | Intersection | Difference | Complement | LogicalExpression. entities: explicit entity numbers (for Explicit selections). properties: extra properties, e.g. {"xmin": "-1", "xmax": "1", "zmin": "0"} for Box selections, or {"condition": "inside"}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"entity_dim": "<entity_dim>"
},
"name": "selection_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Explicit | |
| name | Yes | ||
| model | No | ||
| entities | No | ||
| geometry | No | geom1 | |
| entity_dim | Yes | ||
| properties | No |