comsol_mesh
Build, refine, and inspect COMSOL meshes: set global/local element sizes, add free, mapped, swept, boundary-layer, and size features, then check element counts and quality.
Instructions
网格工具。action=list 查看特征树和统计;build 生成网格;size 设置全局尺寸(level 1-9,1 最细 9 最粗;或用 properties 自定义 hmax/hmin/hgrad/hcurve);add 添加网格特征(FreeTri/FreeQuad/Map/Sweep/BndLayer/Size/Distribution/Refine/Import);update 改属性或选择;remove 删除;stats 只看统计和质量。局部细化:add feature_type=Size,selection 传实体编号,entity_dim 传维度;边界层:先 add BndLayer,再 add BndLayerProp 且 parent 指向 BndLayer 的 tag。Sweep 的源面要传 selection_name='sourceface' 和 entity_dim=2(3D),层数用 parent=swe 的 Distribution 特征设置 numelem。Size/Distribution 会自动排到网格操作之前。结果含单元数、顶点数、最小/平均质量。
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": "comsol_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| mesh | No | ||
| size | No | ||
| level | No | ||
| action | No | build | |
| parent | No | ||
| component | No | ||
| selection | No | ||
| entity_dim | No | ||
| properties | No | ||
| feature_type | No | ||
| selection_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |