mesh_set_size
Set explicit mesh size properties such as maximum/minimum element size and growth rate, applying them globally or to selected entities and enabling user-controlled meshing.
Instructions
Set explicit mesh size properties (hmax, hmin, growth rate, ...).
When user_controlled=True (default) the sequence is switched to a
user-controlled mesh (automatic(false)), which is required for manual
sizes to take effect. Without selection the global size feature
is edited; with a selection a localized Size feature is created.
Args: hmax: maximum element size, e.g. "0.05" (model length unit) or "5[mm]". hmin: minimum element size. hgrad: maximum element growth rate (e.g. "1.5"). hcurve: curvature factor (e.g. "0.6"). hnarrow: resolution of narrow regions (e.g. "0.5"). hauto: predefined size level 1..9 (sets automatic sizing). mesh: mesh sequence tag (None = first). feature: existing size feature tag to edit (None = global "size"). selection: domain/boundary numbers for a localized size feature. named: named selection tag for the size feature. all_entities: apply the localized size to all entities. entity_dim: selection dimension for the localized size (default geom dim). user_controlled: switch the sequence to a user-controlled mesh (default true). component: component tag (None = auto-detect). model: model name/tag (None = current model). Example: mesh_set_size(hmax="0.02", hmin="0.002", hgrad="1.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_set_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hmax | No | ||
| hmin | No | ||
| mesh | No | ||
| hauto | No | ||
| hgrad | No | ||
| model | No | ||
| named | No | ||
| hcurve | No | ||
| feature | No | ||
| hnarrow | No | ||
| component | No | ||
| selection | No | ||
| entity_dim | No | ||
| all_entities | No | ||
| user_controlled | No |