5. Reading displacement, reactions and error
Can the nodes be right while the field is wrong?
Section titled “Can the nodes be right while the field is wrong?”In the square investigation, the exact displacement is quadratic in . A Q1 field is only linear in along a horizontal line inside each rectangular cell. It can agree at every vertex and still miss the curve between vertices.
This example makes that distinction precise. We will derive errors from the exact curve, then use them to interpret displacement, stress and reaction. The calculation applies to the uniform square mesh and the stated constant coefficients, not to every problem that happens to use Q1 elements.
Scale the coordinates before comparing errors
Section titled “Scale the coordinates before comparing errors”Let , , and , with . On the dimensionless unit square,
For cells along an edge, the dimensionless cell width is . Use for the piecewise-linear interpolant of the exact nodal values. Inside a cell beginning at , put . Direct subtraction gives
Displacement error is zero at each endpoint, and derivative error integrates to zero across the cell. The latter means the interpolant satisfies the weak equation for this load and mesh. With the fixed-edge constraint giving a unique solution, it is the finite-element solution in exact arithmetic.
Now integrate the squared errors. The integral contributes a factor one; there are strips in :
The norm measures displacement error across the domain; the seminorm measures error in its gradient. Here the latter is also axial-strain error. The numerical-simulation path gives the wider interpretation of these norms.
| Cells per edge | Displacement error | Gradient error |
|---|---|---|
| 8 | ||
| 16 | ||
| 32 | ||
| 64 |
These are analytic interpolation predictions in dimensionless coordinates, rounded for reading. Halving the cell width divides displacement error by four and gradient error by two. A measured rate uses ; the two predictions are and .
Why a free edge can show a nonzero computed stress
Section titled “Why a free edge can show a nonzero computed stress”The exact stress is . Within each vertical cell strip, the derivative of the interpolated displacement is constant, equal to the derivative of the exact curve at the strip midpoint. On the final strip, that midpoint is , so the raw finite-element stress at the right boundary is
At , this is , although the prescribed traction is zero. The natural boundary condition entered the work equation; Q1 does not enforce its stress derivative pointwise at the edge. The discrepancy decreases linearly with .
At the left edge, outward traction from the raw element stress gives the resultant . For , that is . The algebraic support reaction is instead up to solve error: it is recovered from the complete assembled force equations, as derived in virtual work.
These are different observations. Calling both “reaction” without saying how they were calculated creates a false contradiction. The Python program prints the algebraic reaction. The boundary-stress values here come from differentiating the analytic Q1 interpolant.
Read the program’s reaction observation.
Energy measures another part of the error
Section titled “Energy measures another part of the error”For this conforming, exactly integrated problem, the error is orthogonal in elastic work to every admissible finite-element test function, including . Consequently,
In this square, direct integration of the axial strain error gives
The prediction is . It approaches the exact from below for these nested spaces, fixed loads and exact integration. Changing constraints, quadrature, geometry or the physical load while refining would invalidate that comparison.
Make a useful mesh study
Section titled “Make a useful mesh study”In a working copy of the Python example, change only
CartesianMesher(cells=(16, 16)) to (8, 8), (32, 32) and (64, 64).
Keep the rectangle, all bindings, the boundary meanings and solver settings
fixed. Before running, predict what each observation will tell you:
- The integrated body load stays the same because geometry and load stay fixed.
- The algebraic reaction remains its opposite; this tests balance, not the displacement error order.
- Vertex displacement agrees with the quadratic at the vertices in this special problem; vertex-only comparisons miss the interpolation error.
- Strain inferred inside elements improves more slowly than displacement.
The familiar refinement exercise “compare successive plots” is therefore too weak on its own. Define the observation first. If you need a field norm, integrate the error between vertices instead of averaging only vertex errors. For a stress observation, specify the element side or recovery procedure.
Separate numerical accuracy from physical meaning
Section titled “Separate numerical accuracy from physical meaning”The original example has . Solving its linear equations
more accurately does not turn that into a realistic small-strain deformation.
Increasing length_scale to while holding the
geometry fixed reduces this strain to 0.01 because it reduces the load. Changing
the plot’s displacement scale has no such physical effect.
Other diagnostics answer other questions:
| Observation | First interpretation to examine |
|---|---|
| A body can translate without resistance | Missing displacement constraint or a deliberate free rigid motion |
| Reaction points with the load | Normal/sign convention or which body’s force is being reported |
| Reaction changes when only the plot scale changes | Presentation has been confused with physical displacement |
| A stiffer material shows unchanged displacement | Check whether the load also contains the changed coefficient |
| A refined mesh is much stiffer in nearly incompressible response | Investigate locking and the chosen formulation |
| A peak stress grows near an ideal sharp corner | Examine regularity and what pointwise quantity is being requested |
The last two observations concern other physical/modeling regimes. The smooth manufactured solution here does not contain a stress singularity. A singular corner in another geometry can make a pointwise maximum a poor convergence target; a displacement away from it or an integrated energy asks a different, often more useful question. Likewise, poor near-incompressible behavior cannot be diagnosed by this experiment.
A small capstone
Section titled “A small capstone”Prepare a one-page explanation of the square for someone who has not seen the software. Include the boundary sketch, equation, three hand predictions, and the measured reaction from your run. Then answer:
- What is fixed when you refine the mesh?
- Why can the nodal displacement be exact while edge traction is not?
- Why is the printed support reaction preferable to raw boundary stress for the total force balance in this problem?
- What change makes the strain smaller, and what change only makes the picture look smaller?
- Which equations move into reusable components, and which remain local to the physical question?
For an additional calculation, show that the maximum dimensionless displacement interpolation error is , attained at a strip midpoint. Then calculate it for and compare with the norm above. Check: the maximum is ; a maximum and a domain norm need not be equal.
Reading and next connections
Section titled “Reading and next connections”- Klaus-Jürgen Bathe, Finite Element Procedures for Solids and Structures, MIT OpenCourseWare, Spring 2010, lecture 8: Numerical Integrations, Modeling Considerations, for stress calculation and numerical integration.
- David Roylance, The Kinematic Equations, MIT, September 19, 2000, pp. 4–6 on finite strain, for the approximation discarded by infinitesimal strain.
Continue with numerical simulation to compare error measures and discretizations, or heat transfer to reuse the balance–constitutive-law–boundary reasoning with a scalar field.