topAC99: A compact MATLAB implementation of filter-free Allen--Cahn topology optimization with matrix-free field transfer
Run Du
Key points
From the paper's conclusion- This paper presents topAC99, a self-contained, toolbox-free 99-line MATLAB kernel for filter-free Allen--Cahn topology optimization via the Augmented Lagrangian method on structured quadrilateral meshes.
Abstract
This paper presents topAC99, a self-contained, toolbox-free 99-line MATLAB kernel for filter-free Allen--Cahn topology optimization via the Augmented Lagrangian method on structured quadrilateral meshes. The software architecture combines three compact numerical components: (i) a lumped nodal discretization with a 7-line Kronecker-sum 5-point Laplacian that enforces homogeneous Neumann conditions at width-invariant sparse memory cost; (ii) matrix-free node-to-element averaging and adjoint backpropagation via two-dimensional convolutions (conv2); and (iii) an inlined 18-line 1D-dual bisection Method of Moving Asymptotes (MMA) solver for signed sensitivities. Benchmarks from 60x40 to 300x200 meshes (121,002 degrees of freedom) against convolution- and PDE-filtered SIMP baselines show that Allen--Cahn residual and adjoint evaluations add only 0.7%--1.2% per-step overhead while converging in 78--92 iterations on fine grids. Minimal-line extensions to a symmetric force inverter compliant mechanism and a passive-deck highway arch bridge further demonstrate the versatility of the 99-line kernel.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Allen--Cahn Residual-Constrained Topology Optimization via an Augmented Lagrangian MethodarXiv · 2026
- Sliced Tensor Operators for Large-Scale Topology OptimizationarXiv · 2026
- Multi-material topology optimization via the alternating direction method of multipliers with a material aggregation control constraintEngineering Research Express · 2026
- A null space algorithm for solving multiple-constrained topology optimization problems with topological derivativesStructural and Multidisciplinary Optimization · 2026
- Differentiable High-Order Mesh $r$-AdaptivityarXiv · 2026
- Thermo-mechanical topology optimization using neural networks with gradient injectionJournal of Physics: Conference Series · 2026