mesh_boundary_layers
Adds prism boundary layers to selected COMSOL boundaries and domains, assigning face selections so COMSOL generates the layers with specified count, stretching, and thickness.
Instructions
Add boundary layers (prism elements) on selected boundaries.
Creates a BndLayer feature (selecting domains) with a
BndLayerProp child (selecting faces). COMSOL only generates the
layers when the child has a face selection, so this tool always assigns
one (all faces by default).
Args: layers: number of boundary layers (default 3). stretching: stretching factor between consecutive layers (default 1.2). thickness: first-layer thickness or total thickness, e.g. "0.01" or "1[mm]"; omit to keep COMSOL's automatic thickness. thickness_type: "first" (default, thickness = first layer height) or "total" (thickness = total boundary-layer thickness). domains: domain numbers that receive boundary layers (default all). boundaries: face numbers that get layers (default all faces). named: named selection for the domains. all_domains: apply to all domains (default true). all_boundaries: apply to all boundaries (default true). properties: extra BndLayer/BndLayerProp properties, e.g. {"sharpcorners": "split", "method": "latest"}. mesh: mesh sequence tag (None = first). component: component tag (None = auto-detect). model: model name/tag (None = current model). Example: mesh_boundary_layers(layers=4, stretching=1.3, thickness="0.005", boundaries=[1, 2, 3])
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": "mesh_boundary_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mesh | No | ||
| model | No | ||
| named | No | ||
| layers | No | ||
| domains | No | ||
| component | No | ||
| thickness | No | ||
| boundaries | No | ||
| properties | No | ||
| stretching | No | ||
| all_domains | No | ||
| all_boundaries | No | ||
| thickness_type | No | first |