scispace - formally typeset
Open AccessJournal ArticleDOI

Efficient topology optimization in MATLAB using 88 lines of code

TLDR
The paper presents an efficient 88 line MATLAB code for topology optimization using the 99 line code presented by Sigmund as a starting point, and a considerable improvement in efficiency has been achieved, mainly by preallocating arrays and vectorizing loops.
Abstract
The paper presents an efficient 88 line MATLAB code for topology optimization. It has been developed using the 99 line code presented by Sigmund (Struct Multidisc Optim 21(2):120---127, 2001) as a starting point. The original code has been extended by a density filter, and a considerable improvement in efficiency has been achieved, mainly by preallocating arrays and vectorizing loops. A speed improvement with a factor of 100 is obtained for a benchmark example with 7,500 elements. Moreover, the length of the code has been reduced to a mere 88 lines. These improvements have been accomplished without sacrificing the readability of the code. The 88 line code can therefore be considered as a valuable successor to the 99 line code, providing a practical instrument that may help to ease the learning curve for those entering the field of topology optimization. The paper also discusses simple extensions of the basic code to include recent PDE-based and black-and-white projection filtering methods. The complete 88 line code is included as an appendix and can be downloaded from the web site www.topopt.dtu.dk .

read more

Citations
More filters
Journal ArticleDOI

Topology optimization approaches: A comparative review

TL;DR: An overview, comparison and critical review of the different approaches to topology optimization, their strengths, weaknesses, similarities and dissimilarities and suggests guidelines for future research.
Journal ArticleDOI

A survey of structural and multidisciplinary continuum topology optimization: post 2000

TL;DR: Topology optimization is the process of determining the optimal layout of material and connectivity inside a design domain this paper, which is the same as the problem of finding the optimal configuration of a set of components.
Journal ArticleDOI

PolyMesher: a general-purpose mesh generator for polygonal elements written in Matlab

TL;DR: A simple and robust Matlab code for polygonal mesh generation that relies on an implicit description of the domain geometry and the centroidal Voronoi diagrams used for its discretization that offers great flexibility to construct a large class of domains via algebraic expressions.
Journal ArticleDOI

A new topology optimization approach based on Moving Morphable Components (MMC) and the ersatz material model

TL;DR: This paper presents a new topology optimization approach based on the so-called Moving Morphable Components (MMC) solution framework that can not only allow for components with variable thicknesses but also enhance the numerical solution efficiency substantially.
Journal ArticleDOI

An efficient 3D topology optimization code written in Matlab

TL;DR: An efficient and compact Matlab code to solve three-dimensional topology optimization problems and the theoretical and numerical elements to implement general non-linear programming strategies such as SQP and MMA are presented.
References
More filters
Book

Topology Optimization: Theory, Methods, and Applications

TL;DR: In this article, the authors proposed a topology optimization by distribution of isotropic material for truss structures with anisotropic materials, based on the topology design of truss structure.
Journal ArticleDOI

The method of moving asymptotes—a new method for structural optimization

TL;DR: In this article, a new method for non-linear programming in general and structural optimization in particular is presented, in which a strictly convex approximating subproblem is generated and solved.
Journal ArticleDOI

Optimal shape design as a material distribution problem

TL;DR: In this article, various ways of removing this discrete nature of the problem by the introduction of a density function that is a continuous design variable are described. But none of these methods can be used for shape optimization in a general setting.
Journal ArticleDOI

A 99 line topology optimization code written in Matlab

TL;DR: It is shown that only 49 Matlab input lines are required for solving a well-posed topology optimization problem and by adding three additional lines, the program can solve problems with multiple load cases.
Journal ArticleDOI

Numerical instabilities in topology optimization: A survey on procedures dealing with checkerboards, mesh-dependencies and local minima

TL;DR: The current knowledge about numerical instabilities such as checkerboards, mesh-dependence and local minima occurring in applications of the topology optimization method are summarized and the methods with which they can be avoided are listed.
Related Papers (5)