Insights · Optimization · 4 min read
From an optimized shape back to CAD
Topology optimization answers the question of where material should be. What it returns is not a part. Here is what stands between the two, and how the gap is closed.
Give an optimizer a block of material, the loads it must carry and a weight budget, and it will tell you which part of the block is worth keeping. The method is more than thirty years old, it is available in most major simulation packages, and it produces shapes that few engineers would have drawn.
The example above runs in your browser. Move the load and watch the structure rearrange itself: members in tension in blue, members in compression in amber.
What the optimizer actually returns
The result of a topology optimization is a density: a number between zero and one for every small cell of the block. It is a picture of a part, not a part. To get a surface, one draws the boundary where the density crosses a threshold, and obtains a surface made of many thousands of small triangles.
A triangle mesh cannot be dimensioned, cannot be given a fillet or a tolerance, and cannot be changed by a designer except by starting again. In practice the optimized shape is therefore used as a sketch, and an engineer models a new part over it by hand. That step can take longer than the optimization itself, and the redrawn part is no longer the one that was analysed.
Rebuilding the result as surfaces
The alternative is to reconstruct the shape automatically as what a CAD system expects: a closed set of smooth spline faces that meet along shared edges. The surface of the optimized shape is divided into four-sided regions, a spline face is fitted to each, and neighbouring faces are joined so that the solid is watertight.
In the clip, a bearing housing is reduced to 35% of its material by the optimizer and rebuilt as a solid of 118 faces. Functional surfaces are not approximated at all: the bore and the bolt holes are the original cylinders, and the underside is the original plane.
The last step is the one that counts
A rebuilt part is not the optimized one: fitting smooth faces moves the surface slightly. The loop is therefore closed by analysing the rebuilt solid again, with the same loads and supports. Only then is the part that leaves the process the part that was verified.
Design, simulate, optimize, rebuild, verify. Each step is well understood on its own. The work is in making them operate on one model, so that nothing has to be redone by hand in between.