Applied Sciences (Jan 2024)

An Efficient Code for the Multi-Material Topology Optimization of 2D/3D Continuum Structures Written in Matlab

  • Ran Zheng,
  • Bing Yi,
  • Xiang Peng,
  • Gil-Ho Yoon

DOI
https://doi.org/10.3390/app14020657
Journal volume & issue
Vol. 14, no. 2
p. 657

Abstract

Read online

This paper presents an efficient and compact Matlab code for 2D and 3D topology optimization of multi-materials. We extend a classical 88-line-based educational code to the multi-material problem using the mapping-based interpolation function, with which each material is modeled equally and can obtain a clear 0, 1 result for each material of the optimized structures that can be manufactured easily. A solution of topology optimization of multi-materials with minimum compliance under volume constraints is documented, including the details of the optimization model, filtering, projection, and sensitivity analysis procedures. Several numerical examples are also conducted to demonstrate the effectiveness of the code, and the influence of the parameter on the optimized results is also analyzed. Complete 2D and 3D Matlab codes are provided.

Keywords