geom_entity_info
Enumerate COMSOL geometry entities with bounding boxes, centers, and area/volume/length measures to select entity numbers for boundary conditions using bbox filters.
Instructions
Enumerate geometry entities with bbox, center and measure (area/volume/length).
Use this to choose entity numbers for boundary conditions, e.g. find the top faces of a block (filter_bbox with zmin=zmax=0.02).
Args: entity_dim: 3 = domains, 2 = boundaries/faces, 1 = edges, 0 = points (in 2D use 2 = domains, 1 = boundaries, 0 = points). filter_bbox: optional [xmin,xmax,ymin,ymax(,zmin,zmax)] with null for unbounded sides, e.g. [null,null,null,null,0.019,0.021]. condition: how to compare an entity bbox with filter_bbox: "inside" (default), "intersects", or "center". tol: tolerance for the bbox comparison (in geometry length units). limit: maximum number of entities returned (default 100, max 500). geometry: geometry sequence tag (default "geom1"). model: model name/tag (None = current model).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "geom_entity_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tol | No | ||
| limit | No | ||
| model | No | ||
| geometry | No | geom1 | |
| condition | No | inside | |
| entity_dim | No | ||
| filter_bbox | No |