A 99 line topology optimization code written in Matlab

被引:1986
作者
Sigmund, O [1 ]
机构
[1] Tech Univ Denmark, Dept Solid Mech, DK-2800 Lyngby, Denmark
关键词
topology optimization; education; optimality criteria; world-wide web; Matlab code;
D O I
10.1007/s001580050176
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The paper presents a compact Matlab implementation of a topology optimization code for compliance minimization of statically loaded structures. The total number of Matlab input lines is 99 including optimizer and Finite Element subroutine. The 99 lines are divided into 36 lines for the main program, 12 lines for the Optimality Criteria based optimizer, 16 lines for a mesh-independency filter and 35 lines for the finite element code. In fact, excluding comment lines and lines associated with output and finite element analysis, it is shown that only 49 Matlab input lines are required for solving a well-posed topology optimization problem. By adding three additional lines, the program can solve problems with multiple load cases. The code is intended for educational purposes. The complete Matlab code is given in the Appendix and can be down-loaded from the web-site http://www.topopt.dtu.dk.
引用
收藏
页码:120 / 127
页数:8
相关论文
共 50 条
  • [41] MATLAB implementations of velocity field level set method for topology optimization: an 80-line code for 2D and a 100-line code for 3D problems
    Wang, Yaguang
    Kang, Zhan
    STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2021, 64 (06) : 4325 - 4342
  • [42] An Efficient Code for the Multi-Material Topology Optimization of 2D/3D Continuum Structures Written in Matlab
    Zheng, Ran
    Yi, Bing
    Peng, Xiang
    Yoon, Gil-Ho
    APPLIED SCIENCES-BASEL, 2024, 14 (02):
  • [43] MATLAB implementations for 3D geometrically nonlinear topology optimization: 230-line code for SIMP method and 280-line code for MMB method
    Yanfang Zhao
    Guikai Guo
    Wenjie Zuo
    Structural and Multidisciplinary Optimization, 2023, 66
  • [44] MATLAB implementations for 3D geometrically nonlinear topology optimization: 230-line code for SIMP method and 280-line code for MMB method
    Zhao, Yanfang
    Guo, Guikai
    Zuo, Wenjie
    STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2023, 66 (07)
  • [45] Complementary lecture notes for teaching the 99/88-line topology optimization codes
    Ming Zhou
    Ole Sigmund
    Structural and Multidisciplinary Optimization, 2021, 64 : 3227 - 3231
  • [46] Complementary lecture notes for teaching the 99/88-line topology optimization codes
    Zhou, Ming
    Sigmund, Ole
    STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2021, 64 (05) : 3227 - 3231
  • [47] An 88-line MATLAB code for the parameterized level set method based topology optimization using radial basis functions
    Wei, Peng
    Li, Zuyu
    Li, Xueping
    Wang, Michael Yu
    STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2018, 58 (02) : 831 - 849
  • [48] An efficient MATLAB code for stress-constrained level set topology optimization method
    Hao Deng
    Structural and Multidisciplinary Optimization, 2023, 66
  • [49] A MATLAB code for the material-field series-expansion topology optimization method
    Pai Liu
    Yi Yan
    Xiaopeng Zhang
    Yangjun Luo
    Frontiers of Mechanical Engineering, 2021, 16 : 607 - 622
  • [50] A MATLAB code of node-based topology optimization in 3D arbitrary domain for additive manufacturing
    Dongjin Kim
    Yonghwa Ji
    Jaewook Lee
    Jeonghoon Yoo
    Seungjae Min
    In Gwun Jang
    Structural and Multidisciplinary Optimization, 2022, 65