FEniTop: a simple FEniCSx implementation for 2D and 3D topology optimization supporting parallel computing
Open Access
- 3 August 2024
- journal article
- research article
- Published by Springer Nature in Structural and Multidisciplinary Optimization
- Vol. 67 (8) , 1-39
Abstract
Topology optimization has emerged as a versatile design tool embraced across diverse domains. This popularity has led to great efforts in the development of education-centric topology optimization codes with various focuses, such as targeting beginners seeking user-friendliness and catering to experienced users emphasizing computational efficiency. In this study, we introduce , a novel 2D and 3D topology optimization software developed in Python and built upon the open-source library, designed to harmonize usability with computational efficiency and post-processing for fabrication. employs a modular architecture, offering a unified input script for defining topology optimization problems and six replaceable modules to streamline subsequent optimization tasks. By enabling users to express problems in the weak form, eliminates the need for matrix manipulations, thereby simplifying the modeling process. The software also integrates automatic differentiation to mitigate the intricacies associated with chain rules in finite element analysis and sensitivity analysis. Furthermore, provides access to a comprehensive array of readily available solvers and preconditioners, bolstering flexibility in problem-solving. is designed for scalability, furnishing robust support for parallel computing that seamlessly adapts to diverse computing platforms, spanning from laptops to distributed computing clusters. It also facilitates effortless transitions for various spatial dimensions, mesh geometries, element types and orders, and quadrature degrees. Apart from the computational benefits, facilitates the automated exportation of optimized designs, compatible with open-source software for post-processing. This functionality allows for visualizing optimized designs across diverse mesh geometries and element shapes, automatically smoothing 3D designs, and converting smoothed designs into STereoLithography (STL) files for 3D printing. To illustrate the capabilities of , we present five representative examples showcasing topology optimization across 2D and 3D geometries, structured and unstructured meshes, solver switching, and complex boundary conditions. We also assess the parallel computational efficiency of by examining its performance across diverse computing platforms, process counts, problem sizes, and solver configurations. Finally, we demonstrate a physical 3D-printed model utilizing the STL file derived from the design optimized by . These examples showcase not only ’s rich functionality but also its parallel computing performance. The open-source is given in Appendix B and will be available to download at https://github.com/missionlab/fenitop.Keywords
Funding Information
- National Science Foundation (CMMI-2127134, CMMI-2047692, CMMI-2047692)
- Defense Advanced Research Projects Agency (N660012314013, N660012314013)
This publication has 47 references indexed in Scilit:
- FEniCS-HPC: Automated Predictive High-Performance Finite Element Computing with Applications in Aerodynamics2016
- Solving PDEs in Python2016
- Topology optimization using PETSc: An easy-to-use, fully parallel, open source topology optimization frameworkStructural and Multidisciplinary Optimization, 2014
- An efficient 3D topology optimization code written in MatlabStructural and Multidisciplinary Optimization, 2014
- PolyTop: a Matlab implementation of a general topology optimization framework using unstructured polygonal finite element meshesStructural and Multidisciplinary Optimization, 2012
- Filters in topology optimization based on Helmholtz‐type differential equationsInternational Journal for Numerical Methods in Engineering, 2010
- On projection methods, convergence and robust formulations in topology optimizationStructural and Multidisciplinary Optimization, 2010
- Efficient topology optimization in MATLAB using 88 lines of codeStructural and Multidisciplinary Optimization, 2010
- Morphology-based black and white filters for topology optimizationStructural and Multidisciplinary Optimization, 2007
- The method of moving asymptotes—a new method for structural optimizationInternational Journal for Numerical Methods in Engineering, 1987