Skip to main content
Erschienen in: Optimization and Engineering 2/2023

20.04.2022 | Educational Article

HoneyTop90: A 90-line MATLAB code for topology optimization using honeycomb tessellation

verfasst von: P. Kumar

Erschienen in: Optimization and Engineering | Ausgabe 2/2023

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

This paper provides a simple, compact and efficient 90-line pedagogical MATLAB code for topology optimization using hexagonal elements (honeycomb tessellation). Hexagonal elements provide nonsingular connectivity between two juxtaposed elements and, thus, subdue checkerboard patterns and point connections inherently from the optimized designs. A novel approach to generate honeycomb tessellation is proposed. The element connectivity matrix and corresponding nodal coordinates array are determined in 5 (7) and 4 (6) lines, respectively. Two additional lines for the meshgrid generation are required for an even number of elements in the vertical direction. The code takes a fraction of a second to generate meshgrid information for the millions of hexagonal elements. Wachspress shape functions are employed for the finite element analysis, and compliance minimization is performed using the optimality criteria method. The provided MATLAB code and its extensions are explained in detail. Options to run the optimization with and without filtering techniques are provided. Steps to include different boundary conditions, multiple load cases, active and passive regions, and a Heaviside projection filter are also discussed. The code is provided in Appendix A, and it can also be downloaded along with supplementary materials from https://​github.​com/​PrabhatIn/​HoneyTop90.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Anhänge
Nur mit Berechtigung zugänglich
Fußnoten
1
Which is not trivial to generate.
 
2
Coarse FEs are used for clear visibility.
 
3
\(\eta _1^1=\cos (\frac{\pi }{6}),\,\eta _2^1=\sin (\frac{\pi }{6})\)
 
Literatur
Zurück zum Zitat Andreassen E, Clausen A, Schevenels M, Lazarov BS, Sigmund O (2011) Efficient topology optimization in matlab using 88 lines of code. Structural and Multidisciplinary Optimization 43(1):1–16CrossRefMATH Andreassen E, Clausen A, Schevenels M, Lazarov BS, Sigmund O (2011) Efficient topology optimization in matlab using 88 lines of code. Structural and Multidisciplinary Optimization 43(1):1–16CrossRefMATH
Zurück zum Zitat Bourdin B (2001) Filters in topology optimization. International journal for numerical methods in engineering 50(9):2143–2158MathSciNetCrossRefMATH Bourdin B (2001) Filters in topology optimization. International journal for numerical methods in engineering 50(9):2143–2158MathSciNetCrossRefMATH
Zurück zum Zitat Bruns TE, Tortorelli DA (2001) Topology optimization of non-linear elastic structures and compliant mechanisms. Computer methods in applied mechanics and engineering 190(26–27):3443–3459CrossRefMATH Bruns TE, Tortorelli DA (2001) Topology optimization of non-linear elastic structures and compliant mechanisms. Computer methods in applied mechanics and engineering 190(26–27):3443–3459CrossRefMATH
Zurück zum Zitat Challis VJ (2010) A discrete level-set topology optimization code written in matlab. Structural and multidisciplinary optimization 41(3):453–464MathSciNetCrossRefMATH Challis VJ (2010) A discrete level-set topology optimization code written in matlab. Structural and multidisciplinary optimization 41(3):453–464MathSciNetCrossRefMATH
Zurück zum Zitat Ferrari F, Sigmund O (2020) A new generation 99 line matlab code for compliance topology optimization and its extension to 3D. Structural and Multidisciplinary Optimization 62(4):2211–2228MathSciNetCrossRef Ferrari F, Sigmund O (2020) A new generation 99 line matlab code for compliance topology optimization and its extension to 3D. Structural and Multidisciplinary Optimization 62(4):2211–2228MathSciNetCrossRef
Zurück zum Zitat Giraldo-Londoño O, Paulino GH (2021) Polystress: a matlab implementation for local stress-constrained topology optimization using the augmented lagrangian method. Structural and Multidisciplinary Optimization 63(4):2065–2097MathSciNetCrossRef Giraldo-Londoño O, Paulino GH (2021) Polystress: a matlab implementation for local stress-constrained topology optimization using the augmented lagrangian method. Structural and Multidisciplinary Optimization 63(4):2065–2097MathSciNetCrossRef
Zurück zum Zitat Haber RB, Jog CS, Bendsøe MP (1996) A new approach to variable-topology shape design using a constraint on perimeter. Structural optimization 11(1):1–12CrossRef Haber RB, Jog CS, Bendsøe MP (1996) A new approach to variable-topology shape design using a constraint on perimeter. Structural optimization 11(1):1–12CrossRef
Zurück zum Zitat Han Y, Xu B, Liu Y (2021) An efficient 137-line matlab code for geometrically nonlinear topology optimization using bi-directional evolutionary structural optimization method. Structural and Multidisciplinary Optimization 63(5):2571–2588MathSciNetCrossRef Han Y, Xu B, Liu Y (2021) An efficient 137-line matlab code for geometrically nonlinear topology optimization using bi-directional evolutionary structural optimization method. Structural and Multidisciplinary Optimization 63(5):2571–2588MathSciNetCrossRef
Zurück zum Zitat Han Y, Xu B, Wang Q, Liu Y, Duan Z (2021) Topology optimization of material nonlinear continuum structures under stress constraints. Computer Methods in Applied Mechanics and Engineering 378:113731MathSciNetCrossRefMATH Han Y, Xu B, Wang Q, Liu Y, Duan Z (2021) Topology optimization of material nonlinear continuum structures under stress constraints. Computer Methods in Applied Mechanics and Engineering 378:113731MathSciNetCrossRefMATH
Zurück zum Zitat Huang X, Xie M (2010) Evolutionary topology optimization of continuum structures: methods and applications. John Wiley & Sons Huang X, Xie M (2010) Evolutionary topology optimization of continuum structures: methods and applications. John Wiley & Sons
Zurück zum Zitat Kumar P (2017) Synthesis of large deformable contact-aided compliant mechanisms using hexagonal cells and negative circular masks. PhD thesis, Indian Institute of Technology Kanpur Kumar P (2017) Synthesis of large deformable contact-aided compliant mechanisms using hexagonal cells and negative circular masks. PhD thesis, Indian Institute of Technology Kanpur
Zurück zum Zitat Kumar P (2022) Topology optimization of stiff structures under self-weight for given volume using a smooth heaviside function. Structural and Multidisciplinary Optimization 65(4):1–17MathSciNetCrossRef Kumar P (2022) Topology optimization of stiff structures under self-weight for given volume using a smooth heaviside function. Structural and Multidisciplinary Optimization 65(4):1–17MathSciNetCrossRef
Zurück zum Zitat Kumar P, Saxena A (2015) On topology optimization with embedded boundary resolution and smoothing. Structural and Multidisciplinary Optimization 52(6):1135–1159MathSciNetCrossRef Kumar P, Saxena A (2015) On topology optimization with embedded boundary resolution and smoothing. Structural and Multidisciplinary Optimization 52(6):1135–1159MathSciNetCrossRef
Zurück zum Zitat Kumar P, Sauer RA, Saxena A (2016) Synthesis of c0 path-generating contact-aided compliant mechanisms using the material mask overlay method. Journal of Mechanical Design 138(6) Kumar P, Sauer RA, Saxena A (2016) Synthesis of c0 path-generating contact-aided compliant mechanisms using the material mask overlay method. Journal of Mechanical Design 138(6)
Zurück zum Zitat Kumar P, Saxena A, Sauer RA (2019) Computational synthesis of large deformation compliant mechanisms undergoing self and mutual contact. Journal of Mechanical Design 141(1) Kumar P, Saxena A, Sauer RA (2019) Computational synthesis of large deformation compliant mechanisms undergoing self and mutual contact. Journal of Mechanical Design 141(1)
Zurück zum Zitat Kumar P, Frouws J, Langelaar M (2020) Topology optimization of fluidic pressure-loaded structures and compliant mechanisms using the Darcy method. Structural and Multidisciplinary Optimization 61(4) Kumar P, Frouws J, Langelaar M (2020) Topology optimization of fluidic pressure-loaded structures and compliant mechanisms using the Darcy method. Structural and Multidisciplinary Optimization 61(4)
Zurück zum Zitat Kumar P, Sauer RA, Saxena A (2021) On topology optimization of large deformation contact-aided shape morphing compliant mechanisms. Mechanism and Machine Theory 156:104135CrossRef Kumar P, Sauer RA, Saxena A (2021) On topology optimization of large deformation contact-aided shape morphing compliant mechanisms. Mechanism and Machine Theory 156:104135CrossRef
Zurück zum Zitat Langelaar M (2007) The use of convex uniform honeycomb tessellations in structural topology optimization. 7th world congress on structural and multidisciplinary optimization. Seoul, South Korea, pp 21–25 Langelaar M (2007) The use of convex uniform honeycomb tessellations in structural topology optimization. 7th world congress on structural and multidisciplinary optimization. Seoul, South Korea, pp 21–25
Zurück zum Zitat Lyness J, Monegato G (1977) Quadrature rules for regions having regular hexagonal symmetry. SIAM Journal on Numerical Analysis 14(2):283–295MathSciNetCrossRefMATH Lyness J, Monegato G (1977) Quadrature rules for regions having regular hexagonal symmetry. SIAM Journal on Numerical Analysis 14(2):283–295MathSciNetCrossRefMATH
Zurück zum Zitat Picelli R, Sivapuram R, Xie YM (2020) A 101-line matlab code for topology optimization using binary variables and integer programming. Structural and Multidisciplinary Optimization pp 1–20 Picelli R, Sivapuram R, Xie YM (2020) A 101-line matlab code for topology optimization using binary variables and integer programming. Structural and Multidisciplinary Optimization pp 1–20
Zurück zum Zitat Sanders ED, Pereira A, Aguiló MA, Paulino GH (2018) Polymat: an efficient matlab code for multi-material topology optimization. Structural and Multidisciplinary Optimization 58(6):2727–2759MathSciNetCrossRef Sanders ED, Pereira A, Aguiló MA, Paulino GH (2018) Polymat: an efficient matlab code for multi-material topology optimization. Structural and Multidisciplinary Optimization 58(6):2727–2759MathSciNetCrossRef
Zurück zum Zitat Saxena A (2011) Topology design with negative masks using gradient search. Structural and Multidisciplinary Optimization 44(5):629–649CrossRef Saxena A (2011) Topology design with negative masks using gradient search. Structural and Multidisciplinary Optimization 44(5):629–649CrossRef
Zurück zum Zitat Saxena A, Sauer RA (2013) Combined gradient-stochastic optimization with negative circular masks for large deformation topologies. International Journal for Numerical Methods in Engineering 93(6):635–663MathSciNetCrossRefMATH Saxena A, Sauer RA (2013) Combined gradient-stochastic optimization with negative circular masks for large deformation topologies. International Journal for Numerical Methods in Engineering 93(6):635–663MathSciNetCrossRefMATH
Zurück zum Zitat Saxena R, Saxena A (2003) On honeycomb parameterization for topology optimization of compliant mechanisms. International Design Engineering Technical Conferences and Computers and Information in Engineering Conference 37009:975–985 Saxena R, Saxena A (2003) On honeycomb parameterization for topology optimization of compliant mechanisms. International Design Engineering Technical Conferences and Computers and Information in Engineering Conference 37009:975–985
Zurück zum Zitat Saxena R, Saxena A (2007) On honeycomb representation and sigmoid material assignment in optimal topology synthesis of compliant mechanisms. Finite Elements in Analysis and Design 43(14):1082–1098CrossRef Saxena R, Saxena A (2007) On honeycomb representation and sigmoid material assignment in optimal topology synthesis of compliant mechanisms. Finite Elements in Analysis and Design 43(14):1082–1098CrossRef
Zurück zum Zitat Sigmund O (1997) On the design of compliant mechanisms using topology optimization. Journal of Structural Mechanics 25(4):493–524 Sigmund O (1997) On the design of compliant mechanisms using topology optimization. Journal of Structural Mechanics 25(4):493–524
Zurück zum Zitat Sigmund O (2001) A 99 line topology optimization code written in matlab. Structural and multidisciplinary optimization 21(2):120–127CrossRef Sigmund O (2001) A 99 line topology optimization code written in matlab. Structural and multidisciplinary optimization 21(2):120–127CrossRef
Zurück zum Zitat Sigmund O (2007) Morphology-based black and white filters for topology optimization. Structural and Multidisciplinary Optimization 33(4–5):401–424CrossRef Sigmund O (2007) Morphology-based black and white filters for topology optimization. Structural and Multidisciplinary Optimization 33(4–5):401–424CrossRef
Zurück zum Zitat Sigmund O, Maute K (2013) Topology optimization approaches. Structural and Multidisciplinary Optimization 48(6):1031–1055MathSciNetCrossRef Sigmund O, Maute K (2013) Topology optimization approaches. Structural and Multidisciplinary Optimization 48(6):1031–1055MathSciNetCrossRef
Zurück zum Zitat Singh N, Kumar P, Saxena A (2020) On topology optimization with elliptical masks and honeycomb tessellation with explicit length scale constraints. Structural and Multidisciplinary Optimization 62(3):1227–1251MathSciNetCrossRef Singh N, Kumar P, Saxena A (2020) On topology optimization with elliptical masks and honeycomb tessellation with explicit length scale constraints. Structural and Multidisciplinary Optimization 62(3):1227–1251MathSciNetCrossRef
Zurück zum Zitat Sukumar N, Tabarraei A (2004) Conforming polygonal finite elements. International Journal for Numerical Methods in Engineering 61(12):2045–2066MathSciNetCrossRefMATH Sukumar N, Tabarraei A (2004) Conforming polygonal finite elements. International Journal for Numerical Methods in Engineering 61(12):2045–2066MathSciNetCrossRefMATH
Zurück zum Zitat Suresh K (2010) A 199-line matlab code for pareto-optimal tracing in topology optimization. Structural and Multidisciplinary Optimization 42(5):665–679MathSciNetCrossRefMATH Suresh K (2010) A 199-line matlab code for pareto-optimal tracing in topology optimization. Structural and Multidisciplinary Optimization 42(5):665–679MathSciNetCrossRefMATH
Zurück zum Zitat Svanberg K (1987) The method of moving asymptotes-a new method for structural optimization. International journal for numerical methods in engineering 24(2):359–373MathSciNetCrossRefMATH Svanberg K (1987) The method of moving asymptotes-a new method for structural optimization. International journal for numerical methods in engineering 24(2):359–373MathSciNetCrossRefMATH
Zurück zum Zitat Tabarraei A, Sukumar N (2006) Application of polygonal finite elements in linear elasticity. International Journal of Computational Methods 3(04):503–520MathSciNetCrossRefMATH Tabarraei A, Sukumar N (2006) Application of polygonal finite elements in linear elasticity. International Journal of Computational Methods 3(04):503–520MathSciNetCrossRefMATH
Zurück zum Zitat Talischi C, Paulino GH, Le CH (2009) Honeycomb wachspress finite elements for structural topology optimization. Structural and Multidisciplinary Optimization 37(6):569–583MathSciNetCrossRefMATH Talischi C, Paulino GH, Le CH (2009) Honeycomb wachspress finite elements for structural topology optimization. Structural and Multidisciplinary Optimization 37(6):569–583MathSciNetCrossRefMATH
Zurück zum Zitat Talischi C, Paulino GH, Pereira A, Menezes IF (2012) Polymesher: a general-purpose mesh generator for polygonal elements written in matlab. Structural and Multidisciplinary Optimization 45(3):309–328MathSciNetCrossRefMATH Talischi C, Paulino GH, Pereira A, Menezes IF (2012) Polymesher: a general-purpose mesh generator for polygonal elements written in matlab. Structural and Multidisciplinary Optimization 45(3):309–328MathSciNetCrossRefMATH
Zurück zum Zitat Talischi C, Paulino GH, Pereira A, Menezes IF (2012) Polytop: a matlab implementation of a general topology optimization framework using unstructured polygonal finite element meshes. Structural and Multidisciplinary Optimization 45(3):329–357MathSciNetCrossRefMATH Talischi C, Paulino GH, Pereira A, Menezes IF (2012) Polytop: a matlab implementation of a general topology optimization framework using unstructured polygonal finite element meshes. Structural and Multidisciplinary Optimization 45(3):329–357MathSciNetCrossRefMATH
Zurück zum Zitat Wachspress EL (1975) A rational finite element basis Wachspress EL (1975) A rational finite element basis
Zurück zum Zitat Wang C, Zhao Z, Zhou M, Sigmund O, Zhang XS (2021) A comprehensive review of educational articles on structural and multidisciplinary optimization. Structural and Multidisciplinary Optimization pp 1–54 Wang C, Zhao Z, Zhou M, Sigmund O, Zhang XS (2021) A comprehensive review of educational articles on structural and multidisciplinary optimization. Structural and Multidisciplinary Optimization pp 1–54
Zurück zum Zitat Wang F, Lazarov BS, Sigmund O (2011) On projection methods, convergence and robust formulations in topology optimization. Structural and Multidisciplinary Optimization 43(6):767–784CrossRefMATH Wang F, Lazarov BS, Sigmund O (2011) On projection methods, convergence and robust formulations in topology optimization. Structural and Multidisciplinary Optimization 43(6):767–784CrossRefMATH
Zurück zum Zitat Wei P, Li Z, Li X, Wang MY (2018) An 88-line matlab code for the parameterized level set method based topology optimization using radial basis functions. Structural and Multidisciplinary Optimization 58(2):831–849MathSciNetCrossRef Wei P, Li Z, Li X, Wang MY (2018) An 88-line matlab code for the parameterized level set method based topology optimization using radial basis functions. Structural and Multidisciplinary Optimization 58(2):831–849MathSciNetCrossRef
Zurück zum Zitat Xu B, Han Y, Zhao L (2020) Bi-directional evolutionary topology optimization of geometrically nonlinear continuum structures with stress constraints. Applied Mathematical Modelling 80:771–791MathSciNetCrossRefMATH Xu B, Han Y, Zhao L (2020) Bi-directional evolutionary topology optimization of geometrically nonlinear continuum structures with stress constraints. Applied Mathematical Modelling 80:771–791MathSciNetCrossRefMATH
Metadaten
Titel
HoneyTop90: A 90-line MATLAB code for topology optimization using honeycomb tessellation
verfasst von
P. Kumar
Publikationsdatum
20.04.2022
Verlag
Springer US
Erschienen in
Optimization and Engineering / Ausgabe 2/2023
Print ISSN: 1389-4420
Elektronische ISSN: 1573-2924
DOI
https://doi.org/10.1007/s11081-022-09715-6

Weitere Artikel der Ausgabe 2/2023

Optimization and Engineering 2/2023 Zur Ausgabe

    Marktübersichten

    Die im Laufe eines Jahres in der „adhäsion“ veröffentlichten Marktübersichten helfen Anwendern verschiedenster Branchen, sich einen gezielten Überblick über Lieferantenangebote zu verschaffen.