FreeCAD assembly with revolute joint axes and constraint markers
Source: Tavreno CAD study file — revolute joint axes overlaid on a stainless bracket assembly before the pose export.

Kinematics + FEM chapter

FreeCAD Kinematics and FEM: Motion Constraints and Stress Simulation

Motion and structural verification are two solvers with two different failure modes. This chapter shows the exact order of operations we use in FreeCAD 0.21: reduce the mechanism to the minimum degrees of freedom in Assembly4 or A2plus, export the worst-case pose, then run a CalculiX static study on that pose instead of the design pose.

DOF per free body
6
A2plus tolerance
1e-6
Mesh passes
3
Stress delta limit
5%

Questions that come up before the first solve

Four issues account for most of the support threads on the FreeCAD forum and most of the failed studies we review. Short answers first, details in the sections below.

Do I need Assembly4 and A2plus at the same time?

No. Pick one solver per document. Assembly4 places parts through local coordinate systems and is faster for large rigid structures; A2plus resolves geometric constraints and is better for mechanisms with real joint travel. Mixing both in one file produces conflicting placements and a solver that never reaches the target tolerance.

Why does CalculiX report a rigid body mode?

Because at least one translation or rotation of the mesh is not restrained. A single fixed face removes three translations and three rotations only if the face is not reduced to a line or a point. Check the constraint markers in the 3D view: an under-constrained model shows a zero pivot on the first iteration and stops immediately.

How fine should the mesh be?

Fine enough that a second refinement changes peak von Mises stress by less than 5%. Start with a global element size of one tenth of the smallest load-bearing feature, then refine locally at fillets and contact patches. Two to three passes are usually enough; more passes mostly increase solve time.

Can I animate a mechanism without FEM?

Yes, and you should. Assembly4 and A2plus both drive the assembly through a range of motion using a named variable, so you can sweep an angle from 0° to 90° in 5° steps and record the interference-free envelope before any structural study exists. Motion first, stress second.

What a verified motion-plus-stress workflow changes

Six concrete outputs you get when the kinematic model and the structural study share one pose definition instead of drifting apart in separate files.

Deterministic DOF count

The solver reports exactly how many degrees of freedom remain, so an over-constrained assembly is caught in the model tree rather than on the test bench.

Worst-case pose export

The angle that produces peak stress is identified by sweeping the mechanism, then frozen and passed to the FEM container as a single solid.

Contact and bolt modelling

Bearing surfaces and bolt shanks are defined as contact pairs instead of bonded faces, which removes the artificial stiffness that hides joint compliance.

Mesh convergence control

Each refinement pass is stored with its peak stress value, so the report shows a convergence history rather than one unverified number.

Reproducible drawings

The verified pose is projected into a TechDraw sheet with the load case noted in the title block — see the TechDraw 2D drafting chapter for the projection settings.

Fewer physical prototypes

When the worst-case pose is known, the first printed bracket usually passes the load test, which keeps the prototype loop short and the additive manufacturing workflow predictable.

Problem: the design pose is not the loaded pose

Most failed FreeCAD studies we review share one root error: the part is simulated in its nominal, as-modelled position. A folding bracket, a clamp, a hinge — all of them reach peak stress at an intermediate angle, not at 0° and not at 90°. If no kinematic model was ever built, the structural study has no worst case to point at, and the reported safety factor is a number without a load path behind it. The solver is not wrong; the question it was asked is incomplete.

The second problem is scale. A single FreeCAD document can hold geometry in millimetres, a material card in MPa and a load in newtons, and every one of those units is implicit. A misplaced decimal point produces a stress field that looks plausible in the colour legend and is wrong by a factor of a thousand.

Symptoms you will recognise

  • Stress peaks move when the mechanism is cycled by hand, but stay fixed in the written report.
  • Assembly4 LCS markers drift after a PartDesign feature is edited downstream.
  • CalculiX stops on the first iteration with a rigid body mode or a zero pivot warning.
  • A safety factor above 4 on a part that cracked on the test bench at nominal load.

Cause: four mechanical reasons the model lies

Each failure has a specific technical trigger and a specific check that catches it before the results are published.

01

Unconstrained degrees of freedom

Every floating body contributes six rigid body modes. If a hinge pin is placed but never constrained, the stiffness matrix stays singular and the solve aborts. Check the DOF counter in the assembly tree before touching the FEM module.

02

Constraint over-definition

Two coincident constraints on the same axis force the A2plus solver to fight itself. It reports redundancy or oscillates around the 1e-6 tolerance instead of converging. Remove one constraint and the residual drops to zero within a dozen iterations.

03

Mesh singularity at re-entrant corners

A sharp internal corner concentrates stress mathematically to infinity as elements shrink. Peak values there never converge; they grow with every refinement. Either add a fillet to the geometry or read the stress one element away from the corner.

04

Unit and scale mismatch

FreeCAD geometry is unitless in the kernel; the FEM workbench assumes millimetres, newtons and MPa. A STEP import in metres produces a part a thousand times oversized and a stress field a thousand times too small. Verify the bounding-box dimension first.

Solution: lock the motion first, then load the pose

The workflow below is the one we run on every mechanism that has moving parts. It splits the problem into a motion model and a structural model, and it makes the handoff between them explicit. The motion model answers "where does the part go"; the structural model answers "what does it feel there". Neither is allowed to answer the other's question, which is exactly why the numbers hold up in a design review.

A stress number is only as good as the pose it was taken in. Freeze the mechanism, then load it.

Tavreno CAD — internal simulation standard, rev. 4

The five-step sequence

  1. 1.Build the assembly. Place every part with one solver only — Assembly4 for rigid structures, A2plus for real joint travel. Details in the Assembly4 and A2plus chapter.
  2. 2.Sweep the motion. Drive the joint variable from 0° to the mechanical stop in 5° steps and record interference and the resulting lever arm.
  3. 3.Freeze the worst pose. Create a Part container with a single fused solid at the critical angle and lock it; the FEM tree must never see a live assembly.
  4. 4.Run the static study. Apply material, mesh, supports and loads to the frozen solid, then solve with CalculiX and refine twice.
  5. 5.Verify and document. Compare peak stress against the convergence criterion, then project the pose into a TechDraw sheet with the load case in the title block.

Kinematic setup: Assembly4 and A2plus in practice

Both workbenches place solids, but they solve a different problem. Assembly4 attaches parts to local coordinate systems and inherits placement through a dependency graph; it is deterministic, fast on assemblies above fifty parts, and it has no notion of a joint limit. A2plus resolves geometric constraints iteratively and behaves like a proper kinematic solver — it will find the pose that satisfies coincidence, offset and angle constraints, provided the system is not over-defined.

Assembly4: LCS-driven placement

Create an LCS on each mating face, then attach the child part to the parent LCS with an offset. Because placement is inherited, editing a parent feature propagates cleanly to every child. The risk is the opposite of A2plus: nothing stops you from attaching two parts to the same LCS with contradictory offsets, and the assembly will simply accept the last value written. Name the LCS markers by function, not by index, or the tree becomes unreadable after the third revision.

A2plus: the constraint solver

A2plus needs a defined base part, then constraints in a strict order: plane coincidence, then axis coincidence, then angle. Solve after each group rather than all at once, because a single redundant constraint will stall the whole system. The solver tolerance defaults to 1e-6 and the iteration cap is configurable; if the residual plateaus above tolerance, the model is over-defined, not under-defined. Keep "auto-fix" off while building — it silently rewrites placements and hides the real conflict.

Settings that matter

  • Solver tolerance: 1e-6 for millimetre-scale parts; loosen to 1e-5 only if the model genuinely oscillates.
  • Partial solving: disabled during assembly, enabled only for isolated sub-groups.
  • Joint travel: define the mechanical stop as a driving variable, not as a hard constraint, so the sweep can reach it.
  • Interference check: run it at every sweep step; a 0.2 mm overlap at 45° is a real collision, not a display artefact.
Hinge mechanism swept through three positions with joint axes
Source: Tavreno CAD motion sweep — 0°, 45° and 90° positions with the critical lever arm at 45°.

FEM setup: CalculiX, mesh control and contact

Tetrahedral finite element mesh with stress contours on a bracket
Source: Tavreno CAD CalculiX run — second-order tetrahedra, peak von Mises at the inner fillet.

The FEM workbench wraps CalculiX and Gmsh. Once the frozen pose is in a Part container, the study tree is short: material, mesh, constraints, loads, solver. The order of operations matters because the mesh is generated from the geometry that exists at solve time — change the solid after meshing and the study silently keeps the old mesh.

Material, mesh and element order

Define the material as linear elastic with explicit Young's modulus in MPa and Poisson's ratio; the default steel card is a starting point, not a specification. Use second-order tetrahedra (C3D10) for curved fillets and first-order hexahedra (C3D8) only for thin, regular plates. Gmsh's default element size is a global value — set it to one tenth of the smallest load-bearing feature, then add a local refinement region at every fillet and contact patch.

Loads, supports and the pose handoff

Apply supports to faces that are actually bolted, not to a convenient plane. A fixed face removes three translations and three rotations; a fixed edge removes far fewer and produces a mechanism. Loads should be applied as pressure on a real contact area or as a force on a rigid coupling, never as a point load on a single node. For bolted joints, model the shank as a beam or use a bonded contact patch sized to the washer — bonded faces across the entire joint over-stiffen the assembly by a factor that routinely reaches 1.5.

1.2M

DOF solved per direct run on a 16 GB workstation

3

refinement passes before the stress delta falls under 5%

0.2 mm

smallest contact gap that still resolves without a penalty term

Result checklist before you publish a number

Run these five checks in order. A study that fails any of them goes back to the geometry, not to the report.

Metric Acceptance target Action if missed
Peak von Mises stress ≤ 60% of yield Increase section or change material card
Mesh convergence delta ≤ 5% between passes Refine locally at the peak location
Reaction force balance ≤ 1% of applied load Recheck supports and contact pairs
Maximum deflection ≤ 0.5% of span Add rib or reduce lever arm in the pose
Solver termination Converged, zero rigid modes Remove free DOF before re-running

Sign-off items

  • Pose angle and load case written in the file name.
  • Material source and grade recorded, not just "steel".
  • Mesh size and element order stored with the result.
  • Drawing sheet references the same revision as the study.

When to stop refining

Stop when the peak stress changes by less than 5% between two consecutive passes and the peak location has not moved. If the peak keeps climbing with every refinement and stays pinned to a sharp corner, you are measuring a singularity, not a stress. Add a fillet to the geometry and re-run — the number will drop and become stable, which is exactly what the physical part does.

Back to the FreeCAD Engineering Handbook

Run the checklist before the next design review

Motion sweep, frozen pose, converged mesh, verified reaction forces. Four checks separate a stress number from a stress result, and the whole sequence fits into a single working day on a typical bracket assembly.