Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bricks of two sizes

The question. Halving every brick of a body multiplies its unknowns by eight and its solving time by more. Most of the body did not need it. How can bricks be made small only where small bricks are needed?

The previous chapter ended with a map of where the bricks are too coarse for the stress, and How fine is fine enough? showed that some quantities settle slowly as bricks shrink. In the simulator’s arm the troublesome places are few: thin parts of muscles one or two cubes across, the bands where tissue attaches to bone, the places where bodies touch. Making every cube of every muscle smaller to serve them is the most expensive way to get accuracy there.

By the end you will be able to say what keeps small and large bricks joined where they meet, why neighbouring bricks may differ in size by a factor of two at most, and where refining pays.

Small bricks next to large ones

Take a square cut into four smaller squares, next to a square that is not. Along the edge they share, the large square has two corners and the small squares have three nodes: the same two corners and one in the middle.

That middle node is a hanging node. It belongs to the small squares and is not a corner of the large one. Left free, it could move away from the large square’s edge, and the body would open a crack there, or overlap itself. Inside the large square, the edge stays a straight line between its two corners, as the interpolation of a brick requires; the small squares on the other side must follow that line.

The cure is a tie: the hanging node is not given unknowns of its own. Its position is fixed as the average of the positions of the two ends of the large square’s edge,

In words: the middle node is always halfway along the large square’s edge. Then each small square’s edge, a straight line from a corner to the middle node, is exactly the half of the large square’s edge it lies on. Write the large square’s edge as for from 0 to 1. On the first half, the small square’s edge at its own from 0 to 1 is

which is the large square’s edge at ; the second half works the same way. So the two sides agree at every point of the edge, and the body stays in one piece (proved). A uniform stretch or turn, which moves every point by the same linear rule, puts the middle of an edge halfway between its ends anyway, so the tie does not disturb it, and a mesh with ties carries such a deformation exactly.

In three dimensions the same holds for a brick’s face: a node in the middle of a large brick’s edge is tied to the average of the edge’s two ends, and one in the middle of its face to the average of the face’s four corners. A tie is the same kind of fixed weighted average that ties a smooth surface to the bricks that carry it, here applied to a node.

The forces work the other way. A force on a tied node is passed to the two ends it is tied to, half to each, because a small move of either end moves the tied node by half as much.

Two to one

Ties are simple when each large edge meets exactly two small ones. If a square could sit next to squares a quarter of its size, an edge would carry three hanging nodes, and refinement could jump across a few bricks from very coarse to very fine, where the field changes too abruptly to be represented. Refined meshes are therefore kept in 2:1 balance: no brick has a neighbour across a face that is more than one level finer, so that neighbouring bricks differ in size by a factor of two at most. When a square is divided, any neighbour that would then be two levels coarser is divided too, and so on outward, until the rule holds everywhere.

A mesh built by dividing squares into four, and those into four again, is a quadtree; dividing bricks into eight gives an octree. Large solid-mechanics computations on lattices like the simulator’s are refined this way, with 2:1-balanced octrees whose hanging nodes are held to their coarser neighbours (Badia et al. 2021).

Where refining pays

Refinement should go where the error is, and not where it is easiest to put it.

  • Thin parts. A part of a body only one or two bricks thick cannot bend correctly, whatever the element (the locked brick, and the next chapter). It needs several bricks across.
  • Attachments and contact. Where tissue is tied to bone, or presses on another body, the stress changes fastest; the last chapter found the contact pressures of the arm as spikes on a few points.
  • Where the error map says. The error indicator estimates the error brick by brick, and refining the bricks where it is largest is the oldest use of it: an estimate that approaches the true error as the bricks shrink is what makes this work (Zienkiewicz & Zhu 1992b).

One place it does not pay is “the surface”. It seems natural to refine wherever a body’s surface cuts the lattice. But the simulator’s muscles are slender: at 8 mm about 60 % of their cubes are cut by their surface, so refining the surface is nearly refining everything.

A worked example

A tie by hand. A large square’s edge runs from a corner that has moved down 0.10 mm to one that has moved down 0.30 mm. The tied middle node moves down mm. A quarter of the way along the edge, the small square on the fine side puts the material at mm, and the large square on the other side at mm. The two sides agree.

A bar with a neck. The slice of the bar of How fine is fine enough?, 60 mm by 10 mm, keeps only its lowest 2.5 mm between 25 and 35 mm from the wall: a thin neck, like a muscle narrowing to its tendon. It is held still at the wall and loaded with 0.005 N at its free end, on four-node squares of the simulator’s kind (one mean volume change each), with a bulk modulus 1,000 times its shear modulus. There is no exact answer for this shape, so a reference is computed on nine-node squares of 0.625 mm: the tip moves 3.078 mm.

SquaresUnknownsTip deflectionError
2.5 mm everywhere2224.594 mm+49.3 %
1.25 mm everywhere7803.248 mm+5.5 %
0.625 mm everywhere2,9043.093 mm+0.49 %
2.5 mm, one level finer near the neck3123.245 mm+5.4 %
2.5 mm, two levels finer near the neck7123.093 mm+0.48 %
2.5 mm, one level finer along the whole surface5483.239 mm+5.2 %

Two levels of refinement round the neck’s inner corners give the accuracy of the finest uniform mesh with a quarter of its unknowns, 712 against 2,904. Refining the whole surface by one level costs 548 unknowns and buys no more than refining the neck alone, with 312: in this slender bar most squares touch the surface.

Try it

The bar is drawn in its deflected shape, each square coloured by its size; red dots mark the tied nodes, with short lines towards the two nodes each is tied to. The plot shows the error in the tip deflection against the number of unknowns, both scales logarithmic, for uniform squares, refinement near the neck and refinement along the surface.

  1. Check the worked example. The lab opens with two levels near the neck: 712 unknowns, 32 tied nodes, a tip deflection of 3.093 mm against the reference’s 3.078 mm, 0.48 % over.
  2. Take the refinement away. Choose 2.5 mm everywhere. The neck is one square deep, and the tip moves 4.594 mm, half as much again as it should: one square through the depth bends far too easily in this element.
  3. Predict, then check. One level near the neck adds 90 unknowns. How close will it come to uniform 1.25 mm squares, which add 558? Within a tenth of a percentage point: 5.4 % against 5.5 %.
  4. Find the ties. With one level, 10 nodes are tied; with two, 32. Each sits in the middle of a large square’s edge. Every red dot moves exactly to the middle of the edge it lies on, however far the bar bends.
  5. Refine the surface. Choose one level along the whole surface. Of the 84 coarse squares, 52 touch the surface and are divided, and the mesh has 548 unknowns for the error that refining the neck reaches with 312.
  6. Read the plot. The refined points lie below the uniform line: for the same error, fewer unknowns.

What this model leaves out

  • Refinement in the simulator’s tissue. The simulator’s tissue lattices have cubes of one size. Their thin parts, attachments and contacts are resolved only as finely as the whole body.
  • Refinement driven by the error map. Here the refinement goes where the neck is known to be. Refining wherever the error indicator is largest, solving again, and repeating is the general method.
  • Coarsening. Bricks larger than the lattice where nothing happens would save more.
  • Ties in three dimensions on cut cubes. A tied node of a cube that the surface cuts is tied like any other, but how accurate refined cut cubes are has not been measured.

Summary

  • A node in the middle of a large brick’s edge or face, where smaller bricks meet it, is tied to the average of that edge’s or face’s corners, so that the two sides agree everywhere and the body stays in one piece.
  • Meshes are kept in 2:1 balance: neighbouring bricks differ in size by a factor of two at most.
  • Refining where the error is, at thin parts, attachments, contact and where the error map points, buys most of the accuracy for a fraction of the unknowns: on the necked bar, the finest uniform mesh’s accuracy for a quarter of its unknowns.
  • Refining “the surface” of a slender body is nearly refining all of it.

Next: smaller bricks are one way to more accuracy. Bricks whose edges can bend are another: Bricks that can curve.