Abstract
This paper proposes an approach to bridge the gap between industrial applications of Computer Aided Design (CAD) and Topology Optimization (TO) by enabling fast and unintrusive gradient-based optimization in nearly any CAD modeling kernel. The proposed approach allows directly optimizing the parameters of a CAD feature tree, thus ensuring that the final optimized design is automatically a CAD model with human-interpretable and editable parameters. This is achieved by introducing an intermediate Signed Distance Field (SDF) representation in the mathematical formulation. This field acts as an interface between the high-level heterogeneous CAD parameters and density field upon which the design’s physical performance is evaluated. Derivatives are evaluated through a hybrid scheme of physical adjoint systems and geometrical finite differences, and then chained back to the CAD parameters. We directly optimize the input CAD model and avoid any time-consuming or error-prone shape reinterpretation post-process. The preservation of intentional features in the CAD construction enables designers to guarantee subsequent editing, manufacturing, or assembly interfaces of the optimized designs. We demonstrate the stability and efficiency of the approach through numerical experiments for a variety of 2D and 3D CAD parameterization strategies and optimization objectives.
Similar content being viewed by others
References
Aage N, Nobel-Jørgensen M, Andreasen CS, Sigmund O (2013) Interactive topology optimization on hand-held devices. Struct Multidisc Optim 47(1):1–6
Aage N, Andreassen E, Lazarov BS, Sigmund O (2017) Giga-voxel computational morphogenesis for structural design. Nature 550:84
Agarwal D, Robinson TT, Armstrong CG, Kapellos C (2019) Enhancing CAD-based shape optimisation by automatically updating the CAD model’s parameterisation. Struct Multidisc Optim 59(5):1639–1654
Allaire G, Jouve F, Toader A-M (2004) Structural optimization using sensitivity analysis and a level-set method. J Comput Phys 194:363–393
Amroune A, Cuillière J-C, François V (2022) Automated lofting-based reconstruction of CAD models from 3D topology optimization results. Comput Aided Des 145:103183
Andreassen E, Clausen A, Schevenels M, Lazarov BS, Sigmund O (2011) Efficient topology optimization in MATLAB using 88 lines of code. Struct Multidisc Optim 43(1):1–16
Bærentzen A, Aanæs H (2002) Generating signed distance fields from triangle meshes. IMM Technical Report
Behrou R, Lotfi R, Carstensen JV, Ferrari F, Guest JK (2021) Revisiting element removal for density-based structural topology optimization with reintroduction by Heaviside projection. Comput Methods Appl Mech Eng 380:113799
Bendsøe MP, Sigmund O (2003) Topology optimization—theory, methods, and applications. Springer, Berlin
Borgefors G (1984) Distance transformations in arbitrary dimensions. Comput Vis Graph Image Process 27(3):321–345
Bruggi M (2008) On an alternative approach to stress constraints relaxation in topology optimization. Struct Multidisc Optim 36(2):125–141
Bruns TE, Tortorelli DA (2001) Topology optimization of non-linear elastic structures and compliant mechanisms. Comput Methods Appl Mech Eng 190(26):3443–3459
Bruns TE, Tortorelli DA (2003) An element removal and reintroduction strategy for the topology optimization of structures and compliant mechanisms. Int J Numer Methods Eng 57(10):1413–1430
Bruyneel M, Duysinx P (2005) Note on topology optimization of continuum structures including self-weight. Struct Multidisc Optim 29(4):245–256
CADAZZ (2004) CAD software—history of CAD CAM from 1960 to 2000. www.cadazz.com/cad-software-history.htm. Accessed 13 Dec 2022
Deng J, Pedersen CBW, Chen W (2019) Connected morphable components-based multiscale topology optimization. Front Mech Eng 14(2):129–140
Deng H, Vulimiri PS, To AC (2021) An efficient 146-line 3D sensitivity analysis code of stress-based topology optimization written in MATLAB. Optim Eng 23(3):1
Duysinx P, Bendsøe MP (1998) Topology optimization of continuum structures with local stress constraints. Int J Numer Methods Eng 43(8):1453–1478
Duysinx P, Sigmund O (1998) New developments in handling stress constraints in optimal material distribution. In: 7th AIAA/USAF/NASA/ISSMO symposium on multidisciplinary analysis and optimization. American Institute of Aeronautics and Astronautics
Embar A, Dolbow J, Harari I (2010) Imposing Dirichlet boundary conditions with Nitsche’s method and spline-based finite elements. Int J Numer Methods Eng 83(7):877–898
Fairclough HE, He L, Pritchard TJ, Gilbert M (2021) LayOpt: an educational web-app for truss layout optimization. Struct Multidisc Optim 64(4):2805–2823
Fisher RA (1935) The design of experiments. Oliver and Boyd, Edinburgh (Open Library ID: OL15042921M)
Foley JD, Van FD, Dam AV, Feiner SK, Hughes JF (1996) Computer graphics: principles and practice. Addison-Wesley Professional, Boston
Forrester AIJ, Keane AJ (2009) Recent advances in surrogate-based optimization. Prog Aerosp Sci 45(1):50–79
General Electrics (2013) Jet engine bracket challenge—GrabCAD. http://www.grabcad.com/challenges/ge-jet-engine-bracket-challenge. Accessed 23 July 2020
Goodfellow I, Bengio Y, Courville A (2016) Deep learning. MIT Press, Cambridge
Griewank A, Walther A (2008) Evaluating derivatives. Other titles in applied mathematics. Society for Industrial and Applied Mathematics, Philadelphia
Haftka RT, Grandhi RV (1986) Structural shape optimization—a survey. Comput Methods Appl Mech Eng 57(1):91–106
Jiu L, Zhang W, Meng L, Zhou Y, Chen L (2020) A CAD-oriented structural topology optimization method. Comput Struct 239:106324
Kim NH, Chang Y (2005) Eulerian shape design sensitivity analysis and optimization with a fixed grid. Comput Methods Appl Mech Eng 194(30):3291–3314
Kimmel R, Kiryati N, Bruckstein AM (1996) Sub-pixel distance maps and weighted distance transforms. J Math Imaging Vis 6(2):223–233
Le C, Norato J, Bruns T, Ha C, Tortorelli D (2010) Stress-based topology optimization for continua. Struct Multidisc Optim 41(4):605–620
LeCun Y, Bengio Y, Hinton G (2015) Deep learning. Nature 521(7553):436–444
Liu C, Zhu Y, Sun Z, Li D, Du Z, Zhang W, Guo X (2018) An efficient moving morphable component (MMC)-based approach for multi-resolution topology optimization. Struct Multidisc Optim 58(6):2455–2479
Ma ZD, Kikuchi N, Hagiwara I (1993) Structural topology and shape optimization for a frequency response problem. Comput Mech 13(3):157–174
McKay MD, Beckman RJ, Conover WJ (1979) A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics 21(2):239–245
Meijster A, Roerdink JBTM, Hesselink WH (2000) A general algorithm for computing distance transforms in linear time. In: Goutsias J, Vincent L, Bloomberg DS (eds) Mathematical morphology and its applications to image and signal processing, computational imaging and vision. Springer, Boston, pp 331–340
Michaleris P, Tortorelli DA, Vidal CA (1994) Tangent operators and design sensitivity formulations for transient non-linear coupled problems with applications to elastoplasticity. Int J Numer Methods Eng 37(14):2471–2499
Nobel-Jørgensen M, Aage N, Nyman Christiansen A, Igarashi T, Andreas Bærentzen J, Sigmund O (2015) 3D interactive topology optimization on hand-held devices. Struct Multidisc Optim 51(6):1385–1391
Norato JA, Bell BK, Tortorelli DA (2015) A geometry projection method for continuum-based topology optimization with discrete elements. Comput Methods Appl Mech Eng 293:306–327
Olhoff N, Bendsøe MP, Rasmussen J (1991) On CAD-integrated structural topology and design optimization. Comput Methods Appl Mech Eng 89(1):259–279
Queipo NV, Haftka RT, Shyy W, Goel T, Vaidyanathan R, Kevin Tucker P (2005) Surrogate-based analysis and optimization. Prog Aerosp Sci 41(1):1–28
Quilez I (2013) Distance functions of primitives. http://www.iquilezles.org/articles/distfunctions/. Accessed 28 Aug 2023
Rall LB, Goos G, Hartmanis J, Brauer W, Brinch Hansen P, Gries D, Moler C, Seegmüller G, Stoer J, Wirth N (eds) (1981) Automatic differentiation: techniques and applications. Lecture notes in computer science, vol 120. Springer, Berlin
Roosing A (2019) Fast distance fields for fluid dynamics mesh generation on graphics hardware. Commun Comput Phys 26(3):654–680
Ross DT (1961) Computer-aided design: a statement of objectives. Technical memorandum
Rumelhart DE, Hinton GE, Williams RJ (1986) Learning representations by back-propagating errors. Nature 323(6088):533–536
Schmitt V, Charpin F (1979) Pressure distributions on the ONERA M6 wing at transonic Mach numbers. Technical Report. ONERA
Sigmund O (1997) On the design of compliant mechanisms using topology optimization. Mech Struct Mach 25(4):493–524
Sigmund O (2001) A 99 line topology optimization code written in MATLAB. Struct Multidisc Optim 21(2):120–127
Sigmund O (2022) On benchmarking and good scientific practise in topology optimization. Struct Multidisc Optim 65(11):315
Sigmund O, Maute K (2013) Topology optimization approaches. Struct Multidisc Optim 48(6):1031–1055
Slater JW (1979) ONERA M6 Wing—NASA Archives. www.grc.nasa.gov/www/wind/valid. Accessed 11 Sep 2022
Subedi SC, Verma CS, Suresh K (2020) A review of methods for the geometric post-processing of topology optimized models. J Comput Inf Sci Eng 20(6):060801
Sun L, Yao W, Robinson T, Marques S, Armstrong C (2020) A framework of gradient-based shape optimization using feature-based CAD parameterization. American Institute of Aeronautics and Astronautics Scitech 2020 Forum
Svanberg K (1987) The method of moving asymptotes—a new method for structural optimization. Int J Numer Methods Eng 24(2):359–373
Swan CC, Arora JS (1997) Topology design of material layout in structured composites of high stiffness and strength. Struct Optim 13(1):45–59
Takikawa T, Glassner A, McGuire M (2022) A dataset and explorer for 3D signed distance functions. J Comput Graph Tech 11(2):1–29
Tcherniak D, Sigmund O (2001) A web-based topology optimization program. Struct Multidisc Optim 22:179–187
Tortorelli DA, Michaleris P (1994) Design sensitivity analysis: overview and review. Inverse Probl Eng 1(1):71–105
Tyflopoulos E, Haskins C, Steinert M (2021) Topology-optimization-based learning: a powerful teaching and learning framework under the prism of the CDIO approach. Educ Sci 11(7):348
Verbart A, Langelaar M, Keulen FV (2016) Damage approach: a new method for topology optimization with local stress constraints. Struct Multidisc Optim 53(5):1081–1098
Wein F, Dunning PD, Norato JA (2020) A review on feature-mapping methods for structural optimization. Struct Multidisc Optim 62(4):1597–1638
Wikipedia (2022) History of CAD software. http://www.w.wiki/6PKY. Accessed 5 Dec 2022
Yin G, Xiao X, Cirak F (2020) Topologically robust CAD model generation for structural optimisation. Comput Methods Appl Mech Eng 369:113102
Zhang W, Zhou Y (2020) The feature-driven method for structural optimization. Elsevier Science, Amsterdam
Zhang W, Zhao L, Gao T (2017a) CBS-based topology optimization including design-dependent body loads. Comput Methods Appl Mech Eng 322:1–22
Zhang W, Zhao L, Gao T, Cai S (2017b) Topology optimization with closed B-splines and Boolean operations. Comput Methods Appl Mech Eng 315:652–670
Zhang Y, Wang Z, Zhang Y, Gomes S, Bernard A (2020) Bio-inspired generative design for support structure generation and optimization in Additive Manufacturing (AM). CIRP Ann 69(1):117–120
Zhou M, Lian H, Sigmund O, Aage N (2018) Shape morphing and topology optimization of fluid channels by explicit boundary tracking. Int J Numer Methods Fluids 88(6):296–313
Acknowledgements
The authors would like to thank Shanglong Zhang for his help in testing the present method within industrial CAD and CAE workflows.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Replication of Results
The method and all default settings are described in detail in Sect. 2. Any non-default settings applied in Sect. 3 are specified. All examples use a simple and transparent update scheme without hidden parameters. However, we remark that similar results and faster convergence are achieved using more advanced optimization schemes such as the Method of Moving Asymptotes. The method can be seen as an extension of density-based topology optimization where the density field is projected from a CAD model. Therefore, in order to implement the approach, the authors suggest starting from a well established topology optimization code such as the 88 lines code from Andreassen et al. (2011). A CAD modeling kernel or a simple CSG/sketch-based kernel with SDF capabilities should be added. Then the lengthscale filter on the design variables should be replaced by a smooth Heaviside projection of the SDF to create the physical densities considered in the analysis.
Additional information
Responsible Editor: W. H. Zhang
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Schmidt, MP., Clausen, P., Pedersen, C.B.W. et al. Semi-analytical gradient-based optimization of exact CAD models using intermediate field representations. Struct Multidisc Optim 66, 138 (2023). https://doi.org/10.1007/s00158-023-03595-9
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00158-023-03595-9