SIMP
How does SIMP turn a solid FEM problem into a density optimization problem?
A static analysis answers “how does this part deform?”. Topology optimization asks a different question: “where should material be, inside a given design space, so the part is as stiff as possible for a given amount of it?”. SIMP (solid isotropic material with penalization) answers it by giving every finite element a material density and letting an optimizer adjust those densities, one linear-elastic analysis at a time.
One density per element
Mesh the whole design space once. Each element gets a design density between 0 (void) and 1 (solid material). It is a dimensionless fraction, not the mass density of the material. The mesh, supports and loads stay fixed for the whole run; only the element densities change.
Because is constant over an element, the element is also the smallest feature the design can describe. KoFEM’s solid optimizer always uses linear (order 1) tetrahedra or hexahedra with one density per element, whatever order a static solve of the same model uses. The resulting shape is therefore a pattern of elements, not a CAD surface; interpreting optimized designs explains how to read and export it.
Penalized stiffness and its floor
The analysis needs a stiffness for every density. With full-material Young’s modulus , KoFEM uses the modified SIMP interpolation:
The penalty (default 3) makes intermediate density poor value: at an element costs half its volume but provides only of its stiffness. A stiffness-seeking optimizer is therefore pushed towards 0 or 1. With , stiffness and volume are proportional and a gray “half-material” region is as good as solid and void; the worked example below shows this. KoFEM uses the power law as a numerical device for reaching a solid–void layout; a gray element is not a validated porous material.

The stiffness floor is fixed in the optimizer and is not a user input. Without it a void element would contribute zero stiffness, and a node surrounded by void would leave the global stiffness matrix singular. The floor keeps it positive definite for a supported model, at the price of very large stiffness contrasts that make the iterative solve harder.
Element stiffness is linear in , so the full-material element matrix is integrated once and only scaled afterwards:
Assembly follows the same rules as a static solve; see assembly.
Objectives and constraints
Let solve for a fixed load vector . The compliance is the work done by the load, twice the stored strain energy:
Lower compliance means a stiffer structure under that load case. It is measured in work units (N·mm with N and mm). With element volume , the material volume is . KoFEM offers two formulations, both with :
The volume fraction is a fraction of the meshed design space. The compliance limit is in the model’s own work units, so it has no universal default. A minimum-volume run starts from full material; if even that design exceeds , the optimizer stops with an explicit error. Either formulation can also carry a maximum von Mises stress limit on all-solid models; stress-constrained runs change several details of the loop.
Both formulations need a load and at least one fixed support. The optimizer rejects non-zero prescribed displacements, for the reason given in the next section.
Compliance sensitivity without an extra solve
A gradient-based optimizer needs for every element. Differentiate the equilibrium equation with a design-independent load:
The last step uses , valid because is symmetric. Only element depends on , so with the element strain-energy measure :
The problem is self-adjoint: the displacement already solved for gives every sensitivity, with no second solve. Adding material never makes this structure more compliant. Two assumptions carry the result: the load does not depend on , and supports hold . A non-zero prescribed displacement would make differ from the strain-energy expression and need a separate adjoint, which KoFEM does not implement; it rejects such models rather than follow a wrong gradient. Body loads that scale with density, such as self-weight, are not part of the current formulation.
The solid loop solves every SIMP analysis with multigrid conjugate gradients to a relative residual of , tighter than the static solid solve. The sensitivity is quadratic in the displacement, so a loose solve would bias it. Shell and coupled runs stop at , because thin-wall systems with void regions condition poorly.
Two bars sharing one load
Two parallel bars connect a fixed support to one loaded node, so they share the same extension . Each has , area and length , so its full-material stiffness is . The load is . The volume budget is one bar: . Then:
| Design | Stiffness k (N/mm) | u (mm) | c (N·mm) | ∂c/∂ρ (N·mm) |
|---|---|---|---|---|
| , | 250 | 0.4 | 40 | −120 each |
| , | 1000 | 0.1 | 10 | −30 and 0 |
| , | 1000 | 0.1 | 10 | −10 each |
For the gray design, , so , and . Each bar’s and , giving .
With the penalty, putting all material into one bar is four times stiffer than splitting it. With the split design is as stiff as the solid–void one, so nothing drives the optimizer to a crisp answer. The solid–void row also shows a weakness of the gradient: at , , so a void element receives no direct signal to return. Filtering spreads neighbouring information into it; see filtering. Every number above was checked by script, and each sensitivity was compared with a central finite difference of the compliance. That verifies the arithmetic and the sensitivity formula, not the production optimizer, which has its own finite-difference tests.
Solid, shell and coupled design domains
The app routes an optimization the same way as a static solve: by the element mix of the FEM discretisation. Each element in the model is a design variable; there is no separate design-space selection yet.
| Model | Design variables and current rules |
|---|---|
| All solid | One density per tetrahedron or hexahedron, order 1. The app requires one design material, a single E and ν. Optional maximum-stress constraint. A separate level-set method is also available for minimum compliance; it is not described here. |
| All shell | One density per triangular shell facet. Element volume is facet area × thickness, so per-facet thickness is respected. One shell material. No stress constraint. |
| Mixed shell and solid, or any coupling | One density field over the tetrahedra followed by the facets. Couplings are geometric constraints, not design variables, and remain intact. One solid and one shell material, so their relative stiffness is kept. No stress constraint. |
Bodies marked Shell must already be idealised into shell elements by re-meshing; the optimizer refuses to idealise them itself. The shell element and coupling mechanics are explained in shell formulation and solid–shell coupling. A region’s optimization role can keep it solid or empty. Its elements are then not design variables, but they count toward the volume and take part in the filter. Supported and loaded elements in a design region are design variables too.
Implementation and references
- Bendsøe and Sigmund, Topology Optimization: Theory, Methods and Applications, Springer (2003); and Bendsøe and Sigmund (1999), Material interpolation schemes in topology optimization, Archive of Applied Mechanics 69, 635–654.
- Andreassen, Clausen, Schevenels, Lazarov and Sigmund (2011), Efficient topology optimization in MATLAB using 88 lines of code, Structural and Multidisciplinary Optimization 43, 1–16. Source of the modified SIMP form used here.
- interpolation and slope, once-per-run element stiffness cache, compliance and self-adjoint sensitivity, objective and constraint rows and prescribed-displacement guard.
- shell and coupled SIMP, design-domain routing, one-material-per-domain check and solid and empty regions.
- Checks of the per-iteration math, including finite-difference sensitivities: solid SIMP and shell and coupled SIMP.