Work

A MATLAB Implementation of ES-FEM-based Topology Optimization

Year: 2025
Type: article
Abstract: This paper presents a compact and efficient MATLAB implementation of topology optimization using the edge-based smoothed finite element method (ES-FEM).The framework is designed with pedagogical intent, illustrating how ES-FEM can be effectively vectorized through the systematic construction of smoothing domains around interior and boundary edges, followed by the computation of smoothed stiffness matrices over these domains.Computational efficiency is further enhanced through array preallocation.An improved density filter is incorporated, simplifying the formulation while delivering better performance compared to existing ES-FEM-based topology optimization approaches.With this enhancement, the complete implementation requires only 175 lines of MATLAB code, ensuring both readability and ease of use.Boundary conditions and loading can be customized by modifying only a few lines, making the approach flexible and easily extensible.The full MATLAB code is provided in the Appendix as an accessible starting point for newcomers to topology optimization and ES-FEM, offering a clear and approachable entry point with a gentle learning curve.
Author: Changkye Lee
Institution: University of Miami
Language: English
Open Access status: hybrid
OpenAlex ID: W7117547622
FWCI:
Cites: 13
Cited by:
Related to: