A 55-line code for large-scale parallel topology optimization in 2D and 3D

Abhinav Gupta, Rajib Chowdhury, Anupam Chakrabarti, Timon Rabczuk
12/15/2020
cs.MScs.CEmath.OC

Official code: iitrabhi/topology-optimization-fenics (48 stars, Python, MIT, last commit 2023-11-12).

Abstract

This paper presents a 55-line code written in python for 2D and 3D topology optimization (TO) based on the open-source finite element computing software (FEniCS), equipped with various finite element tools and solvers. PETSc is used as the linear algebra back-end, which results in significantly less computational time than standard python libraries.

Show full abstract

The code is designed based on the popular solid isotropic material with penalization (SIMP) methodology. Extensions to multiple load cases, different boundary conditions, and incorporation of passive elements are also presented. Thus, this implementation is the most compact implementation of SIMP based topology optimization for 3D as well as 2D problems. Utilizing the concept of Euclidean distance matrix to vectorize the computation of the weight matrix for the filter, we have achieved a substantial reduction in the computational time and have also made it possible for the code to work with complex ground structure configurations. We have also presented the code's extension to large-scale topology optimization problems with support for parallel computations on complex structural configuration, which could help students and researchers explore novel insights into the TO problem with dense meshes. Appendix-A contains the complete code, and the website: \url{https://github.com/iitrabhi/topo-fenics} also contains the complete code.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains a simple 55 lines code to carry out large scale parallel Topology Optimization using FEniCS in python

484PythonJul 29, 20203 years agoMIT
fenicsoptimizationparallelparallel-computingpetsc+4 more

Similar Papers

Cite this paper

@article{gupta2020line,
  title  = {A 55-line code for large-scale parallel topology optimization in 2D and 3D},
  author = {Abhinav Gupta and Rajib Chowdhury and Anupam Chakrabarti and Timon Rabczuk},
  year   = {2020},
  eprint = {2012.08208},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.08208}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.08208.svg)](https://codeofpaper.com/paper/2012.08208)

Discussion