Validation / 9 of 11
Tie patch test
Parts of an assembly are often meshed on their own, so where they are joined the nodes on the two sides do not line up. A tie joins such surfaces without moving them. The first thing a tie has to get right is the simplest load there is: a uniform stress must pass through it unchanged. This is the patch test, applied across the tie.
| Reference | KoFEM | Difference |
|---|---|---|
| 100.00 MPa | 100.00 MPa | +0.00 % within ±0.01 % |
The problem


| 40, 60 mm | |
| 1 mm | |
| 40 × 40 mm | |
| 210 GPa | |
| 0.3 | |
| 100 MPa |
| Supports | Symmetry: Ux = 0 on x = 0, Uy = 0 on both y = 0 faces, Uz = 0 on both z = 0 faces. |
|---|---|
| Load | σ·W·H in +x as a force on the far end face. |
| Tie | The two facing faces, by constraint (MPC), whole surface. |
| Measured | Largest von Mises stress over the model (nodal average). |
Analytical solution
Pull a block with a uniform traction on one end and let it slide freely on symmetry planes on the other three sides. Every point is then in the same state of uniaxial stress,
and the displacement is linear in the coordinates. Cut the block in two, pull the parts a gap apart and tie them: the tie bridges the gap rigidly, so the gap carries no strain, and the stress state is the same in both parts. Linear elements represent a linear field exactly, so a correct model reproduces to round-off, whatever the mesh. Any stress variation in the result is an error of the tie.
Finite element model
| Mesh | Netgen, 10 mm maximum element size: 742 linear 4-node tetrahedra (P1) |
|---|---|
| Unknowns | 276 nodes, 828 degrees of freedom |
| Material | Linear elastic, isotropic |
| Solver | The app's default solver (conjugate gradients with algebraic multigrid, KoFEM's Rust module, build fem-45b08a9e444e); geometry and mesh by the KoFEM engine (OCCT, Netgen), the WebAssembly build the app runs: engine-3397ae8ea1eb |
The two blocks are separate solids in one STEP file. Netgen meshes each on its own with linear tetrahedra and a 10 mm maximum element size. The edges of the two facing squares are divided alike, but the nodes inside them do not match. The tie makes each node of one face (the slave side) follow the other (master) face,
and the solver eliminates the slave unknowns from the system. How the weights are chosen decides whether the test is passed.
A node-to-surface tie takes them from the point the slave node projects onto. The node then follows the master face exactly, but between slave nodes the two faces interpolate differently, so the traction does different work on the two sides and a constant stress does not cross the tie exactly.
KoFEM's tie uses the dual mortar method on linear elements. It imposes the tie in the integral sense,
with multiplier functions on the slave face that are dual to its shape functions, so each equation still gives one slave node in terms of master nodes. The functions sum to one, so the equations add up to : a constant traction is transferred exactly. The integrals are taken over the exact overlap of every slave face with every master face (polygon clipping), so no quadrature error is left.
Results
| Quantity | largest von Mises stress |
|---|---|
| Reference | σ (uniform) = 100.00 MPa |
| KoFEM | 100.00 MPa |
| Difference | +0.00 % within ±0.01 % |
Discussion
KoFEM's largest von Mises stress is for the applied . The difference is the solver's convergence tolerance: the test is passed, across the tie as everywhere else. A tie that fails it shows stress jumps at the interface that do not go away under mesh refinement. That is why node-to-surface ties are known for noisy stresses along mismatched interfaces, and why the mortar method became the standard for tying non-matching meshes (Puso 2004).
KoFEM uses node-to-surface only on quadratic elements, where its mortar integrals are not implemented yet; there the tied nodes follow the master face's quadratic field. See the tied cantilever, and the tied cylinder for a curved interface.
Reproduce
In the app: open the model, then Studies → Static 1 → Run static solve, select the result plot and set Field to Ux. The Result summary shows Max Ux 4.762e-2 mm.
Or build it yourself, as this page's number was built:
- Import tie-patch-test.step.
- Mesh with a 10 mm maximum element size, linear elements.
- Material Steel: E = 210000 MPa, ν = 0.3.
- Support “Symmetry x”: Ux = 0 on the face through (0, 20, 20).
- Support “Symmetry y”: Uy = 0 on the faces through (20, 0, 20), (71, 0, 20).
- Support “Symmetry z”: Uz = 0 on the faces through (20, 20, 0), (71, 20, 0).
- Load “Tension”: force (160000, 0, 0) N on the face through (101, 20, 20).
- Run the static study. The Results panel compares largest von mises stress with σ (uniform).
References
- B. M. Irons and A. Razzaque, “Experience with the patch test for convergence of finite elements”, in A. K. Aziz (ed.), The Mathematical Foundations of the Finite Element Method with Applications to Partial Differential Equations, Academic Press, 1972, 557–587.
- B. I. Wohlmuth, “A mortar finite element method using dual spaces for the Lagrange multiplier”, SIAM Journal on Numerical Analysis 38 (2000) 989–1012.
- M. A. Puso, “A 3D mortar method for solid mechanics”, International Journal for Numerical Methods in Engineering 59 (2004) 315–336.
- M. A. Puso and T. A. Laursen, “A mortar segment-to-segment contact method for large deformation solid mechanics”, Computer Methods in Applied Mechanics and Engineering 193 (2004) 601–629.
KoFEM is research software and is not certified for safety-critical design. It solves linear-static, linear-elastic problems. Check results that matter against your own references.