Topology Optimization Explained: SIMP, Filters and a Bracket Example

Topology optimization decides where material goes inside a design space. Here is how the SIMP density method, compliance minimization, filtering and the optimality-criteria update work, two real runs of the 88-line code (an MBB beam and an L-bracket) with their numbers, how a result becomes a manufacturable part, the main tools, and how it differs from generative design.

Topology Optimization Explained: SIMP, Filters and a Bracket Example

Topology optimization is a finite-element method that decides where material should go inside a design space. You give it the space, the loads, the supports and a material budget, and it removes material that carries little load until the stiffest layout for that budget is left. Size optimization only changes thicknesses, and shape optimization only moves existing boundaries. Topology optimization can also create holes, so it finds the layout itself.

This guide, for mechanical and CAE students who know basic FEA, explains the SIMP density method, filtering and the optimizer's update rule. We then run our own Python port of the 88-line MATLAB code on a beam and an L-bracket, and show how a result becomes a part you can make.

In short

  • With penalty , an element at half density uses half the material but gives only of the solid stiffness. That is why SIMP results end up mostly solid or void.
  • Our run of top88(120, 40, 0.5, 3.0, 3.5, 1) on the half MBB beam stopped after 90 iterations. Compliance fell from 1,026.8 to 210.0 (79.5% lower) at 50% volume, and was within 1% of its final value by iteration 23 (Skill-Lync run, 23 Nov 2026).
  • Without a filter, the same beam formed checkerboard patches. On a 120 x 40 mesh the run had not converged after 400 iterations, and the 60 x 20 mesh gave a different layout.
  • Airbus applied topology optimization to A380 leading-edge ribs and fuselage door intercostals, with weight savings of the order of 103 kg per aircraft (as summarized by Chin and Kennedy, AIAA, 2016).
  • Altair's OptiStruct 2026 help recommends a minimum member size of 3 to 12 times the average element size. This control is how you stop the optimizer making bars too thin to cast or print.

What is topology optimization?

Topology optimization chooses the layout of material: how many members, where the holes are and how the load paths connect. Each element of a fixed mesh gets a design variable that says whether it holds material, and the optimizer changes those variables to improve an objective such as stiffness within a limit such as mass.

Engineers usually separate three kinds of structural optimization (Bendsøe and Sigmund, 2003):

TypeWhat the optimizer changesWhat stays fixedTypical use
SizeThicknesses, cross-section areas, gaugesThe layout and the shape of every boundarySheet gauges in a car body, rib thicknesses, truss member areas
ShapeThe position of existing boundaries (hole outlines, fillets)The number of holes and membersReducing a stress peak at a fillet or a hole edge
TopologyWhether each point holds material, so holes can appear and members can mergeOnly the design space, loads and supportsConcept layout of brackets, ribs and mounts
Three panels on the same 3 to 1 rectangle: size optimization changes the thickness of truss members in a fixed layout, shape optimization moves the outlines of three existing holes, and topology optimization creates its own holes, shown with our optimized half MBB beam.
Size, shape and topology optimization on the same design space. The topology panel is our own optimized half MBB beam (120 x 40 elements, sensitivity filter).

In practice the three run in sequence. Topology optimization gives a concept, a designer rebuilds it in CAD, and size and shape optimization then fine-tune it. Airbus UK engineers used exactly this sequence in Altair's OptiStruct to design 13 droop-nose ribs for the A380 in a five-week programme (Krog, Tucker and Rollema).

The method goes back to Bendsøe and Kikuchi's 1988 homogenization paper; a year later Bendsøe proposed the simpler power-law material model that became SIMP.

How does the SIMP density method work?

SIMP (solid isotropic material with penalization) gives every element a density between 0 (void) and 1 (solid) and makes its Young's modulus a power of that density. Intermediate densities are allowed, which makes the problem smooth enough for gradient-based optimizers. The power law makes them a bad deal, so the final design is mostly black and white.

The 88-line code uses the "modified SIMP" form (Andreassen et al., 2011):

Here is the modulus of the solid material, is a tiny modulus ( in the code) that keeps the stiffness matrix from becoming singular where material is removed, and is the penalty, usually 3.

Stiffness ratio E over E0 against element density for penalty 1, 2 and 3. With p = 3, density 0.5 gives a stiffness ratio of 0.125.
The SIMP stiffness curve. With a half-dense element costs 50% of the material for 12.5% of the stiffness, so the optimizer drives densities towards 0 or 1.

Think of each element as buying stiffness with material. Volume grows in proportion to , but stiffness grows as . For the same material, full density in one place and none in another gives more stiffness than a grey layer everywhere.

What problem does the optimizer solve?

The classic problem is compliance minimization with a volume constraint. Compliance is the work done by the load, . Low compliance means small deflections under the load, so minimizing compliance means maximizing stiffness for a fixed amount of material.

subject to

, and are the global stiffness matrix, displacement vector and load vector. is the displacement vector of element , and is the stiffness matrix of an element with unit modulus. is the number of elements, and is the allowed volume fraction (0.5 means "use half the design space"). If the element stiffness matrix and need a refresher, our FEA explainer and the stiffness matrix calculator cover them.

How are the sensitivities calculated?

The sensitivity is the derivative of compliance with respect to each element's density. It tells the optimizer how much stiffness each element would add per unit of extra material. For compliance it costs almost nothing, because it uses the displacements from the FE solve you have already done.

The term is twice the element's strain energy at unit modulus, so elements with high strain energy most deserve material. The derivative is never positive: adding material never makes a linear structure more flexible. Because compliance is "self-adjoint", no extra solve is needed; stress or frequency objectives need more work.

Why does topology optimization need a filter?

Without a filter, density methods produce checkerboards, alternating solid and void elements that look stiff only because of how bilinear elements behave (Díaz and Sigmund, 1995). The layout also changes with the mesh: refine it and new, thinner members appear. A filter fixes both by averaging over a radius , which sets a minimum length scale that does not depend on the mesh (Sigmund and Petersson, 1998).

The 88-line code offers two filters. Both use the weight , where is the distance between the centres of elements and , and is the set of elements within .

  • Sensitivity filter. It replaces each element's sensitivity with a weighted average of its neighbours'. It is a heuristic that works well. Here only prevents division by zero.
  • Density filter. It smooths the densities themselves, so stiffness comes from filtered "physical" densities and the sensitivities are corrected by the chain rule. Present , not , as the result.

We ran the half MBB beam four ways. The MBB beam, named after the German aircraft maker Messerschmitt-Bölkow-Blohm, is a simply supported beam with a central load; by symmetry only half is modelled. All four runs used 50% volume and .

Four optimized half MBB beams. No filter on a 60 x 20 mesh: checkerboard patches, compliance 203.1 after 53 iterations. No filter on 120 x 40: a different layout with finer checkerboards, compliance 202.0, not converged after 400 iterations. Sensitivity filter radius 1.5: clean bars, compliance 193.0 after 238 iterations. Density filter radius 1.5: clean bars with grey edges, compliance 201.0 after 318 iterations.
Our runs of the half MBB beam (50% volume, ). Without a filter, both meshes show checkerboards and give different layouts. With either filter, clean bars form. Compliance values include the penalized grey elements, so compare the black-and-white numbers in the text.

Unfiltered, refining the mesh from 60 x 20 to 120 x 40 changed the layout, and the finer run never settled: its largest density change was still 0.019 at 400 iterations, against the 0.01 stopping limit. The filtered runs converged in 238 (sensitivity) and 318 (density) iterations. Cut at density 0.5 into pure solid and void, the sensitivity-filtered beam has a compliance of 186.7 at 49.0% volume, against 201.9 at 50.2% for the unfiltered 120 x 40 beam: stiffer, with less material.

A larger radius gives thicker, simpler members but more grey at their edges (33% of elements between 0.1 and 0.9 with the density filter at ). Andreassen et al. used = 0.04 times the domain width (4.8 elements for a 120-element-wide mesh), and with a filter a finer mesh gave the same topology with smoother edges.

How does the optimality criteria update work?

The optimality criteria (OC) method is a simple update rule for problems with one volume constraint. Each element's density is multiplied by a factor based on its sensitivity, then limited by a move limit and the bounds 0 and 1. A Lagrange multiplier is found by bisection so that the new design uses exactly the allowed volume.

Here clip limits the value to the range to , with move limit and damping . Think of as a price for material: an element whose stiffness gain per unit of material beats the price () gains density, the rest lose it, and bisection adjusts the price until the budget is met exactly. The loop stops when no density changes by more than 0.01.

Here is the heart of our Python port, lightly simplified. It translates the MATLAB OC block of top88.m line by line.

l1, l2, move = 0.0, 1e9, 0.2
while (l2 - l1) / (l1 + l2) > 1e-3:          # bisection on the Lagrange multiplier
    lmid = 0.5 * (l2 + l1)
    xnew = np.maximum(0, np.maximum(x - move,
           np.minimum(1, np.minimum(x + move, x * np.sqrt(-dc / dv / lmid)))))
    xPhys = (H @ xnew) / Hs if ft == 2 else xnew   # density filter (ft = 2)
    if xPhys.sum() > volfrac * nel:
        l1 = lmid                                 # too much material: raise the price
    else:
        l2 = lmid
change = np.abs(xnew - x).max()                   # stop when change <= 0.01
x = xnew

The element stiffness matrix, node numbering and sparse assembly follow the paper exactly. To check a port, run the paper's own example: top88(60, 20, 0.5, 3, 1.5, 1) gave us 94 iterations and a compliance of 203.2.

What does a real topology optimization run look like?

We ran exactly the call printed on DTU's TopOpt page, top88(120, 40, 0.5, 3.0, 3.5, 1). That is a 120 x 40 element half MBB beam, 50% volume, , a sensitivity filter of radius 3.5 elements, and Poisson's ratio 0.3. The load is a unit point load at the top of the symmetry line, and the beam rests on a roller at the bottom corner.

Top: the full optimized MBB beam, a truss-like layout with a top chord, a bottom chord and diagonal members, loaded at mid-span and supported on rollers. Bottom: compliance against iteration, falling from 1,026.8 at the start to 210.04 at iteration 90, within 1% of final by iteration 23, with volume fraction held at 0.5.
Our run of top88(120, 40, 0.5, 3.0, 3.5, 1): the computed half is mirrored to show the whole beam. Compliance (blue) and volume fraction (green, dashed) by iteration.
  • Iterations: 90. Compliance fell from 1,026.8 for the uniform grey start (every ) to 210.04, 79.5% lower, and was within 1% of that by iteration 23. The other 67 iterations only sharpen edges.
  • Volume: 0.500 throughout, because the bisection enforces the budget every iteration.
  • Grey: 24.8% of elements finished between 0.1 and 0.9, mostly along member edges, because the filter radius is wide.

The layout is a truss: a top chord in compression, a bottom chord in tension and diagonals carrying the shear. The optimizer chose how many diagonals, their angles and their thicknesses.

How do you topology-optimize a bracket?

Make the design space the envelope the bracket may occupy. Mark regions that must stay solid (bolt bosses, pin lugs) or empty (clearance for other parts), add loads and supports, choose a volume fraction and let the optimizer remove the rest. Then threshold, smooth and rebuild the result in CAD.

Our L-bracket adds passive (forced-empty) elements, as section 5 of the paper describes. It is a 100 x 100 element box with the top-right 60 x 60 square kept empty, leaving 6,400 design elements. The top of the vertical arm is clamped, and a downward unit load is shared by five nodes at the tip. We used 40% volume, and a density filter of radius 3.

Left: L-shaped design space of 100 by 100 elements with the top-right square kept empty, the top edge clamped and a downward load at the tip. Middle: optimized density at 40% volume, compliance 261.5 after 359 iterations, two vertical members and a triangulated horizontal arm. Right: black-and-white version cut at density 0.57 with volume 0.400 and compliance 205.2.
Our L-bracket: design space, optimized density field, and the same design cut to solid and void at the same 40% volume.
  • The run converged in 359 iterations, with compliance falling from 1,896.5 to 261.5 (86.2% lower).
  • The vertical arm became two separate columns that act like a frame against the bending, and the horizontal arm became a triangulated truss.
  • 30.4% of design elements finished grey. Cut at density 0.568, which keeps the volume at exactly 0.400, and re-analysed as pure solid and void, the design has a compliance of 205.2, 21.5% lower than the grey value.

SIMP counts a grey element at of its stiffness, so the optimizer's own compliance is not a physical number while grey remains. Report stiffness from a fresh FE run on the cleaned geometry, and check stress in that run too, because compliance says nothing about the stress peak at the inner corner.

How do you turn a topology optimization result into a manufacturable part?

Treat the result as a concept, not a drawing: threshold the density field, smooth it, rebuild it as clean CAD, then re-analyse that CAD for stress, deflection, buckling and fatigue. Set the manufacturing process as a constraint before the optimization, not afterwards.

  1. Threshold. Choose a density cut-off, as we did at 0.568. Heaviside projection filters (Guest et al., 2004; section 5 of the 88-line paper) push the optimizer itself to give black-and-white designs with a minimum member size, so the choice of threshold matters less.
  2. Smooth and fit. The raw result is a staircase of elements. Altair Inspire, for example, smooths the result and then fits PolyNURBS surfaces to it so the geometry can be exported to CAD. Ansys's additive manufacturing workflow cleans up the optimized geometry in SpaceClaim and then validates it in Mechanical (Ansys help, 2024 R2); our additive manufacturing course in Ansys SpaceClaim covers that tool.
  3. Re-design in CAD. Rebuild bosses, mating faces and holes to exact dimensions, add fillets, and use ordinary features so the part can be dimensioned and toleranced.
  4. Verify. Check von Mises stress against the allowable for every load case, and buckling of slender members. Compliance optimization checks none of these.

Each process brings its own limits, and commercial tools let you set them as manufacturing constraints:

ProcessWhat limits the shapeConstraint to set
Metal additive (powder bed)Overhangs need supports. Powder must drain from internal cavities. There is a minimum wall thickness.Overhang angle and build direction (Ansys AM Overhang Constraint), minimum member size
Casting and mouldingThe part must come out of the die. Walls should be uniform, and faces need draft.Draw direction (single or split die), no holes along the draw, minimum thickness
MachiningThe tool must reach every surface. Internal cavities and undercuts are expensive or impossible.Tool or pull-out direction, extrusion (constant cross-section)
Sheet metalThe part is a formed sheet of constant thickness.Stamping constraint, or switch to size or bead optimization

Minimum member size matters most: without it the optimizer happily makes bars one element thick. OptiStruct's help recommends 3 to 12 times the average element size (6 to 24 mm on a 2 mm mesh) and warns that the control discourages small members without strictly forbidding them. The real limit comes from the process; GE's 2013 bracket challenge set a minimum wall of 0.050 in (1.27 mm) for printed titanium.

For printed parts, our Design for AM chapter covers overhangs, part consolidation and lattices, and our additive manufacturing primer explains the processes.

Where is topology optimization used in industry?

It is most common where mass is expensive, in aircraft structure, engine brackets and automotive parts. Published examples with numbers:

  • Airbus A380. Airbus used topology optimization to redesign A380 components including the inboard fixed leading-edge ribs and fuselage door intercostals. Airbus UK's rib work was done in Altair's OptiStruct. A 2016 AIAA paper by Chin and Kennedy summarizes the weight savings as of the order of 103 kg per aircraft. The original papers are Krog et al. (2004) and Grihon et al. (2004).
  • Bombardier wingbox ribs. The same AIAA paper reports that Bombardier used topology optimization in a passenger jet's wingbox ribs and cut the component's weight by 10%. The cited study was constrained to traditional design and manufacturing requirements.
  • GE jet engine bracket challenge (2013). GE and GrabCAD asked the public to lighten a titanium engine bracket within its original envelope under four load cases. From nearly 700 entries in 56 countries, the winner cut the mass from 2,033 g to 327 g, nearly 84%. GE printed and load-tested the top ten; its own designers had used in-house optimization tools to predict the outcome (Carter et al., 2014).
  • General Motors seat bracket (2018). With Autodesk's generative design, GM produced a seat bracket that is 40% lighter and 20% stronger than the original. It merges eight components into one 3D-printed part, chosen from more than 150 design options (Autodesk, 3 May 2018). It was a proof of concept, and it is an example of generative design, explained below.

Which software is used for topology optimization?

The main commercial tools are Altair OptiStruct and Inspire, Ansys Mechanical, Abaqus with Tosca Structure, and Autodesk Fusion's generative design. They solve the same kind of FE-based problem as our code, at 3D scale, with manufacturing constraints and tools to turn the result into geometry.

ToolWhat it offers for topology optimization
Altair OptiStructSolver-level topology, size and shape optimization. Its manufacturing controls include minimum and maximum member size, draw direction (single or split die, no-hole, stamping), extrusion, pattern repetition and symmetry. Altair has been part of Siemens since 26 March 2025.
Altair InspireA designer-facing interface: optimize, smooth the result, fit PolyNURBS surfaces and export geometry to CAD.
Ansys MechanicalStructural Optimization with density-based, level-set and mixable-density topology methods. It has member-size, pull-out direction, extrusion and AM overhang constraints. Ansys has been part of Synopsys since 17 July 2025.
Abaqus with Tosca StructureTopology, shape, sizing and bead optimization, built on Abaqus (Dassault Systèmes SIMULIA).
Autodesk FusionGenerative design with manufacturing methods: unrestricted, additive (X+, Y+, Z+ build directions), 2.5-, 3- and 5-axis milling, 2-axis cutting and casting.

If you set up the study in Ansys, our guide to choosing the right Ansys structural analysis explains the static model that the Structural Optimization system sits on.

What is the difference between topology optimization and generative design?

Topology optimization solves one well-defined problem and returns one optimized layout. Generative design wraps optimization in a design exploration: it runs many studies across materials, manufacturing methods and goals, and gives the engineer a set of candidate designs to compare, each already shaped for a process.

Topology optimizationGenerative design
OutputOne density or level-set field for one problemMany outcomes (GM's bracket study gave more than 150 options)
InputsDesign space, loads, supports, objective, constraintThe same, plus a list of materials and manufacturing methods to explore
GeometryElement field that needs smoothing and CAD rebuildUsually returns smooth, editable geometry for each outcome
Engineer's roleSet up the problem, interpret the result, redesignSet up the problem, then choose between trade-offs
ComputeOne optimization run (our 2D runs took seconds to minutes)Many optimizations; Fusion runs them as a cloud solve

Generative design builds on topology optimization, so learn the method first. Our article on AI CAD tools shows where generative design sits among newer AI-assisted tools.

What are the limits of topology optimization?

The method finds a stiff layout for a given mass under the loads you specify, and its limits come from that same sentence.

  • Only the loads you give it. A bracket optimized for one load case can be weak under another, so real studies combine several.
  • Stiffness is not strength. Compliance minimization ignores stress peaks, fatigue and buckling. Stress-constrained formulations exist but are harder to solve.
  • Settings matter. The result depends on penalty, filter radius, starting design and mesh; our two filters gave visibly different beams for the same problem.
  • Linear and static by default. Contact, plasticity, large deflection and crash loads need special formulations or a different approach.
  • Cleanup changes the answer. On our L-bracket the cut design was 21.5% stiffer than the grey number suggested, so always re-analyse the final geometry.

How do you learn topology optimization?

Start with linear static FEA: meshing, boundary conditions and reading stress plots. Then run the 88-line code or a port and change one setting at a time (penalty, filter radius, mesh), and finally learn a commercial tool on a real bracket. A weak FE model gives a confident but wrong optimum.

Skill-Lync's Pre-Graduate Program in Finite Element Analysis builds the FEA base. The Post Graduate Program in CAE covers HyperMesh pre-processing for solvers including OptiStruct. Our FEA book's meshing chapter explains the mesh-independence checks this method depends on, and the CAE engineer salary page shows what the role pays in India.

Frequently asked questions

Is topology optimization the same as FEA?

No. FEA analyses a design you already have. Topology optimization runs FEA again and again inside a loop (53 to 400 times in our runs) and changes the material layout between runs. FEA is the engine and topology optimization is the search around it.

Why is the penalty p usually 3?

A penalty of 3 makes intermediate densities poor value, so the result is mostly solid and void. It is still smooth enough for the optimizer to make progress. The 88-line paper calls typical. Higher values make the result more black and white but make local optima more likely.

Can I do topology optimization for free?

Yes, for learning. The 88-line MATLAB code is free from DTU's TopOpt group for education, and a Python port needs only NumPy and SciPy. For commercial tools, check each vendor's current student terms.

Does topology optimization only work for 3D-printed parts?

No. Additive manufacturing can make organic shapes directly, but cast and machined parts are optimized too. You set draw-direction, extrusion or member-size constraints so the result suits the process. Airbus's A380 ribs and Bombardier's wingbox rib are both examples from conventionally made aircraft structure.

Sources and further reading

Want this on your résumé?

Talk to a counsellor.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.