Generative Design & Topology Optimization

Everything in Simulation asks how a fixed shape behaves. Topology optimization asks the opposite question: given where a part is held and where it is pushed, which material is actually doing the work? The solver keeps that material, removes the rest, and hands back the lighter part as a mesh you can print.

The Idea in Plain Words

The solver starts with the whole part, split into small pieces (the elements of a simulation mesh). It loads the part, measures how hard each piece works, then thins out the pieces that carry little and keeps the ones that carry a lot. It repeats this until only the share of material you asked to keep is left. What remains is usually a set of struts running from the load to the supports, because that is where the force travels.

A Lighter Bracket
NEW CAD BOX SIZE 80,40,10 SET ?bracket
AFTER CAD ?bracket FACE AT 0,20,5 SET ?mountFace
AFTER CAD ?bracket FACE AT 80,20,5 SET ?loadFace
AFTER SIM MESH ?bracket ELEMENT TYPE "tet10" SIZE 4 SET ?femesh

AFTER CAD OPTIMIZE TOPOLOGY OF ?femesh KEEPING 0.4 ITERATIONS 20 FIXED SUPPORT ON FACE ?mountFace FORCE 0,0,-500 ON FACE ?loadFace SET ?optimized

AFTER EMIT "Kept " & ?optimized("elements_kept") & " of " & ?optimized("elements_total") & " elements"
AFTER EMIT ?optimized("stl")
(* The lighter part, as an STL file ready for a 3D printer *)

The part is held still at ?mountFace and pushed down with 500 newtons at ?loadFace. KEEPING 0.4 asks for 40% of the material to stay. The faces come from CAD ... FACE AT, exactly as they do for a static study, so a part you have already simulated can be optimized with the same handles.

What You Can Set

Modifier What it does If left out
OF ?femeshThe mesh from SIM MESH. Required.-
KEEPING nThe share of material to keep, from 0 to 10.4
ITERATIONS nThe most rounds of solve, measure and thin out. The solver stops sooner once the shape stops changing20
FIXED SUPPORT ON FACE ?faceThe face that is held stillThe face at the lowest x
FORCE x,y,zThe push, in newtons, along each axis0,0,-500
ON FACE ?faceThe face the force pushes onThe face at the highest x
SMOOTHING mmHow far apart two pieces can be and still be smoothed together. Larger values give thicker, simpler struts1.5 times the mesh size

What Comes Back

The result is an object. stl is the path of the optimized part as a triangle mesh. elements_kept and elements_total say how much of the mesh survived, volume_fraction is the share of material kept, triangles is the size of the STL, and history lists every round with its volume and how much the shape changed, so you can see it settle.

Why the result is a mesh, not a CAD solid. The shapes topology optimization produces are organic: rounded struts and holes nobody would draw by hand. They are meant for 3D printing, so the answer is an STL, the format printers and slicers read. Use it as it is, or as a guide to redraw a cleaner part in CAD.
A finer mesh gives a finer answer. The solver can only keep or remove whole elements, so SIZE on SIM MESH sets how much detail the result can have. A coarse mesh is the quick way to see the idea; a finer one shows the real shape. Each run costs 25 queries; see Quotas & Pricing.