fem_mesh
Create a Gmsh mesh for a body in an FEM analysis, controlling element length and order to avoid shear-locking and improve bending/modal accuracy.
Instructions
Create a Gmsh mesh of body, attached to analysis.
char_length: max characteristic element length in mm. 0 = let Gmsh pick. 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}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| name | No | Mesh | |
| analysis | Yes | ||
| char_length | No | ||
| element_order | No |