Fem Static
fem_staticRuns linear static finite element analysis on a solid CAD model, meshing and solving it to report maximum displacement, von Mises stress, and reaction forces.
Instructions
Linear static finite element analysis (small displacements, linear elastic isotropic material, 10-node tetrahedra) of one solid in a CAD file (.step .stp .iges .igs .brep, read in millimetres), meshed by Gmsh and solved by CalculiX; the toolkit writes both inputs, the caller never supplies a script or deck. Returns max_displacement: magnitude; see values.max_displacement_ux/uy/uz (the length of the displacement vector, which exceeds the bending deflection) and where it is, the per-axis maxima max_displacement_ux/uy/uz (largest |ux|, |uy|, |uz| over the nodes; read a deflection from the axis it acts on, and sideways motion from the other axes; data.displacement_note says so), the maximum von Mises stress and where, and the total reaction force against the applied load (equilibrium must hold to 1e-6 or the call fails). Artifacts: the CalculiX deck, .frd and .dat results, and results.csv with every node's displacement and stress. 'supports' and 'loads' are ';'-separated clauses that pick faces by plane. Face selector: 'x = 0 mm' (all boundary faces lying in that plane) or 'normal +z at z = 20 mm' (only faces whose outward normal is +z); axis x, y or z. Support: ' [: dofs]' with dofs 'fixed' (default, ux=uy=uz=0) or any of ux uy uz, or 'point(0 mm, 5 mm, 0 mm) : uy' (the nearest mesh node, within one element size). Load: 'force (0 N, 0 N, -10 kN) on x = 100 mm' (total force spread evenly over the face by area) or 'pressure 5 MPa on z = 20 mm' (positive pushes into the material). A selector that matches no face, a support face that is also loaded, and a model whose supports leave a rigid-body motion free are errors that say so. Fixing a whole face over-constrains the Poisson contraction there (the stress near it is higher than the textbook value); to avoid that, constrain only ux on the face and add point supports on the remaining motions. The work is capped (max 60000 elements, estimated before meshing). Linear only: no plasticity, contact, large displacement, dynamics or temperature. Needs the optional cad engine (uv sync --extra cad) and Gmsh and CalculiX installed by you (ENG_TOOLKIT_GMSH, ENG_TOOLKIT_CCX; run toolkit_doctor).
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": {
"model_path": "<model_path>",
"element_size": "<element_size>",
"youngs_modulus": "<youngs_modulus>",
"poisson_ratio": "<poisson_ratio>",
"supports": "<supports>",
"loads": "<loads>"
},
"name": "fem_static"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loads | Yes | ';'-separated loads, e.g. 'force (10 kN, 0 N, 0 N) on x = 100 mm' or 'pressure 2 MPa on normal +z at z = 20 mm' | |
| supports | Yes | ';'-separated supports, e.g. 'x = 0 mm' (fixed face) or 'x = 0 mm : ux; point(0 mm, 5 mm, 0 mm) : uy; point(0 mm, 0 mm, 5 mm) : uz' | |
| model_path | Yes | Path to a solid model: .step .stp .iges .igs or .brep | |
| element_size | Yes | Target element edge length with unit, e.g. '2.5 mm'; halve it to check convergence | |
| poisson_ratio | Yes | Poisson's ratio, a plain number between -1 and 0.5 (exclusive), e.g. 0.3 | |
| youngs_modulus | Yes | Young's modulus with unit, e.g. '210 GPa' or '210000 MPa' | |
| output_length_unit | No | Length unit of displacements, e.g. 'mm' (default), 'um', 'inch' | mm |
| output_stress_unit | No | Unit of stresses, e.g. 'MPa' (default), 'psi', 'bar' | MPa |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |