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.
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 ?femesh | The mesh from SIM MESH. Required. | - |
KEEPING n | The share of material to keep, from 0 to 1 | 0.4 |
ITERATIONS n | The most rounds of solve, measure and thin out. The solver stops sooner once the shape stops changing | 20 |
FIXED SUPPORT ON FACE ?face | The face that is held still | The face at the lowest x |
FORCE x,y,z | The push, in newtons, along each axis | 0,0,-500 |
ON FACE ?face | The face the force pushes on | The face at the highest x |
SMOOTHING mm | How far apart two pieces can be and still be smoothed together. Larger values give thicker, simpler struts | 1.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.
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.