fem_create_static_analysis
Create a complete static FEM analysis in FreeCAD: defines material properties, fixed and load constraints, mesh size, and a CalculiX study ready for meshing and solving.
Instructions
Create native material, constraints, mesh and CalculiX analysis; setup is separate from meshing/solving.
Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.
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": {
"doc_name": "<doc_name>",
"source_name": "<source_name>",
"fixed_references": "<fixed_references>",
"load_references": "<load_references>",
"force_direction": "<force_direction>",
"force_n": "<force_n>",
"youngs_modulus_pa": "<youngs_modulus_pa>",
"poisson_ratio": "<poisson_ratio>",
"density_kg_m3": "<density_kg_m3>",
"mesh_size_mm": "<mesh_size_mm>"
},
"name": "fem_create_static_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mesher | No | Native FEM mesher; installed API does not establish runtime qualification. | gmsh |
| force_n | Yes | Applied force magnitude in newtons. | |
| doc_name | Yes | Internal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly. | |
| source_name | Yes | Internal object Name in the selected document, never Label; must have the type required by this tool. | |
| mesh_size_mm | Yes | Positive length in millimetres. | |
| analysis_name | No | Internal object Name in the selected document, never Label; must have the type required by this tool. | Analysis |
| density_kg_m3 | Yes | Explicit material density in kg per cubic metre. | |
| poisson_ratio | Yes | Explicit dimensionless isotropic Poisson ratio. | |
| force_direction | Yes | Nonzero dimensionless XYZ force direction; magnitude provided separately in N. | |
| load_references | Yes | Exact [source_object_name, FaceN/EdgeN/VertexN] loaded-region references. | |
| fixed_references | Yes | Exact [source_object_name, FaceN/EdgeN/VertexN] support references. | |
| youngs_modulus_pa | Yes | Explicit isotropic Young modulus in pascals, converted to native N/mm^2. |