Skip to content

Commit 3735897

Browse files
committed
Add the post on where shear locking comes from
The post derives the effect from the displacement field of a bent rod and links to the case study that measured it. The case study states the flat bar's coarse-mesh error as 60%. Subscripts, superscripts and summation limits render smaller than the equation body they sit in.
1 parent f09847b commit 3735897

3 files changed

Lines changed: 72 additions & 3 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Where Shear Locking Comes From
3+
description: >-
4+
In pure bending the displacement of a rod contains squared terms in the
5+
coordinates. A linear 8-node brick cannot build a squared term, which is the
6+
mathematical source of shear locking.
7+
summary: >-
8+
In pure bending, the displacement of a rod contains squared terms in the
9+
coordinates. A linear 8-node brick element cannot build a squared term, and a
10+
quadratic 27-node brick can. This is the mathematical source of shear locking
11+
in bending problems.
12+
date: "2026-10-02"
13+
icon: rulers
14+
---
15+
16+
In my [case study on shear locking](/case-studies/shear-locking-fea), a finite element (FEM) simulation of a bent flat steel bar came out about 60% too stiff with linear bricks on a coarse mesh, and still about 10% off after refining it to four elements through the thickness. Shear locking is an effect in simulations where the modelled rod resists bending more than a real rod does. The case study showed it experimentally, and here I want to show where it comes from mathematically.
17+
18+
Imagine taking a cylindrical rod and bending it into an arc of a circle by applying a moment, a pure turning effect with no net force. There is no shear force, no twist and no stretching of the axis. That is pure bending. In practice it rarely appears on its own, and anything worth simulating is more complicated. But any slender part that bends contains this deformation at its core. If an element cannot represent pure bending, it cannot represent the bending part of a more complicated problem either, so the defect appears there too. How big it is will differ from problem to problem.
19+
20+
FEM cuts the body into small elements and replaces the unknown displacement inside each one by a simple function fixed by its values at the nodes. The solver finds those nodal values. For bending, brick (hexahedral) elements are standard engineering practice, and there are two common classes, linear and quadratic. Measure the coordinates from the centre of the element, $\tilde x=x-X$, $\tilde y=y-Y$, $\tilde z=z-Z$. In the linear brick every displacement component is a sum of eight terms,
21+
22+
$$
23+
u_x=\sum_{i,j,k\in\{0,1\}}\alpha_{ijk}\,\tilde x^{i}\tilde y^{j}\tilde z^{k},
24+
$$
25+
26+
and the same for $u_y$ with coefficients $\beta_{ijk}$ and $u_z$ with $\gamma_{ijk}$. Eight coefficients need eight known values, so the element has 8 nodes, the corners, and the nodal values fix the coefficients one to one. In the quadratic brick the powers run over $\{0,1,2\}$, which gives 27 coefficients and 27 nodes. The question I am asking is whether the exact solution of the bending problem can be written in the form an element can build. If it can, the solver is able to find it. If it cannot, no choice of nodal values will ever reproduce it.
27+
28+
So first, the exact solution. In §17 of Landau and Lifshitz, Theory of Elasticity (Chapter II, Bending of rods), a rod bent with radius of curvature $R$ and made of a material with Poisson's ratio $\sigma$ has the displacement field
29+
30+
$$
31+
u_x=\frac{xy}{R},\qquad u_y=-\frac{x^2+\sigma(y^2-z^2)}{2R},\qquad u_z=-\frac{\sigma yz}{R}.
32+
$$
33+
34+
Here $u_x$ and $u_z$ contain only products of different coordinates, but $u_y$ contains $x^2$, $y^2$ and $z^2$.
35+
36+
The linear brick cannot build these squares. Along one edge it has two nodes, at $\tilde x=\pm a$, and at both of them $\tilde x^2=a^2$. The element cannot tell the square from a constant. Now let's see what this does to the strain. The shear strain is
37+
38+
$$
39+
u_{xy}=\frac12\left(\frac{\partial u_x}{\partial y}+\frac{\partial u_y}{\partial x}\right),
40+
$$
41+
42+
and in pure bending it must be zero everywhere. Differentiating the element's own sums,
43+
44+
$$
45+
\frac{\partial u_x}{\partial y}=\sum_{i,k}\alpha_{i1k}\,\tilde x^{i}\tilde z^{k},\qquad
46+
\frac{\partial u_y}{\partial x}=\sum_{j,k}\beta_{1jk}\,\tilde y^{j}\tilde z^{k}.
47+
$$
48+
49+
In the second sum $\tilde x$ has disappeared, because $u_y$ is only linear in $\tilde x$. So only $u_x$ can produce an $\tilde x$ in the shear:
50+
51+
$$
52+
2u_{xy}=\alpha_{110}\,\tilde x+\alpha_{111}\,\tilde x\tilde z+\ (\text{terms in }\tilde y,\tilde z\text{ only}).
53+
$$
54+
55+
No shear means $u_{xy}=0$ for all $x$ in the element, which requires $\alpha_{110}=0$. But $\alpha_{110}$ is the coefficient of $\tilde x\tilde y$ in $u_{xx}$:
56+
57+
$$
58+
u_{xx}=\frac{\partial u_x}{\partial x}=\sum_{j,k}\alpha_{1jk}\,\tilde y^{j}\tilde z^{k} .
59+
$$
60+
61+
Pure bending needs $u_{xx}=y/R=(Y+\tilde y)/R$, which requires $\alpha_{110}=1/R$. The two conditions contradict each other: $\alpha_{110}=1/R$ for the right bending strain, $\alpha_{110}=0$ for no shear. This holds whatever the nodal values are. The exact solution does not belong to the set of functions a linear brick can build. In the exact field the $x^2$ term in $u_y$ cancels the shear that the $xy$ term in $u_x$ creates, and the linear element has no such term. The element therefore reports a shear that does not exist, that fake shear stores energy, and the element comes out too stiff. That is shear locking.
62+
63+
In the quadratic brick every term in the three components has each coordinate at power at most two, so the whole field is in the family, $x^2$, $y^2$ and $z^2$ included. The solution belongs to the set of functions a quadratic brick can build.
64+
65+
What remains is to be sure that the solver actually finds it. A real elastic body settles into the state of minimum total potential energy, which is the elastic strain energy minus the work done by the external loads. FEM minimizes the same quantity, but only over the functions the mesh can build. If the exact solution is among them, it is also the minimum among them, so the solver finds it. This holds for a linear elastic material with proper boundary conditions and nothing too exotic in the loads.
66+
67+
So the linear brick does not merely give a less accurate answer in bending. Bending is a state it cannot represent, so a stiffness error is built in, and refining the mesh only shrinks it, as the bar showed, from about 60% on the coarse mesh to about 10% on the fine one. The quadratic brick contains that state, which is why it is the better element for this kind of problem. And as the case study showed, a coarse mesh of quadratic bricks landed within 1% of the exact answer and ran two to seven times faster than the refined linear mesh.

‎src/content/case-studies/shear-locking-fea.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ title: "Shear Locking: When a Coarse Mesh Gets a Bending Shaft Right by Accident
33
description: >-
44
A finite-element model of a steel shaft predicts its bend to within five
55
percent by accident: two unrelated errors happen to cancel out. Redesigning
6-
the geometry shows the same element type can be 50% off.
6+
the geometry shows the same element type can be 60% off.
77
summary: >-
88
A finite-element model of a steel shaft, built with straight-edged elements,
99
predicts the bend of the part to within about five percent of the exact
1010
answer. That agreement turns out to be an accident: two unrelated errors
1111
happen to cancel each other out. Redesigning the geometry makes it obvious
1212
that using straight-edged elements for a bending problem can lead to a
13-
prediction that is, in the worst case, 50% off.
13+
prediction that is, in the worst case, 60% off.
1414
icon: gear-wide-connected
1515
order: 4
1616
---
@@ -19,7 +19,7 @@ Picture a robotics company building an arm meant to lift around fifty kilograms
1919

2020
A finite-element model works by cutting a solid part into a mesh of small, simple pieces, called elements, solving the equations of elasticity on each piece, and stitching the results back together. The cheapest element type has straight edges and predicts how the material inside it moves in the simplest way the geometry allows: a straight line between its corners. A richer element type carries an extra point along each edge, so its edges can curve, letting it represent displacement fields that are themselves curved. For most everyday engineering questions the difference between the two barely matters, and reaching for the cheaper, straight-edged element is the sensible default. But in some cases that won't work.
2121

22-
As the numbers below will show, a shaft bent under a sideways load and modelled with straight-edged elements can look accurate on a coarse mesh, and even more accurate on a fine mesh, yet be accurate for the wrong reason. There is also a chance it will not be accurate at all, in the worst case coming out about 50% off the actual physical result.
22+
As the numbers below will show, a shaft bent under a sideways load and modelled with straight-edged elements can look accurate on a coarse mesh, and even more accurate on a fine mesh, yet be accurate for the wrong reason. There is also a chance it will not be accurate at all, in the worst case coming out about 60% off the actual physical result.
2323

2424
To see this cleanly, let's look at two related models that I built and ran in FEniCSx, an open-source finite-element solver, with the mesh itself generated in Gmsh. The first is a solid steel rod, eight millimetres across, modelled as a full three-dimensional shape, clamped rigidly on one face and pushed sideways at the free end, at two lengths, 100 millimetres and 500 millimetres. In most real cases a face isn't clamped rigidly like this, so I also ran a version that clamps only part of the surface, to reflect reality more closely. But that version has no clean analytical solution, so for simplicity I'll work through the rest of this case study in the textbook, fully-clamped approximation. Extending the logic to the more realistic partially-clamped case from there would be trivial: which surface gets clamped is a boundary condition, not a change to the equations of elasticity or the solver that resolves them, so a method already checked against the exact formula in the idealized case carries the same confidence into the more realistic one. The second model is a flat bar of the same material, eight millimetres wide and two millimetres thick, bent about its thin axis, clamped and loaded the same way at the same two lengths. Both were solved twice over, once with the straight-edged elements and once with the curved ones, at two mesh densities each: a coarse mesh and a mesh refined enough that further refinement barely changes the answer. The steel is a standard structural grade, and the load in every case was sized so the peak stress stayed comfortably under yield and the tip moved only a small fraction of the part's length, an assumption that must hold true in a machine that is reusable and lasts years.
2525

‎src/pages/Article.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
li { margin-bottom: .4rem; }
2424
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
2525
@media (max-width: 575px) { font-size: 1rem; }
26+
27+
.katex .reset-size6.size3 { font-size: .6em; }
2628
}
2729

2830
.table-wrap {

0 commit comments

Comments
 (0)