FEM Mesh
fem_meshCreate a Gmsh mesh for a FreeCAD body and attach it to an analysis, with control over element length and first- or second-order elements.
Instructions
Create a Gmsh mesh of body, attached to analysis.
char_length: max characteristic element length in mm. 0 = let Gmsh pick. min_length: min element length in mm. Default char_length/10, which keeps sliver edges in imported CAD from exploding the mesh; 0 removes the floor. element_order: '1st' or '2nd' (quadratic). Use '2nd' for bending/modal accuracy — linear tets (C3D4) shear-lock and overstiffen thin sections (a cantilever's first natural frequency lands ~50% high with only 1-2 elements through the thickness; 2nd-order tets bring it within ~1% of beam theory). Default lets Gmsh choose. Returns {handle, name, nodes, tets, min_length}.
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": {
"analysis": "<analysis>",
"body": "<body>"
},
"name": "fem_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| name | No | Mesh | |
| analysis | Yes | ||
| workspace | No | Run this call in this named workspace | |
| min_length | No | ||
| char_length | No | ||
| element_order | No |